-
Dúvida como por tempo na script
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
-
Dúvida como por tempo na script
Bem nessa parte de addEvento que eu não entendi na aula, tu poderia me dar só um exemplo ai eu me viro aqui? :/
-
Dúvida como por tempo na script
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++
-
[PDA] Ditto System Igual PXG
A onde que eu mudo o tempo que ele pode ficar transformado?
-
[Error - Spell Interface
Também queria saber, :/
-
(Resolvido)[Dúvida] Adicionando sprite que eu criei
Consegui, valeu ae galera pode fecharo tópico !
-
-
-
-
(Resolvido)[Dúvida] Adicionando sprite que eu criei
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?
- [TUTORIAL] Adicionando novos Pokémons em seu PDA com e sem Icon System
-
togi90 reagiu a uma resposta no tópico: [TUTORIAL] Adicionando novos Pokémons em seu PDA com e sem Icon System
- [Link Quebrado] [Link Quebrado]Remere's Map Editor ( Versão Cliente Estendida/Extended)
- Magebot Key