• 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!

Buy house for an item?

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,488
Solutions
18
Reaction score
199
Location
Sweden
Is there anyhow i can make so you can buy a house for a certain item like gold ingot instead of cash(gold/platinum/crystals)?
 
item or value

you can make gold ingots get a value like 1 GN = 100cc in items.xml (hint look att gold, platnium, Crystal, Gold ingot and se the diffrents)

else you will have do code a new talkaction and maybe some more.
 
As said; "Instead of cash", I know about the talkaction but if someone could give me an clue how start make the script or make the script too me :)
 
im not good at c++ now but something i would try is like edit this in c++ and compile it

if(g_game.getMoney(player) < house->getPrice() || !g_game.removeMoney(player, house->getPrice()))
{
player->sendCancel("You do not have enough money.");
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}
 
Back
Top