Akainu92
New Member
- Joined
- Dec 22, 2014
- Messages
- 6
- Reaction score
- 0
hello,
i need some help with an error which i get after typing "!bless" in game.
this is the script i'm using in data/talkactions/scripts/bless.lua:
[/I][/I]
this is what i've added on the file talkactions.xml:
<talkaction words="!bless" script="bless.lua"/>
I'm running TFS 1.1 on windows 7 64bit, this is the server:
http://otland.net/threads/best-rele...ests-optimized-bug-fixing-open-source.204514/
this is the error i get:
If you may tell me how to fix it, i'd really appreciate thanks in advance
i need some help with an error which i get after typing "!bless" in game.
this is the script i'm using in data/talkactions/scripts/bless.lua:
LUA:
local bless = {1, 2, 3, 4, 5}
local cost = 50000 -- Cost in gp.
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless[I])) then
doPlayerSendCancel(cid, "You already have all blessings.")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless[I])
end
doPlayerSendTextMessage(cid,24, "You have bought all blessings.")
doSendMagicEffect(getPlayerPosition(cid), 28)
else
doPlayerSendCancel(cid, "You don't have enough money.")
end
return TRUE
end
this is what i've added on the file talkactions.xml:
<talkaction words="!bless" script="bless.lua"/>
I'm running TFS 1.1 on windows 7 64bit, this is the server:
http://otland.net/threads/best-rele...ests-optimized-bug-fixing-open-source.204514/
this is the error i get:
If you may tell me how to fix it, i'd really appreciate thanks in advance