Ir para conteúdo

Featured Replies

Postado

Tenta ae:

Mostrar conteúdo oculto

local p1 = X local p2 = X local p3 = X local p4 = X local p5 = X local p6 = X local p7 = X local p8 = X local p9 = X local p10 = X local p11 = X local p12 = X local p13 = X local p14 = X local p15 = X local q1 = Y local q2 = Y local q3 = Y local q4 = Y local q5 = Y local q6 = Y local q7 = Y local q8 = Y local q9 = Y local q10 = Y local q11 = Y local q12 = Y local q13 = Y local q14 = Y local q15 = Y function onUse(cid, item, fromPosition, itemEx, toPosition) local rand = math.random(1, 15) local lotteryid = 1990 if item.itemid == lotteryid then if rand == 1 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p1, q1) doRemoveItem(cid, item.uid, 1) elseif rand == 2 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p2, q2) doRemoveItem(cid, item.uid, 1) elseif rand == 3 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p3, q3) doRemoveItem(cid, item.uid, 1) elseif rand == 4 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p4, q4) doRemoveItem(cid, item.uid, 1) elseif rand == 5 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p5, q5) doRemoveItem(cid, item.uid, 1) elseif rand == 6 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p6, q6) doRemoveItem(cid, item.uid, 1) elseif rand == 7 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p7, q7) doRemoveItem(cid, item.uid, 1) elseif rand == 8 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p8, q8) doRemoveItem(cid, item.uid, 1) elseif rand == 9 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p9, q9) doRemoveItem(cid, item.uid, 1) elseif rand == 10 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p10, q10) doRemoveItem(cid, item.uid, 1) elseif rand == 11 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p11, q11) doRemoveItem(cid, item.uid, 1) elseif rand == 12 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p12, q12) doRemoveItem(cid, item.uid, 1) elseif rand == 13 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p13, q13) doRemoveItem(cid, item.uid, 1) elseif rand == 14 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p14, q14) doRemoveItem(cid, item.uid, 1) elseif rand == 15 then doCreatureSay(cid, "Present!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, p15, q15) doRemoveItem(cid, item.uid, 1) end end return TRUE end

Onde tem X vc coloca o id do item e onde tem Y vc coloca a quantidade do mesmo.

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

  • Respostas 5
  • Visualizações 991
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Assim que voce quer ?     Script do presente vá em data/actions/scripts/crie um arquivo com nome presente.lua  e cole isso dentro function onUse(cid, item, fromPosition, itemEx, toPosition) loca

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