Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 7
  • Visualizações 481
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

local bless = {1, 2, 3, 4, 5}

local cost = 100000

function onSay(cid, words, param)

for i = 1, table.maxn(bless) do

if(getPlayerBlessing(cid, bless)) then

doPlayerSendCancel(cid, "Voceja tem todas as 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 blessed!" ,19)

doSendMagicEffect(getPlayerPosition(cid), 49)

else

doPlayerSendCancel(cid, "Voce precisa de 100k para a bless.")

end

return TRUE

end

Postado

tenta esse cript aqui no talkactions:


function onSay(cid, words, param)

if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then

doPlayerSendCancel(cid,'You have already got one or more blessings!')

else

if doPlayerRemoveMoney(cid, 50000) == TRUE then

doPlayerAddBlessing(cid, 1)

doPlayerAddBlessing(cid, 2)

doPlayerAddBlessing(cid, 3)

doPlayerAddBlessing(cid, 4)

doPlayerAddBlessing(cid, 5)

doSendMagicEffect(getPlayerPosition(cid), 28)

doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!')

else

doPlayerSendCancel(cid, "You need 50.000 gold coins to get blessed!")

end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo