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

NPC [TFS 1.1 & 1.2] Bank NPC (Auto Speaking + Working with Market)

Eldin

Eldin Projects
Premium User
Joined
Jun 12, 2008
Messages
1,334
Reaction score
613
Location
Sweden
Greets,

I had trouble finding a good Bank NPC compatible with the Market System who also helps you like real tibia so I mixed a couple and here is the result, the NPC also speaks automatically.

Tested in TFS 1.1 & TFS 1.2

BankTalk_zpsnz382wde.png



Gates.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Gates" script="bank.lua" walkinterval="2000" floorchange="0">
  <health now="100" max="100" />
  <look type="472" head="75" body="60" legs="76" feet="0" addons="0" mount="0"/>
</npc>


bank.lua
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(k - Pastebin.com (http://pastebin.com/YZDQF0Lu)


DepositBank_zpsnrhstwi4.png


MarketGold_zpsgqr5lfg9.png


Have a nice day!

Kind Regards,
Eldin.
 
Last edited:
I haven't tested this NPC, but how it is done adding "," to the amount for example.

Your account balance is 1,000 gold coins. instead of Your account balance is 1000 gold coins. and so on, even if you have over kks, add dots like 1,000,000,000 gold coins.

Can someone tell me if this works with this script? If no, then how can it be made?
 
Working perfectly, thank you for this NPC :)
 
Can I take the Autosay frame

local lastSound = 0
  1. function onThink()
  2. if lastSound < os.time() then
  3. lastSound = (os.time() + 5)
  4. if math.random(100) < 25 then
  5. Npc():say("Better deposit your money in the bank where it's safe.", TALKTYPE_SAY)
  6. end
  7. end
  8. npcHandler:eek:nThink()
  9. end
to any NPC? - My gambler NPC dont work if i put this inside :-/
 
Back
Top