• 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 Bank script... Goodbye Cash Crashers!!

I coped and pasted the scripted, but for some reason the bank NPC wont ever show up on my map. I added him to the game map the same way I did it for the shop NPC I have. I think I might of put the scripted in the wrong place so its not ever loading the bank NPC. Any help would be nice and thanks.
 
If a NPC doesn't spawn ingame, it can have some reasons. Its possible that there is some bug, so it can't load, or that there is something mixed up with other NPCs. For example, the name in the XML file is the same as an other NPC. To be sure its not any of those things you can remake the NPC if you can't see a problem.
 
[07/04/2012 23:01:15] [Error - Npc interface]
[07/04/2012 23:01:15] data/npc/scripts/bank.lua
[07/04/2012 23:01:16] Description:
[07/04/2012 23:01:16] data/npc/scripts/bank.lua:311: attempt to index global 'npcHandler' (a nil value)
[07/04/2012 23:01:16] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/bank.lua

Please help me :(
 
is there any way to add the 'pretty penny' message if player has 100k-1kk, the million message if player has 1kk-10kk and the richest message if player has more than 10kk?
 
What's so good about that? I'd rather have no bank npcs at all than endless money on a server.
 
What's so good about that? I'd rather have no bank npcs at all than endless money on a server.

Due to inactivitie a very late reply.. If your still have trouble which I doub't it's possible that your NPC's which have function as a bankier use other scripts as well.. For example the one in Ankrahmun, who is selling gems aswell
 
I get this error when I try to transfer money to a player who doesn't exist:
Code:
[16:34:23.107] [Error - NpcScript Interface] 
[16:34:23.107] data/npc/scripts/Znozel.lua:onCreatureSay
[16:34:23.107] Description: 
[16:34:23.107] data/npc/scripts/Znozel.lua:172: attempt to index a nil value
[16:34:23.107] stack traceback:
[16:34:23.107] 	data/npc/scripts/Znozel.lua:172: in function 'callback'
[16:34:23.107] 	data/npc/lib/npcsystem/npchandler.lua:455: in function 'onCreatureSay'
[16:34:23.107] 	data/npc/scripts/Znozel.lua:9: in function <data/npc/scripts/Znozel.lua:9>

It's this line: elseif findPlayer(msg):lower() == msg:lower() then

Using latest TFS.
 
Back
Top