Keeq
New Member
- Joined
- Nov 6, 2012
- Messages
- 100
- Reaction score
- 0
Hi, there is a possibility to command! talkaction "Bless" was only available through a quest made? Please help! REP FOR HELP ME
script (NO MY )
script (NO MY )
local bless = {1, 2, 3, 4, 5}
local cost = 250000
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(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