eu tbm to querendo saber como coloca no pokemon dash aew galera alguem ajuda aewwww porfavor!!!
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Super Ball E Great Ball
4
1.4k
info
Grupo: Campones
Registrado: 24/02/11
Posts: 80
Reputação: +2
Char no Tibia: Evril Canalha

14 de março de 2011 às 21:21
16 de março de 2011 às 19:56
coloca la nos action,ai voce vai na great ball la nos itens.xml e coloca o id dela ai
Ajudei?
Rep+
2 meses depois...
info
Grupo: Campones
Registrado: 01/03/11
Posts: 21
Reputação: +3

15 de maio de 2011 às 12:19
onde ta o id das ball?


info
Grupo: Campones
Registrado: 08/03/11
Posts: 0
Reputação: 0
Olá Pessoal do Xtibia!!!
Meu primeiro post!!!
Então, estou aki tentando colocar no meu server great ball e super ball, porem não consigo colocá-los.
Aki vai o script da Great Ball
function onUse(cid, item, fromPosition, itemEx, toPosition) function getPokemonMaxLife(name) local file = io.open('data/monster/monsters.xml','r') local arquivo = file:read(-1):lower():match('<monster name="'..name:lower()..'" file="(.-)"/>') file:close() local data = io.open('data/monster/'..(arquivo or ''),'r') if not data then return 100 end local maximo = data:read(-1):match('max%s*=%s*"(%d+)"') data:close() return maximo end ----- Config ----- local MaximoSummon = 1 local nome = getItemName(item.uid) local poke_name = nome:match('(.-) Greatball') local summons = getCreatureSummons(cid) local action_id = getItemAttribute(item.uid, "aid") ----- Config ----- if getPlayerStorageValue(cid, 25000) == 5 then return doPlayerSendCancel(cid, "Você está montando.") end if getPlayerStorageValue(cid, 23000) == 5 then return doPlayerSendCancel(cid, "Você está voando.") end if getItemAttribute(item.uid, "aid") == -1 then return doPlayerSendCancel(cid, "Seu pokemon está morto.") end local summons = getCreatureSummons(cid) if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "Para Soltar seus pokemons, coloque-os no slot da pokeball.") return TRUE end if(table.maxn(summons) < MaximoSummon) then -- no summons creature = doSummonCreature(poke_name, getCreaturePosition(cid)) doConvinceCreature(cid, creature) registerCreatureEvent(creature, "Greatball") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") doPlayerSay(cid, "Go,"..poke_name.."!!", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(creature), 189) doTransformItem(getPlayerSlotItem(cid,8).uid, 2524, 1) doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Greatball") if action_id ~= 0 then doCreatureAddHealth(creature, -(tonumber(getPokemonMaxLife(poke_name) - action_id))) else doCreatureAddHealth(creature, getPokemonMaxLife(poke_name)) end else for _, pid in ipairs(summons) do if (table.maxn(summons) >= 1) then doItemSetAttribute(item.uid, "aid", getCreatureHealth(summons[1])) doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), 189) doPlayerSay(cid,"Back, "..poke_name.."", TALKTYPE_ORANGE_1) doRemoveCreature(pid) doTransformItem(getPlayerSlotItem(cid,8).uid, 2652, 1) doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Greatball") end end end return true endE o da super ball
function onUse(cid, item, fromPosition, itemEx, toPosition) function getPokemonMaxLife(name) local file = io.open('data/monster/monsters.xml','r') local arquivo = file:read(-1):lower():match('<monster name="'..name:lower()..'" file="(.-)"/>') file:close() local data = io.open('data/monster/'..(arquivo or ''),'r') if not data then return 100 end local maximo = data:read(-1):match('max%s*=%s*"(%d+)"') data:close() return maximo end ----- Config ----- local MaximoSummon = 1 local nome = getItemName(item.uid) local poke_name = nome:match('(.-) Superball') local summons = getCreatureSummons(cid) local action_id = getItemAttribute(item.uid, "aid") ----- Config ----- if getPlayerStorageValue(cid, 25000) == 5 then return doPlayerSendCancel(cid, "Você está montando.") end if getPlayerStorageValue(cid, 23000) == 5 then return doPlayerSendCancel(cid, "Você está voando.") end if getItemAttribute(item.uid, "aid") == -1 then return doPlayerSendCancel(cid, "Seu pokemon está morto.") end local summons = getCreatureSummons(cid) if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "Para Soltar seus pokemons, coloque-os no slot da pokeball.") return TRUE end if(table.maxn(summons) < MaximoSummon) then -- no summons creature = doSummonCreature(poke_name, getCreaturePosition(cid)) doConvinceCreature(cid, creature) registerCreatureEvent(creature, "Superball") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") doPlayerSay(cid, "Go,"..poke_name.."!!", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(creature), 190) doTransformItem(getPlayerSlotItem(cid,8).uid, 2557, 1) doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Superball") if action_id ~= 0 then doCreatureAddHealth(creature, -(tonumber(getPokemonMaxLife(poke_name) - action_id))) else doCreatureAddHealth(creature, getPokemonMaxLife(poke_name)) end else for _, pid in ipairs(summons) do if (table.maxn(summons) >= 1) then doItemSetAttribute(item.uid, "aid", getCreatureHealth(summons[1])) doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), 190) doPlayerSay(cid,"Back, "..poke_name.."", TALKTYPE_ORANGE_1) doRemoveCreature(pid) doTransformItem(getPlayerSlotItem(cid,8).uid, 2653, 1) doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Superball") end end end return true endAlguém conseguiria colocar essas balls no pokemon dash???
Ou se puderem me ensinar???
Já tentei mas as sprites não dão certo.
OBS: Desculpa gente mais sou novo não sei colocar spoiler.
Abraços!!!
Editado Março 12 por Sharindori