-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1092 visualizações
-
- 0 respostas
- 2129 visualizações
-
- 0 respostas
- 3245 visualizações
-
- 3 respostas
- 4419 visualizações
-
- 2 respostas
- 1996 visualizações
-

Pergunta
atakashi 11
local a = { [13769] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Charizard"}}, } function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end local gender = getRandomGenderByName(pokemon) local happy = 220 local ball = 0 local sendToDepot = false --alterado v1.6 if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then sendToDepot = true ball = doCreateItemEx(b.ballid) --alterado v1.3 else ball = item.uid end doItemSetAttribute(ball, "poke", pokemon) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", happy) doItemSetAttribute(ball, "gender", gender) if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then doItemSetAttribute(ball, "hands", 0) end doItemSetAttribute(ball, "description", "Contains a "..pokemon..".") doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(ball, "boost", 50) local nick = "".. getPlayerName(cid) .."" local description = "Contains a "..getItemAttribute(ball, "poke").."." doItemSetAttribute(ball, "nick", nick) local newdes = description.."\nIt's nickname is: ".. getPlayerName(cid) .."." doItemSetAttribute(ball, "description", newdes) local hp = getItemAttribute(ball, "happy") doItemSetAttribute(ball, "happy", hp + 25) doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") if sendToDepot then doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3 doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.") setPlayerStorageValue(cid, 85552, os.time () + 9999) doRemoveItem(item.uid) else doTransformItem(ball, pokeballs[btype].on) end doSendMagicEffect(getThingPos(cid), 29) return true endLink para o comentário
https://xtibia.com/forum/topic/235315-poder-usar-o-item-somente-1x/Compartilhar em outros sites
5 respostass a esta questão
Posts Recomendados