Postado Abril 28, 2015 11 anos Olá, gostaria de pedir que esse comando desse além das blessings, deve um aol ao player também. SCRIPT: local bless = {1, 2, 3, 4, 5} local cost = 50000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless)) then doPlayerSendCancel(cid, "You already have all bless.") 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 protected with all bless and not lose your loot to die." ,19) else doPlayerSendCancel(cid, "You need 50k to bless.") end return TRUE end
Postado Abril 28, 2015 11 anos Solução local bless = {1, 2, 3, 4, 5} local cost = 50000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "You already have all bless.") return TRUE end end if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) end doPlayerAddItem(cid, 2173, 1) doCreatureSay(cid, "You are now protected with all bless and not lose your loot to die." ,19) else doPlayerSendCancel(cid, "You need 50k to bless.") end return TRUE end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.