Ir para conteúdo

togi90

Membro
  • Registro em

  • Última visita

  1. Então ficaria assim ? local evo = { ["Charizard"] = {"Charizardite X", 1}, } local balls = { [14233] = {newBall = 14233}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then local monster = getCreatureName(itemEx.uid) if evo[monster] then if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then doPlayerSendTextMessage(cid, 27, "Parabens! Seu "..getPokeName(itemEx.uid).." evoluiu para "..evo[monster][1].."!") local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid) doSendMagicEffect(getThingPos(itemEx.uid), 18) doRemoveCreature(itemEx.uid) doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1) doRemoveItem(item.uid, 1) doSummonMonster(cid,evo[monster][1]) local pokeball = getPlayerSlotItem(cid, 8) doItemSetAttribute(pokeball.uid, "poke", evo[monster][1]) doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster][1]].level) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", 110) local pk = getCreatureSummons(cid)[1] local getShinyPokeballs = balls[getPlayerSlotItem(cid, 8).itemid] doTransformItem(getPlayerSlotItem(cid, 8).uid, getShinyPokeballs.newBall) adjustStatus(pk, pokeball.uid, true, false, true) addEvent(getPlayerItemCount, 8000) <- assim ? return TRUE else return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!") end end end return FALSE end
  2. Bem nessa parte de addEvento que eu não entendi na aula, tu poderia me dar só um exemplo ai eu me viro aqui? :/
  3. Ae galera, ja rodei o forum todo, mais não acho um tópico claro e eu não sou expert em scripts, mais to aprendendo aos poucos, porém não consigo fazer com que pegue minha script, tenho uma dúvida, é em relação ao tempo de evolução de um certo pokemon, baseada na script da Shiny Stone que tem aqui no fórum, como eu coloco tempo no caso no poke que tá pra evoluir? Segue a script: local evo = { ["Charizard"] = {"Charizardite X", 1}, } local balls = { [14233] = {newBall = 14233}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then local monster = getCreatureName(itemEx.uid) if evo[monster] then if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then doPlayerSendTextMessage(cid, 27, "Parabens! Seu "..getPokeName(itemEx.uid).." evoluiu para "..evo[monster][1].."!") local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid) doSendMagicEffect(getThingPos(itemEx.uid), 18) doRemoveCreature(itemEx.uid) doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1) doRemoveItem(item.uid, 1) doSummonMonster(cid,evo[monster][1]) local pokeball = getPlayerSlotItem(cid, 8) doItemSetAttribute(pokeball.uid, "poke", evo[monster][1]) doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster][1]].level) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", 110) local pk = getCreatureSummons(cid)[1] local getShinyPokeballs = balls[getPlayerSlotItem(cid, 8).itemid] doTransformItem(getPlayerSlotItem(cid, 8).uid, getShinyPokeballs.newBall) adjustStatus(pk, pokeball.uid, true, false, true) return TRUE else return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!") end end end return FALSE end Como eu consigo colocar um certo tempo para ele ficar evoluido como o charizardite x no caso ? Se puderem, rep++
  4. A onde que eu mudo o tempo que ele pode ficar transformado?
  5. togi90 postou uma resposta no tópico em Suporte Tibia OTServer
    Também queria saber, :/
  6. Consegui, valeu ae galera pode fecharo tópico !
  7. Já consegui galera, porém estou tendo erro que fica em rosa atras do item quando eu adiciono, será que tem problema na hora de por ela no jogo?
  8. Parabéns, tirou todas minhad dúvidas e muito bem explicado em cada detalhe, deveria ser assim os tutoriais de hoje em dia, gravados, explicado e simples. REP+
  9. RME aparece o erro de clients.xml, o que eu faço ? baixei o RME: 2.2 do próprio site mesmo, fiz tudo o que você falou no tutorial, porém dá esse erro de clients.xml(syntax erro).
  10. togi90 postou uma resposta no tópico em MageBOT
    Eu também aceito man se possível

Informação Importante

Confirmação de Termo