Szerző Téma: Házak ára  (Megtekintve 459 alkalommal)

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Házak ára
« Dátum: 2013. Március 25. - 15:40:18 »
0 Show voters
Üdv. Azt szeretném kérdezni hogy a PPC módba a házak újítási  árát hol lehet állítani rakok le egy házat pl 1milla és annak az újiítási árát kellene állítani annyi tudok hogy valamelyik incbe kell de melyikbe?
Aki segít annak megy a +.
Köszönöm a segítséget.

Házak ára
« Válasz #1 Dátum: 2013. Március 25. - 15:53:56 »
0 Show voters
PPC_Housing includeba ez a rész:
 
// This function calculates the sell-price for the given house
House_CalcSellPrice(HouseID)
{
// Setup local variables
new SellPrice, NumUpgrades, UpgradePrice;
// Calculate 50% of the original buying price (base-price for selling)
SellPrice = AHouseData[HouseID][HousePrice] / 2;
// Calculate the number of upgrades applied to the house
NumUpgrades = AHouseData[HouseID][HouseLevel] - 1;
// Also calculate 50% for each upgrade, based on the percentage for upgrading the house
UpgradePrice = ((AHouseData[HouseID][HousePrice] / 100) * HouseUpgradePercent) * NumUpgrades;
// Add 50% of the upgrade-price to the sell-price
SellPrice = SellPrice + UpgradePrice;
// Return the total sell-price to the calling function
return SellPrice;
}

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Házak ára
« Válasz #2 Dátum: 2013. Március 25. - 16:02:04 »
0 Show voters
Ez meg van akkor ott a számot kell állítani

Házak ára
« Válasz #3 Dátum: 2013. Március 25. - 16:19:18 »
0 Show voters
Szerintem ezt kell át állítani mert ez a ház szint növelése:
 
UpgradePrice = ((AHouseData[HouseID][HousePrice] / 100) * HouseUpgradePercent) * NumUpgrades;

 
A 100-as számot állítgasd és nézd meg, hogy változik-e.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal