Ir para conteúdo

[Encerrado] [Pokemon] Dúvidas? - Pda


lucashgas

Posts Recomendados

Tank's

SoulOroshie

 

quando eu tive REP mando pra tu ... :}.

 

Ultima coisinha como adciono outas cidades no sistema de tele so tem pallet aqui.

 

local poke = {'Abra', 'Kadabra', 'Alakazam', 'Drowzee', 'Hypno', 'Mr. Mime', 'Porygon', 'Porygon2'}

local etele = 9499

local cdtele = 1800

local config = {

premium = false, -- se precisa ser premium account (true or false)

battle = true -- se precisa estar sem battle (true). Se colocar false, poderá usar teleport no meio de batalhas

}

local places = {

[1] = {name = "Pallet", id = 1},

}

function onSay(cid, words, param)

if #getCreatureSummons(cid) == 0 then

doPlayerSendCancel(cid, "You need a pokemon to use teleport.")

return true

end

if not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) then

return 0

end

if exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 then

local tempo = tonumber(exhaustion.get(cid, etele)) or 0

local min = math.floor(tempo)

doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.")

return true

end

if config.premium and not isPremium(cid) then

doPlayerSendCancel(cid, "Only premium members are allowed to use teleport.")

return true

end

if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then

doPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")

return true

end

if (param == '') then

local str = ""

str = str .. "Places to go :\n\nHouse\n"

for a = 1, #places do

str = str..""..places[a].name.."\n"

end

doShowTextDialog(cid, 7416, str)

return true

end

local item = getPlayerSlotItem(cid, 8)

local nome = getPokeballName(item.uid)

local summon = getCreatureSummons(cid)[1]

local lastppos = getThingPos(cid)

local lastspos = getThingPos(summon)

local telepos = {}

local myplace = ""

local townid = 0

if string.lower(param) == "house" then

if not getHouseByPlayerGUID(getPlayerGUID(cid)) then

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.")

return true

end

telepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))

myplace = "our home"

else

for x = 1, #places do

if string.find(string.lower(places[x].name), string.lower(param)) then

townid = places[x].id

myplace = places[x].name

end

end

if myplace == "" then

doPlayerSendCancel(cid, "That place doesn't exist.")

return true

end

end

if myplace ~= "" and townid > 0 then

telepos = getTownTemplePosition(townid)

end

if getDistanceBetween(getThingPos(cid), telepos) <= 15 then

doPlayerSendCancel(cid, "You are too near to the place you want to go!")

return true

end

doSendMagicEffect(getThingPos(summon), 29)

doSendMagicEffect(getThingPos(cid), 29)

doTeleportThing(cid, telepos, false)

local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH))

doTeleportThing(summon, pos2, false)

doSendMagicEffect(getThingPos(cid), 29)

doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1)

doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1, false, 0, lastppos)

doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER)

doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER, false, 0, lastspos)

doCreatureSetLookDir(cid, SOUTH)

doCreatureSetLookDir(summon, SOUTH)

doSendMagicEffect(getThingPos(summon), CONST_ME_TELEPORT)

exhaustion.set(cid, etele, cdtele)

doRemoveCondition(cid, CONDITION_OUTFIT)

return true

end

 

Link para o comentário
Compartilhar em outros sites

**SISTEMA POKES PASSIVOS**

vo postar as passivas pros seguintes pokes: Scyther, Pineco, Forretress, Scizor, Hitmontop, Magmar, Electabuzz, Hitmonlee, Hitmonchan, Dragonair, Dratini, Dragonite, Gloom, Golduck, Gyarados, Kabuto, Kabutops, Kangakhan, Oddish, Parasect, Persian, Pikachu, Psyduck, Raichu, Tangela, Vileplume, Wigglytuff e seus shinys...

Joguem fora seus Hitmonchans e shiny hitmonchans e criem novos.. pois adicionei o atributo "hands" nas balls.. e sem ele nas balls vai erro... pra quem ainda n tem o sistema

 

TODOS LEIAM ISSO!! \/

 

 

Todos q ja usam esse sistema se quiserem eh soh pegar esses arquivos q vo citar abaixo...

lib/some functions.lua -> adicionei uma function la.. ta bem no começo "function choose"

creaturescript/scripts/exp.lua -> dragon fury em diante

pasta monster -> obrigatorio pegar ela toda.. pois mudei o nome de todas as passivas... e tem varios novos pokes...

pasta spells -> mudei o nome de todos os arquivos e adicionei novos, inclusive no spells.xml

detalhe.. eu n uso os pokes do nibelius....

 

 

 

Edits: 15/03 19:53 --> Versao 1.4.1

Adicionado passiva para Pikachu e shiny, q eu tinha esquecido...

Arrumado bug na passiva do Persian..

Arquivos editados... Exp.lua e spells/scripts/passivas/electriccharge.lua

--

Adicionado passiva megadrain, dragon fury, spores reaction...

Editado o nome de todas as passivas...

 

Passivas1.4.1.rar

 

IMPORTANTE: qlqr erro/bug por favor reporte aki...

Editado por Slicer
Link para o comentário
Compartilhar em outros sites

@BLACKHERT

se tu quer dizer.. o "miss" q sai as vezes e q dai o poke eh teleportado...

acredito q esteja nessa parte do creaturescripts/scripts/exp.lua

local function resetMiss(cid)
	if not isCreature(cid) then return true end
	setPlayerStorageValue(cid, 88726, -1)
end

if getPlayerStorageValue(cid, 88726) ~= 1 and miss > 0 and math.random(1, 100) <= miss and damageCombat ~= COMBAT_PHYSICALDAMAGE and not isInArray(ignoremiss, combat) and not isSleeping(cid) and not getCreatureCondition(cid, CONDITION_PARALYZE) then
	doSendMagicEffect(getThingPos(cid), 211)
	doSendAnimatedText(getThingPos(cid), "MISS", 215)
	doTeleportThing(cid, getClosestFreeTile(cid, getThingPos(cid)), false)
	doSendMagicEffect(getThingPos(cid), 211)
	doFaceCreature(cid, getThingPos(attacker))
	setPlayerStorageValue(cid, 88726, 1)
	addEvent(resetMiss, 2200, cid)		
return false
end

 

@Picachul

mano... oia.. nem vo comenta... ;/

ms assim repondendo a tua pergunta.. skills passivas sao skills q os pokes soltam automaticamente.. sem vc fazer nd...

Editado por Slicer
Link para o comentário
Compartilhar em outros sites

@LeoOliveirah

detalhe oq ta acontecendo.. u,U .. eh soh baixar o arquivo q eu postei ali, extrair e colar na pasta do teu ot substituindo os scripts... lembrando q esses scripts foram feitos pra essa versao do dash advanced.. n garanto nd q vao funcionar em outros servs!!

Link para o comentário
Compartilhar em outros sites

7] >> Loading monsters

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Hitmontop - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Hitmontop.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Hitmonchan - Unknown spell name: demon punch

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Hitmonchan.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Scizor - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Scizor.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Forretress - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Forretress.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Magmar - Unknown spell name: magmar_buzz

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Magmar.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Electabuzz - Unknown spell name: magmar_buzz

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Electabuzz.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Hitmonlee - Unknown spell name: demon kick

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Hitmonlee.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Scyther - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Scyther.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Pineco - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Pineco.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Shiny Hitmonlee - Unknown spell name: demon kick

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Shiny/Shiny Hitmonlee.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Shiny Hitmonchan - Unknown spell name: demon punch

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Shiny/Shiny Hitmonchan.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Shiny Scyther - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Shiny/Shiny Scyther.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Shiny Electabuzz - Unknown spell name: giratorio

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Shiny/Shiny Electabuzz.xml)

[01/02/2012 18:51:57] [Error - Monsters::deserializeSpell] Shiny Magmar - Unknown spell name: magmar_buzz

[01/02/2012 18:51:57] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/pokes/Shiny/Shiny Magmar.xml)

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...