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

Compiling House For Gns Talkactions ? .

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
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;
   }
To
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;
        }
it Give ME A error will post in Other comment
 
Back
Top