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

Naji wont deposit gold

God Mythera

Veteran OT User
Joined
Aug 11, 2012
Messages
2,048
Solutions
2
Reaction score
256
Location
United States
hello im trying to make it so Naji will deposit gold, when i try to deposit gold he says nothing and i only get this error

P7rCSd3.png


this is the npc script

also im using tfs 0.4

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Naji" script="bank.lua" walkinterval="1000" floorchange="0">
<health now="100" max="100"/>
<look type="129" head="57" body="113" legs="76" feet="113" addons="0"/>
</npc>

text is to big so i uploaded it here: http://www.mediafire.com/download/66of9ne26auoa68/bank.lua
 
If the problem persists (which I think it will) open bank.lua and replace these two lines:

On line 38:
Code:
if(not isNumber(code)) then

to

if(not string.match(code, '%d+')) then

On line 124:
Code:
return (isNumber(money) and money > 0 and money < 4294967296)

to

return (string.match(money,'%d+') and money > 0 and money < 4294967296)

Let us know if it worked!
 
Back
Top