• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    Like this? bool Game::removeMoney(Cylinder* cylinder, int64_t money, uint32_t flags /*= 0*/) { if(!cylinder) return false; if(money <= 0) return true; typedef std::multimap<int32_t, Item*, std::less<int32_t> > MoneyMultiMap; MoneyMultiMap moneyMap...
  2. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    I FINALLY FOUND! in talkaction.cpp, line 1285: player->sendTextMessage(MSG_INFO_DESCR, "Your bank balance now is: ". player->balance); but i still have that bug to declare player, how to do? game.cpp: In member function ‘bool Game::removeMoney(Cylinder*, int64_t, uint32_t)’: game.cpp:2007:8...
  3. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    There is no function like this on sources?
  4. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    Srry i just don't know how to edit source, i just edit simple scripts in LUA, but would be nice have OT 8.6 with this function... I've tried what u told to do, but asks to player reference, i tried to do like i saw in houses.cpp, but gave another error, i think i'm doing something wrong...
  5. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    Is this have to be change something in source code? Fir3element/3777 Fir3element/3777 ???
  6. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    Using 0.4 source pack, like Fir3element/3777 Should be possible to make when you buy stuff on NPC, like: <parameter key="shop_buyable" value="jagged sword,8602,300;steel axe,8601,300;daramanian mace,2439,300;crimson sword,7385,3000;barbarian axe,2429,3000;clerical mace,2423,3000" />...
  7. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    It should be done in /data/npc/scripts/default.lua? local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function...
  8. gmstrikker

    TFS 0.X NPC accept money on hands and bank money

    How to make on 0.4 to works like tibia now: if you have money in your hands he sell items for you from your hands money, but if you don't have, it check in bank and sell for your bank money by defaul npc_bank.lua local keywordHandler = KeywordHandler:new() local npcHandler =...
Back
Top