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

Lua Bank System TFS 9.61

Sofft

New Member
Joined
Aug 27, 2012
Messages
15
Reaction score
1
I downloaded the TFS 9.61 that talaturem made ​​available for download on the forum, however it does not work the functions of Bank System, and also does not have the lib folder, how do I add new functions to the server?
 
is there any bank system deployed in TFS 9.61?
I'm trying to use the functions: "doPlayerWithdrawMoney", "doPlayerDepositMoney"
but they do not work, the parameters are passed into the function (cid, amount).

Everytime I try to use them of this error:
[28/08/2012 08:46:59] Lua Script Error: [Npc interface]
[28/08/2012 08:46:59] data/npc/scripts/bank.lua:eek:nCreatureSay
[28/08/2012 08:46:59] data/global.lua:1452: attempt to call global 'getBooleanFromString' (a nil value)
[28/08/2012 08:46:59] stack traceback:
[28/08/2012 08:46:59] [C]: in function 'getBooleanFromString'
[28/08/2012 08:46:59] data/global.lua:1452: in function 'doPlayerDepositMoney'
[28/08/2012 08:46:59] data/npc/scripts/bank.lua:162: in function 'callback'
[28/08/2012 08:46:59] data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[28/08/2012 08:46:59] data/npc/scripts/bank.lua:15: in function <data/npc/scripts/bank.lua:15>
 
Did you add those functions in global.lua?

Lua:
function doPlayerWithdrawMoney(cid, amount)
	local balance = getPlayerBalance(cid)
	if(amount > balance or not doPlayerAddMoney(cid, amount)) then
		return false
	end

	doPlayerSetBalance(cid, balance - amount)
	return true
end

function doPlayerDepositMoney(cid, amount)
	if(not doPlayerRemoveMoney(cid, amount)) then
		return false
	end

	doPlayerSetBalance(cid, getPlayerBalance(cid) + amount)
	return true
end
 
yes i ADD,and does not work.
This version has many bugs, many functions have been changed, bank system does not work and all my NPCs for example give this error:
Lua Script Error: [Npc interface]
data/npc/scripts/Brodrosch.lua
data/npc/scripts/Brodrosch.lua:1: attempt to index global 'KeywordHandler' (a ni
l value)
stack traceback:
[C]: in function '__index'
data/npc/scripts/Brodrosch.lua:1: in main chunk
the lib folder things much easier to install system etc ...etc...

and nobody gives support to those who do not donate, it is difficult!
 
Back
Top