But what about sending cash to **** Sample ??
Anyone can send a lot of cash to Rook Sample, then create characters and have looooooooooooooooooooooooooooooooots of cash.
15:37 Bank: Greetings CM Kiel. I'm banker.
15:37 CM Kiel [10]: deposit 50000000000000
15:37 Bank: How much gold you would like to deposit?
15:37 Bank: Would you really like to deposit 50000000000000 gold coins?
15:37 CM Kiel [10]: yes
15:37 Bank: You deposited 50000000000000 gold coins. Now your account balance is 50000000000000 gold coins.
15:37 CM Kiel [10]: balance
15:37 Bank: Your account balance is 50000000000000 gold coins.
15:37 CM Kiel [10]: withdraw 500
15:37 Bank: How much gold you would like to withdraw?
15:37 Bank: Would you really like to withdraw 500 gold coins?
15:37 CM Kiel [10]: yes
15:37 Bank: You withdrawed 500 gold coins. Now your account balance is 49999999999500 gold coins.
My acc. maker should not copy bank account balance from sample characters (and of course doesnt copy depot [parcels]) o0But what about sending cash to **** Sample ??
Anyone can send a lot of cash to Rook Sample, then create characters and have looooooooooooooooooooooooooooooooots of cash.
Fixed.u can clone cash by that scritp ;]
deposit 5454545454545454545
;]
function getCount(msg)
local ret = -1
local b, e = string.find(msg, "%d+")
if b ~= nil and e ~= nil then
ret = tonumber(string.sub(msg, b, e))
end
return ret
end
function getCount(msg)
local ret = -1
local b, e = string.find(msg, "%d+")
if b ~= nil and e ~= nil then
ret = tonumber(string.sub(msg, b, e))
end
if ret > 10000000 then
return 10000000
end
return ret
end
EDIT:13:05 Erg [93]: deposit 545454545454
13:05 Bank: Would you really like to deposit 545454545454 gold coins?
13:05 Erg [93]: yes
13:05 Bank: You deposited 545454545454 gold coins. Now your account balance is 545454545454 gold coins.
13:06 Erg [93]: /reload npc -- fixed function
13:06 Erg [93]: hi
13:06 Bank: Greetings Erg. I'm banker.
13:06 Erg [93]: deposit 545454545454
13:06 Bank: Would you really like to deposit 10000000 gold coins?
13:06 Erg [93]: yes
13:06 Bank: You don't have 10000000 gold coins.
Lua Script Error: [Npc interface]
data/npc/scripts/bank.luanCreatureSay
data/npc/scripts/bank.lua:75: attempt to index global 'talk_state' (a number value)
stack traceback:
data/npc/scripts/bank.lua:75: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:383: in function 'onCreatureSay'
data/npc/scripts/bank.lua:59: in function <data/npc/scripts/bank.lua:59>
17:14 Soy Polaco [29]: hi
17:14 Joe: Greetings Soy Polaco. I'm banker.
17:14 Soy Polaco [29]: balance
17:14 Soy Polaco [29]: deposit all
17:15 Soy Polaco [29]: hi
17:15 Soy Polaco [29]: balance
17:17 Joe: Good bye, Soy Polaco!
with:if talk_state[cid] == nil then
what version of tfs do you use?if not talk_state[cid] then
Tell me rev., because I use rev. 2005 (between 0.3.4 and 0.3.5), but latest rev. I downloaded is 2889 (0.3.6 beta). Maybe there are some important changes, but I dont know what can make error like yours.I'm using latest private SVN.
Lua Script Error: [Npc interface]
data/npc/scripts/bank.luanCreatureSay
data/npc/scripts/bank.lua:76: attempt to index global 'talk_state' (a number value)
stack traceback:
data/npc/scripts/bank.lua:76: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
data/npc/scripts/bank.lua:60: in function <data/npc/scripts/bank.lua:60>
Bug:
How to fix this? :S