FLE
Member
So I have this script and I am trying too make it work on tfs 1.1
If you dont want too spoil it for me, can you atleast tell me where table.maxn(bless) is located?
or tell me what table.maxn(bless) is?
thanks,
-Mj
Code:
local bless = {1, 2, 3, 4, 5}
local cost = 50000
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getBlessings(cid, bless)) then
doPlayerSendCancel(cid, "You have already all blessings.")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
doCreatureSay(cid, "You are now blessed!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 49)
else
doPlayerSendCancel(cid, "You don\'t have enough money.")
end
return TRUE
end
If you dont want too spoil it for me, can you atleast tell me where table.maxn(bless) is located?
or tell me what table.maxn(bless) is?
thanks,
-Mj
Last edited by a moderator: