• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help With House price

hucko

Special Order
Joined
May 6, 2011
Messages
79
Reaction score
1
Hey otlanders,

i want to change the price of houses from XXXX gold coin to XX gold nugget

which crystal worth " 10000"
and gold ingot " 1000000 "
and Gold Nugget "100000000 " <<

and about the price in Config,

houseRentAsPrice = true
housePriceAsRent = false
housePriceEachSquare = 100000000 -- it mean 1 gold nugget ? am i right ? --

and about the source i changed it from gold coin to gold nugget but i found that the house will bought by XXXXXXXX gns
 
thanks dude , i'm working on solving this shit too xD

i will start from 0 , removing all function and now all houses will be sold by gold coins again
 
You need to get the mathematic formula outside of the string quotes. However I'm concerned the amount of gold is surpassing the integer maximum for that value, if it's a client restriction or server sided I leave unsaid. This may however work if you redo the system to only require nuggets it might work, leaving the gold coins and platinum coins be.
 
(getPlayerItemCount(cid, ITEM_NUGGET_COIN) * 100000000)
i think something like that shall be added to house's door source to add my new coinage
 
Back
Top