megagaea
Scripter and mapper
- Joined
- Sep 25, 2013
- Messages
- 147
- Solutions
- 1
- Reaction score
- 29
If I Wanna Change This Code TO This In talkaction.cpp What i Do Else And it give me An error Tfs 0.4 3777 This Talkaction To Change house Coin to Gold Nugget Or Any thing But not Gold Coin
To
it Give ME A error will post in Other comment
Code:
if((uint32_t)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;
}
Code:
if(player->__getItemTypeCount(2157, -1) < house->getPrice() || !g_game.removeItemOfType(player, 2157, house->getPrice(), -1))
{
player->sendCancel("You do not have enough gold nuggets.");
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}