Ir para conteúdo

[Encerrado] [Pedido] Npc outland


Lucasblaze

Posts Recomendados

Boa tarde galera , estou querendo um npc tipo o rocket , mais para outland , que de para editar os pokes e a força deles , por exemplo um naturia .

npc naturia keeper :

shiny gela lvl 1000 (exemplo) etc .

alguem tem este npc e poderia passar?

obrigado .

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

Ve Se é Esse que você precisa.

 

 

 

 

local focus = 0

local max_distance = 8

local talk_start = 0

local conv = 0

local fighting = false

local challenger = 0

local afk_limit_time = 30 -- seconds

local afk_time = 0 -- don't change

local battle_turn = 1 -- don't change

local challenger_turn = 0 -- don't change

 

local pokemons = {

{name = "Gyarados", optionalLevel = 110, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Tentacruel", optionalLevel = 90, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Vaporeon", optionalLevel = 85, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Golduck", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Blastoise", optionalLevel = 110, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Starmie", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

}

 

 

local function doSummonGymPokemon(npc)

local this = npc

if #getCreatureSummons(this) >= 1 or focus == 0 then return true end

local it = pokemons[battle_turn]

doSummonMonster(this, it.name)

local summon = getCreatureSummons(this)[1]

local balleffect = pokeballs["normal"].effect

if it.ball and pokeballs[it.ball] then

balleffect = pokeballs[it.ball].effect

end

doSendMagicEffect(getThingPos(summon), balleffect)

setPlayerStorageValue(summon, 10000, balleffect)

setPlayerStorageValue(summon, 10001, gobackmsgs[math.random(#gobackmsgs)].back:gsub("doka", it.nick ~= "" and it.nick or it.name))

setPlayerStorageValue(summon, 1007, it.nick ~= "" and it.nick or it.name)

doSetMonsterGym(summon, focus)

addEvent(adjustWildPoke, 15, summon, it.optionalLevel)

local name = it.nick ~= "" and it.nick or getCreatureName(this).."s "..it.name

doCreatureSay(this, gobackmsgs[math.random(#gobackmsgs)].go:gsub("doka", getPlayerStorageValue(summon, 1007)), 1)

fighting = true

battle_turn = battle_turn + 1

end

 

local function doWinDuel(cid, npc)

if not isCreature(cid) then return true end

local this = npc

local a = gymbadges[getCreatureName(this)] + 8

doCreatureSay(npc, "You won the duel! Congratulations, take this "..getItemNameById(a - 8).." as a prize.", 1)

local b = getPlayerItemById(cid, true, a)

if b.uid > 0 then doTransformItem(b.uid, b.itemid - 8) end

end

 

function onCreatureSay(cid, type, msg)

 

local msg = string.lower(msg)

 

if focus == cid then

talk_start = os.clock()

end

 

if msgcontains(msg, 'hi') and focus == 0 and getDistanceToCreature(cid) <= 4 then

focus = cid

talk_start = os.clock()

conv = 1

selfSay("Hello "..getCreatureName(cid)..", my name is Misty and I'm Cerulean's Gym Leader. How may I help you?")

return true

end

 

if isDuelMsg(msg) and conv == 1 and focus == cid then

 

--if getPlayerItemCount(cid, gymbadges[getCreatureName(getThis())]) >= 1 then

-- selfSay("You have already won my Cascade Badge, maybe some other day we can fight.")

-- focus = 0

--return true

--end

 

if not hasPokemon(cid) then

selfSay("To battle agains't a gym leader you need pokemons.")

return true

end

 

selfSay("You are challenging me to a battle. It will be a "..#pokemons.." pokemon limit battle, let's start?")

conv = 2

 

return true

end

 

if isConfirmMsg(msg) and conv == 2 and focus == cid then

 

challenger = focus

setPlayerStorageValue(cid, 990, 1)

selfSay("Yea, let's fight!")

talk_start = os.clock()

addEvent(doSummonGymPokemon, 850, getThis())

conv = 3

 

return true

end

 

if isNegMsg(msg) and conv == 2 and focus == cid then

 

focus = 0

selfSay("It is better for you to refuse a battle against me!")

 

return true

end

 

if msgcontains(msg, 'bye') and focus == cid then

selfSay('Bye and do your best trainer!')

setPlayerStorageValue(focus, 990, -1)

focus = 0

return true

end

end

 

local afk_warning = false

 

function onThink()

 

--doSendAnimatedText(getThingPos(getThis()), getCreatureName(getThis()), 215)

 

if focus == 0 then

selfTurn(2)

fighting = false

challenger = 0

challenger_turn = 0

battle_turn = 1

afk_time = 0

afk_warning = false

 

if #getCreatureSummons(getThis()) >= 1 then

setPlayerStorageValue(getCreatureSummons(getThis())[1], 1006, 0)

doCreatureAddHealth(getCreatureSummons(getThis())[1], -getCreatureMaxHealth(getCreatureSummons(getThis())[1]))

end

 

return true

else

 

if not isCreature(focus) then

focus = 0

return true

end

 

if fighting then

 

talk_start = os.clock()

 

if not isCreature(getCreatureTarget(getThis())) then

if #getCreatureSummons(challenger) >= 1 then

if getCreatureOutfit(getCreatureSummons(challenger)[1]).lookType ~= 2 then --alterado v1.6

selfAttackCreature(getCreatureSummons(challenger)[1])

challenger_turn = challenger_turn + 1

afk_time = 0

end

else

afk_time = afk_time + 0.5

end

end

 

if afk_time > afk_limit_time then

setPlayerStorageValue(focus, 990, -1)

focus = 0

selfSay("I have waited too long, come back when you are ready!")

return true

end

 

if not afk_warning and afk_time > afk_limit_time / 2 then

selfSay("Where's your pokemon? Let's fight!")

afk_warning = true

end

 

 

if #getCreatureSummons(getThis()) == 0 then

if battle_turn > #pokemons then

addEvent(doWinDuel, 1000, focus, getThis())

setPlayerStorageValue(focus, 990, -1)

focus = 0

return true

end

addEvent(doSummonGymPokemon, 1000, getThis())

end

 

if not hasPokemon(challenger) or challenger_turn >= 7 or challenger_turn > #pokemons then

selfSay("You lost our duel! Maybe some other time you'll defeat me.")

setPlayerStorageValue(focus, 990, -1)

focus = 0

return true

end

 

end

 

local npcpos = getThingPos(getThis())

local focpos = getThingPos(focus)

 

if npcpos.z ~= focpos.z then

setPlayerStorageValue(focus, 990, -1)

focus = 0

selfSay("Bye then.")

return true

end

 

if (os.clock() - talk_start) > 30 then

selfSay("Good bye and keep training!")

setPlayerStorageValue(focus, 990, -1)

focus = 0

end

 

if getDistanceToCreature(focus) > max_distance then

setPlayerStorageValue(focus, 990, -1)

focus = 0

return true

end

 

local dir = doRedirectDirection(getDirectionTo(npcpos, focpos))

selfTurn(dir)

end

return true

end

 

 

 

Espero Ter Ajudado.

Link para o comentário
Compartilhar em outros sites

Ve Se é Esse que você precisa.

local focus = 0 local max_distance = 8 local talk_start = 0 local conv = 0 local fighting = false local challenger = 0 local afk_limit_time = 30 -- seconds local afk_time = 0 -- don't change local battle_turn = 1 -- don't change local challenger_turn = 0 -- don't change local pokemons = { {name = "Gyarados", optionalLevel = 110, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Tentacruel", optionalLevel = 90, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Vaporeon", optionalLevel = 85, sex = SEX_FEMALE, nick = "", ball = "normal"}, {name = "Golduck", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Blastoise", optionalLevel = 110, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Starmie", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"}, } local function doSummonGymPokemon(npc) local this = npc if #getCreatureSummons(this) >= 1 or focus == 0 then return true end local it = pokemons[battle_turn] doSummonMonster(this, it.name) local summon = getCreatureSummons(this)[1] local balleffect = pokeballs["normal"].effect if it.ball and pokeballs[it.ball] then balleffect = pokeballs[it.ball].effect end doSendMagicEffect(getThingPos(summon), balleffect) setPlayerStorageValue(summon, 10000, balleffect) setPlayerStorageValue(summon, 10001, gobackmsgs[math.random(#gobackmsgs)].back:gsub("doka", it.nick ~= "" and it.nick or it.name)) setPlayerStorageValue(summon, 1007, it.nick ~= "" and it.nick or it.name) doSetMonsterGym(summon, focus) addEvent(adjustWildPoke, 15, summon, it.optionalLevel) local name = it.nick ~= "" and it.nick or getCreatureName(this).."s "..it.name doCreatureSay(this, gobackmsgs[math.random(#gobackmsgs)].go:gsub("doka", getPlayerStorageValue(summon, 1007)), 1) fighting = true battle_turn = battle_turn + 1 end local function doWinDuel(cid, npc) if not isCreature(cid) then return true end local this = npc local a = gymbadges[getCreatureName(this)] + 8 doCreatureSay(npc, "You won the duel! Congratulations, take this "..getItemNameById(a - 8).." as a prize.", 1) local b = getPlayerItemById(cid, true, a) if b.uid > 0 then doTransformItem(b.uid, b.itemid - 8) end end function onCreatureSay(cid, type, msg) local msg = string.lower(msg) if focus == cid then talk_start = os.clock() end if msgcontains(msg, 'hi') and focus == 0 and getDistanceToCreature(cid) <= 4 then focus = cid talk_start = os.clock() conv = 1 selfSay("Hello "..getCreatureName(cid)..", my name is Misty and I'm Cerulean's Gym Leader. How may I help you?") return true end if isDuelMsg(msg) and conv == 1 and focus == cid then --if getPlayerItemCount(cid, gymbadges[getCreatureName(getThis())]) >= 1 then -- selfSay("You have already won my Cascade Badge, maybe some other day we can fight.") -- focus = 0 --return true --end if not hasPokemon(cid) then selfSay("To battle agains't a gym leader you need pokemons.") return true end selfSay("You are challenging me to a battle. It will be a "..#pokemons.." pokemon limit battle, let's start?") conv = 2 return true end if isConfirmMsg(msg) and conv == 2 and focus == cid then challenger = focus setPlayerStorageValue(cid, 990, 1) selfSay("Yea, let's fight!") talk_start = os.clock() addEvent(doSummonGymPokemon, 850, getThis()) conv = 3 return true end if isNegMsg(msg) and conv == 2 and focus == cid then focus = 0 selfSay("It is better for you to refuse a battle against me!") return true end if msgcontains(msg, 'bye') and focus == cid then selfSay('Bye and do your best trainer!') setPlayerStorageValue(focus, 990, -1) focus = 0 return true end end local afk_warning = false function onThink() --doSendAnimatedText(getThingPos(getThis()), getCreatureName(getThis()), 215) if focus == 0 then selfTurn(2) fighting = false challenger = 0 challenger_turn = 0 battle_turn = 1 afk_time = 0 afk_warning = false if #getCreatureSummons(getThis()) >= 1 then setPlayerStorageValue(getCreatureSummons(getThis())[1], 1006, 0) doCreatureAddHealth(getCreatureSummons(getThis())[1], -getCreatureMaxHealth(getCreatureSummons(getThis())[1])) end return true else if not isCreature(focus) then focus = 0 return true end if fighting then talk_start = os.clock() if not isCreature(getCreatureTarget(getThis())) then if #getCreatureSummons(challenger) >= 1 then if getCreatureOutfit(getCreatureSummons(challenger)[1]).lookType ~= 2 then --alterado v1.6 selfAttackCreature(getCreatureSummons(challenger)[1]) challenger_turn = challenger_turn + 1 afk_time = 0 end else afk_time = afk_time + 0.5 end end if afk_time > afk_limit_time then setPlayerStorageValue(focus, 990, -1) focus = 0 selfSay("I have waited too long, come back when you are ready!") return true end if not afk_warning and afk_time > afk_limit_time / 2 then selfSay("Where's your pokemon? Let's fight!") afk_warning = true end if #getCreatureSummons(getThis()) == 0 then if battle_turn > #pokemons then addEvent(doWinDuel, 1000, focus, getThis()) setPlayerStorageValue(focus, 990, -1) focus = 0 return true end addEvent(doSummonGymPokemon, 1000, getThis()) end if not hasPokemon(challenger) or challenger_turn >= 7 or challenger_turn > #pokemons then selfSay("You lost our duel! Maybe some other time you'll defeat me.") setPlayerStorageValue(focus, 990, -1) focus = 0 return true end end local npcpos = getThingPos(getThis()) local focpos = getThingPos(focus) if npcpos.z ~= focpos.z then setPlayerStorageValue(focus, 990, -1) focus = 0 selfSay("Bye then.") return true end if (os.clock() - talk_start) > 30 then selfSay("Good bye and keep training!") setPlayerStorageValue(focus, 990, -1) focus = 0 end if getDistanceToCreature(focus) > max_distance then setPlayerStorageValue(focus, 990, -1) focus = 0 return true end local dir = doRedirectDirection(getDirectionTo(npcpos, focpos)) selfTurn(dir) end return true end

Espero Ter Ajudado.

 

 

Oque exatamente este npc é, faz? é npc no estilo do rocket e police mas de clan lvl 1000? ou é somente de battle parado?

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

pra isso existe o hunter o.O e o clone tb

 

edit:

vcs tao usando o serv com ou sem lvl? vo fazer soh um aki pra vcs..

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

ta vm la..

1* vao em lib/Wild Trainer.lua e troquem por esse..

 

function isRocket(cid)

if not isCreature(cid) then return false end

if getPlayerStorageValue(cid, 665450) >= 1 then

return true

end

return false

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function isOfficer(cid)

if not isCreature(cid) then return false end

if getPlayerStorageValue(cid, 665460) >= 1 then

return true

end

return false

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function randOutfit(cid, outs)

outfit = getCreatureOutfit(cid)

if getPlayerStorageValue(cid, 665451) >= 1 then

outfit = {lookType = choose(605, 604), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665461) >= 1 then

outfit = {lookType = choose(1184, 1183), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665471) >= 1 then

outfit = {lookType = choose(1016, 1015), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665481) >= 1 then

outfit = {lookType = choose(outs[1], outs[2]), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

end --alterei aki /\

doSetCreatureOutfit(cid, outfit, -1)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function doCloneOut(npc, outfit)

if isCreature(npc) then

doSetCreatureOutfit(npc, outfit, -1)

end

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function beDrunk(target)

if not isCreature(target) then return true end

doChangeSpeed(target, -getCreatureSpeed(target))

doChangeSpeed(target, 100)

if not isSleeping(target) and getPlayerStorageValue(target, 654878) <= 0 then

doPushCreature(target, math.random(0, 3), 1, 0)

end

doChangeSpeed(target, -100)

addEvent(beDrunk, 2000, target)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function randWalk(cid, cd, check, target)

if not isCreature(cid) then return true end

if check and check ~= getPlayerStorageValue(cid, 154788) then return true end

if getPlayerStorageValue(cid, 154788) >= 2 and cd ~= -1 then return true end

-------

local alvo = target

-------

setPlayerStorageValue(cid, 154788, getPlayerStorageValue(cid, 154788)+cd)

local a = getPlayerStorageValue(cid, 154788)

if a <= 0 then setPlayerStorageValue(cid, 154788, -1) return true end

-------

doChangeSpeed(cid, -getCreatureSpeed(cid))

doChangeSpeed(cid, 100)

-------

if not isSleeping(cid) and getPlayerStorageValue(cid, 654878) <= 0 then

doPushCreature(cid, math.random(0, 3), 1, 0)

end

-------

doChangeSpeed(cid, -100)

if isCreature(alvo) then

doCreatureSetLookDir(cid, getCreatureDirectionToTarget(cid, alvo))

end

-------

addEvent(randWalk, 5000, cid, -1, a, target)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

rocketTalks = {"I will kill you, your pig!!", "HAHA you won't get me!!!", "I will win and disappear!!"}

policeTalks = {"I will get you, thief!!", "So you belong to the team rocket? Come here for i get you!!", "I will kill you, your little thief!!"}

hunterTalks = {"I will kill you!!", "Wasn't for you be here!", "This field is sacred! Get out of here!!"}

hunterWingeonTalks = {"You will die!", "The force of the air will help me!"} --alterem aki

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildRocket = {

[1] = {{name = "Bulbasaur", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Squirtle", optionalLevel = 15, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Charmander", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Raticate", optionalLevel = 15, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Gloom", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Chikorita", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Totodile", optionalLevel = 10, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Cyndaquil", optionalLevel = 20, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Natu", optionalLevel = 26, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeotto", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Muk", optionalLevel = 35, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Ivysaur", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Ledian", optionalLevel = 43, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Venonat", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Ariados", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Pichu", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Flaaffy", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Seadra", optionalLevel = 45, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Koffing", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Cubone", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Haunter", optionalLevel = 40, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Furret", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Marill", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Charmeleon", optionalLevel = 50, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Yanma", optionalLevel = 50, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildPolice = {

[1] = {{name = "Golbat", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hoothoot", optionalLevel = 15, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magnemite", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Doduo", optionalLevel = 15, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kingler", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Aipom", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Murkrow", optionalLevel = 10, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Pineco", optionalLevel = 20, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Swinub", optionalLevel = 26, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Bulbasaur", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Croconaw", optionalLevel = 35, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kadabra", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Weepinbell", optionalLevel = 43, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Graveler", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Houndour", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Magby", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Shuckle", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Seaking", optionalLevel = 45, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Seel", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Machoke", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 40, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Wartortle", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Bayleef", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Dugtrio", optionalLevel = 50, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hypno", optionalLevel = 50, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildCommanderOfficer = {

[1] = {{name = "Donphan", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Porygon2", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Octillery", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Bellossom", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Nidoking", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Sandslash", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Electabuzz", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Jynx", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Tauros", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Venomoth", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Lanturn", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Umbreon", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magcargo", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Ninetales", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Primeape", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Machamp", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Snorlax", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magneton", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Exeggutor", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Dewgong", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Xatu", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Skarmory", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Hitmonlee", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmonchan", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildCommanderRocket = {

[1] = {{name = "Raichu", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Politoed", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Nidoqueen", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Vileplume", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Clefable", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Forretress", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Golduck", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Victreebel", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Tentacruel", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Togetic", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Espeon", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Heracross", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Girafarig", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"}, --alterado v1.6

{name = "Ursaring", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Piloswine", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Wigglytuff", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Poliwrath", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Farfetch'd", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Cloyster", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmontop", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildHunter = {

[1] = {{name = "Raichu", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Politoed", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Nidoqueen", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Gengar", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Clefable", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Forretress", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Golduck", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Victreebel", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Tentacruel", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magmar", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Espeon", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Heracross", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Girafarig", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"}, --alterado v1.6

{name = "Ursaring", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Piloswine", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kangaskhan", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Poliwrath", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Scyther", optionalLevel = 85, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Cloyster", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmontop", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

hunterWingeon = {

[1] = {{name = "Fearow", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"}, --adicionem novas tabelas

{name = "Pidgeot", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Dragonite", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Shiny Dragonair", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Skarmory", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Gyarados", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Shiny Pidgeot", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Shiny Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Dragonite", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Skarmory", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

 

 

2* vao em npc/ e criem um arquivo com o nome .aHunterWingeon.xml e colem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

 

<npc name="Wingeon Master" script=".aHunterWingeon.lua" walkinterval="0" floorchange="0" speed="0">

<health now="1500" max="1500"/>

<look type="1424" head="114" body="119" legs="114" feet="114" corpse="3058"/>

 

<parameters>

 

</parameters>

</npc>

 

 

3* vao em npc/scripts/ e criem um arquivo com o nome... .aHunterWingeon.lua e colem isso dentro..

 

local target = 0

local prevTarget = 0

local origPos = 0

local max_distance = 12

local fighting = false

local challenger = 0

local battle_turn = 1 -- don't change

local challenger_turn = 0 -- don't change

---

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function doSummonGymPokemon(npc)

local this = npc

if not isCreature(this) or not ehNPC(this) then return true end --alterado v1.6

if #getCreatureSummons(this) >= 1 or target == 0 then return true end

local it = hunterWingeon[getPlayerStorageValue(this, 665481)][battle_turn] --alterem aki

if not it then return true end

doSummonMonster(this, it.name)

local summon = getCreatureSummons(this)[1]

if not summon then --alterado v1.6

print("Error in npc: "..getCreatureName(this)..", tring to execute function 'doSummonGymPokemon', poke: "..it.name)

battle_turn = battle_turn+1

return true

end

local balleffect = pokeballs["normal"].effect

if it.ball and pokeballs[it.ball] then

balleffect = pokeballs[it.ball].effect

end

doSendMagicEffect(getThingPos(summon), balleffect)

setPlayerStorageValue(summon, 10000, balleffect)

setPlayerStorageValue(summon, 10001, gobackmsgs[math.random(#gobackmsgs)].back:gsub("doka", it.nick ~= "" and it.nick or it.name))

setPlayerStorageValue(summon, 1007, it.nick ~= "" and it.nick or it.name)

doSetMonsterGym(summon, target)

addEvent(adjustWildPoke, 15, summon, it.optionalLevel)

if it.nick ~= "" then doCreatureSetNick(summon, it.nick) end

local name = it.nick ~= "" and it.nick or getCreatureName(this).."s "..it.name --alterado v1.3

doCreatureSay(this, gobackmsgs[math.random(#gobackmsgs)].go:gsub("doka", getPlayerStorageValue(summon, 1007)), 1)

fighting = true

battle_turn = battle_turn + 1

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function goToOrigPos()

target = 0

selfFollow(0)

fighting = false

challenger = 0

challenger_turn = 0

if #getCreatureSummons(getNpcCid()) >= 1 then

setPlayerStorageValue(getCreatureSummons(getNpcCid())[1], 1006, 0)

doCreatureAddHealth(getCreatureSummons(getNpcCid())[1], -getCreatureMaxHealth(getCreatureSummons(getNpcCid())[1]))

end

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

doTeleportThing(getNpcCid(), origPos)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function updateTarget()

if(target == 0) then

local list = getSpectators(getNpcPos(), 9, 9, false)

for i = 1, table.getn(list) do

local _target = list

if(_target ~= 0) then

if isPlayer(_target) and not getTileInfo(getThingPos(_target)).protection then --alterado v1.8

selfSay(hunterWingeonTalks[math.random(#hunterWingeonTalks)]) --alterem aki

doNpcSetCreatureFocus(_target)

target = _target

prevTarget = target

break

end

end

end

end

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function onCreatureAppear(cid)

end

 

function onCreatureDisappear(cid)

end

 

function onCreatureMove(creature, oldPos, newPos)

--

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function onThink()

if not isCreature(getNpcCid()) then return false end --alterado v1.6

if origPos == 0 then

origPos = getNpcPos()

end

if getPlayerStorageValue(getNpcCid(), 665481) <= 0 then

setPlayerStorageValue(getNpcCid(), 665481, math.random(1, #hunterWingeon)) --alterem aki

randOutfit(getNpcCid(), {1433, 1424}) --alterem aki, outfit female e male

end

updateTarget()

------------------------------------------------------

if getDistanceBetween(getNpcPos(), origPos) >= max_distance or (isCreature(target) and getTileInfo(getThingPos(target)).protection) then --alterado v1.8

goToOrigPos()

end

------------------------------------------------------

if(target == 0) then

if getPlayerStorageValue(getNpcCid(), 154788) <= 0 then

setPlayerStorageValue(getNpcCid(), 154788, 1)

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

addEvent(randWalk, 2000, getNpcCid(), 1000, getPlayerStorageValue(getNpcCid(), 154788))

end

return true

end

------------------------------------------------------

local playerPos = getThingPosWithDebug(target) --alterado v1.6

local myPos = getNpcPos()

------------------------------------------------------

if(myPos.z ~= playerPos.z) then

goToOrigPos()

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) > max_distance then

goToOrigPos()

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) >= 5 then

if getPlayerStorageValue(getNpcCid(), 154788) >= 1 then

setPlayerStorageValue(getNpcCid(), 154788, -1)

doRegainSpeed(getNpcCid())

if isCreature(target) then

selfFollow(target)

end

end

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) <= 3 then

if getPlayerStorageValue(getNpcCid(), 154788) <= 0 then

setPlayerStorageValue(getNpcCid(), 154788, 1)

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

addEvent(randWalk, 2000, getNpcCid(), 1000, getPlayerStorageValue(getNpcCid(), 154788))

end

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) <= 5 then

challenger = target

addEvent(doSummonGymPokemon, 1000, getNpcCid())

 

local change = false

 

if not isCreature(target) then

target = 0

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

 

if fighting then

 

if not isCreature(getCreatureTarget(getNpcCid())) then

if #getCreatureSummons(challenger) >= 1 then

selfAttackCreature(getCreatureSummons(challenger)[1])

change = true

else

if change then

change = false

challenger_turn = challenger_turn + 1

end

end

end

 

if #getCreatureSummons(getNpcCid()) == 0 and isCreature(target) then

if battle_turn > #hunterWingeon[getPlayerStorageValue(getNpcCid(), 665481)] then --alterem aki

addEvent(doCreateNpc, 300000, ".aHunterWingeon", myPos)

local outfit = getCreatureOutfit(getNpcCid())

doRemoveCreature(getNpcCid())

----------------------------------------

if outfit.lookType == 1433 then --alterem aki, esse eh o id da outfit female

monster = doCreateMonster("aHunterWingeonF", myPos) --alterem aki female

else

monster = doCreateMonster("aHunterWingeonM", myPos) --alterem aki male

end

----------------------------------------

doCloneOut(monster, outfit)

addEvent(beDrunk, 100, monster)

end

addEvent(doSummonGymPokemon, 1000, getNpcCid())

end

 

if #getCreatureSummons(challenger) <= 0 then

selfAttackCreature(challenger)

end

end

end

end

 

 

4* vao em monster/monster.xml e adicionem essas tags la..

<monster name="aHunterWingeonM" file="pokes/System/aHunterWingeonM.xml"/>
<monster name="aHunterWingeonF" file="pokes/System/aHunterWingeonF.xml"/>

 

 

5* vao em monster/pokes/System/ e criem um arquivo la com o nome aHunterWingeonM.xml e colem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Wingeon Master" nameDescription="a Wingeon Master" race="normal" experience="0" speed="180" manacost="0">

<health now="1500" max="1500"/>

<look type="1424" head="114" body="119" legs="114" feet="114" corpse="12588"/>

<targetchange interval="1000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="0"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

</flags>

 

<attacks>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<loot>

<item id="6527" chance="33333" count="1" countmax="1"/>

<item id="2152" chance="100000" countmax="5"/>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

6* vao em monster/pokes/System e criem outro arquivo com o nome aHunterWingeonF.xml e coloquem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Wingeon Master" nameDescription="a Wingeon Master" race="normal" experience="0" speed="180" manacost="0">

<health now="1500" max="1500"/>

<look type="1433" head="114" body="119" legs="114" feet="114" corpse="12588"/>

<targetchange interval="1000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="0"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

</flags>

 

<attacks>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<loot>

<item id="6527" chance="33333" count="1" countmax="1"/>

<item id="2152" chance="100000" countmax="5"/>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

pronto.. espero q apartir daki vcs consigam fazer os outros... pra mudar a força dos pokes eh em lib/Wild Trainer.lua em optionalLevel....

tudo q vcs tem q mudar pra criar os outros esta com a 'tag'.. -alterem aki

e eu n farei os outros npcs...

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

ta vm la..

1* vao em lib/Wild Trainer.lua e troquem por esse..

 

function isRocket(cid)

if not isCreature(cid) then return false end

if getPlayerStorageValue(cid, 665450) >= 1 then

return true

end

return false

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function isOfficer(cid)

if not isCreature(cid) then return false end

if getPlayerStorageValue(cid, 665460) >= 1 then

return true

end

return false

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function randOutfit(cid, outs)

outfit = getCreatureOutfit(cid)

if getPlayerStorageValue(cid, 665451) >= 1 then

outfit = {lookType = choose(605, 604), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665461) >= 1 then

outfit = {lookType = choose(1184, 1183), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665471) >= 1 then

outfit = {lookType = choose(1016, 1015), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

elseif getPlayerStorageValue(cid, 665481) >= 1 then

outfit = {lookType = choose(outs[1], outs[2]), lookHead = math.random(1, 250), lookBody = math.random(1, 250), lookLegs = math.random(1, 250), lookFeet = math.random(1, 250)}

end --alterei aki /\

doSetCreatureOutfit(cid, outfit, -1)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function doCloneOut(npc, outfit)

if isCreature(npc) then

doSetCreatureOutfit(npc, outfit, -1)

end

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function beDrunk(target)

if not isCreature(target) then return true end

doChangeSpeed(target, -getCreatureSpeed(target))

doChangeSpeed(target, 100)

if not isSleeping(target) and getPlayerStorageValue(target, 654878) <= 0 then

doPushCreature(target, math.random(0, 3), 1, 0)

end

doChangeSpeed(target, -100)

addEvent(beDrunk, 2000, target)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function randWalk(cid, cd, check, target)

if not isCreature(cid) then return true end

if check and check ~= getPlayerStorageValue(cid, 154788) then return true end

if getPlayerStorageValue(cid, 154788) >= 2 and cd ~= -1 then return true end

-------

local alvo = target

-------

setPlayerStorageValue(cid, 154788, getPlayerStorageValue(cid, 154788)+cd)

local a = getPlayerStorageValue(cid, 154788)

if a <= 0 then setPlayerStorageValue(cid, 154788, -1) return true end

-------

doChangeSpeed(cid, -getCreatureSpeed(cid))

doChangeSpeed(cid, 100)

-------

if not isSleeping(cid) and getPlayerStorageValue(cid, 654878) <= 0 then

doPushCreature(cid, math.random(0, 3), 1, 0)

end

-------

doChangeSpeed(cid, -100)

if isCreature(alvo) then

doCreatureSetLookDir(cid, getCreatureDirectionToTarget(cid, alvo))

end

-------

addEvent(randWalk, 5000, cid, -1, a, target)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

rocketTalks = {"I will kill you, your pig!!", "HAHA you won't get me!!!", "I will win and disappear!!"}

policeTalks = {"I will get you, thief!!", "So you belong to the team rocket? Come here for i get you!!", "I will kill you, your little thief!!"}

hunterTalks = {"I will kill you!!", "Wasn't for you be here!", "This field is sacred! Get out of here!!"}

hunterWingeonTalks = {"You will die!", "The force of the air will help me!"} --alterem aki

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildRocket = {

[1] = {{name = "Bulbasaur", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Squirtle", optionalLevel = 15, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Charmander", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Raticate", optionalLevel = 15, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Gloom", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Chikorita", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Totodile", optionalLevel = 10, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Cyndaquil", optionalLevel = 20, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Natu", optionalLevel = 26, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeotto", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Muk", optionalLevel = 35, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Ivysaur", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Ledian", optionalLevel = 43, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Venonat", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Ariados", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Pichu", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Flaaffy", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Seadra", optionalLevel = 45, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Koffing", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Cubone", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Haunter", optionalLevel = 40, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Furret", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Marill", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Charmeleon", optionalLevel = 50, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Yanma", optionalLevel = 50, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildPolice = {

[1] = {{name = "Golbat", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hoothoot", optionalLevel = 15, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magnemite", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Doduo", optionalLevel = 15, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kingler", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Aipom", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Murkrow", optionalLevel = 10, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Pineco", optionalLevel = 20, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Swinub", optionalLevel = 26, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Bulbasaur", optionalLevel = 28, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Croconaw", optionalLevel = 35, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kadabra", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Weepinbell", optionalLevel = 43, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Graveler", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Houndour", optionalLevel = 40, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Magby", optionalLevel = 20, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Shuckle", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Seaking", optionalLevel = 45, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Seel", optionalLevel = 25, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Machoke", optionalLevel = 35, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 40, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Wartortle", optionalLevel = 30, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Bayleef", optionalLevel = 25, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Dugtrio", optionalLevel = 50, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hypno", optionalLevel = 50, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildCommanderOfficer = {

[1] = {{name = "Donphan", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Porygon2", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Octillery", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Bellossom", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Nidoking", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Sandslash", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Electabuzz", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Jynx", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Tauros", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Venomoth", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Lanturn", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Umbreon", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magcargo", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Ninetales", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Primeape", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Machamp", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Snorlax", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magneton", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Exeggutor", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Dewgong", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Xatu", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Skarmory", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Hitmonlee", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmonchan", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildCommanderRocket = {

[1] = {{name = "Raichu", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Politoed", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Nidoqueen", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Vileplume", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Clefable", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Forretress", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Golduck", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Victreebel", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Tentacruel", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Togetic", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Espeon", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Heracross", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Girafarig", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"}, --alterado v1.6

{name = "Ursaring", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Piloswine", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Wigglytuff", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Poliwrath", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Farfetch'd", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Cloyster", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmontop", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

wildHunter = {

[1] = {{name = "Raichu", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Politoed", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Nidoqueen", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Gengar", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Clefable", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 60, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Forretress", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Golduck", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Victreebel", optionalLevel = 55, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Tentacruel", optionalLevel = 69, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Magmar", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Espeon", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Heracross", optionalLevel = 75, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[4] = {{name = "Girafarig", optionalLevel = 80, sex = SEX_FEMALE, nick = "", ball = "normal"}, --alterado v1.6

{name = "Ursaring", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Piloswine", optionalLevel = 70, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Mantine", optionalLevel = 75, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Kangaskhan", optionalLevel = 65, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[5] = {{name = "Slowpoke", optionalLevel = 45, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Poliwrath", optionalLevel = 55, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Scyther", optionalLevel = 85, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Cloyster", optionalLevel = 70, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Hitmontop", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

hunterWingeon = {

[1] = {{name = "Fearow", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"}, --adicionem novas tabelas

{name = "Pidgeot", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Dragonite", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[2] = {{name = "Shiny Dragonair", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Noctowl", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Skarmory", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Gyarados", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

[3] = {{name = "Shiny Pidgeot", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Shiny Dragonair", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "normal"},

{name = "Dragonite", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "super"},

{name = "Skarmory", optionalLevel = 1000, sex = SEX_FEMALE, nick = "", ball = "normal"},

{name = "Pidgeot", optionalLevel = 1000, sex = SEX_MALE, nick = "", ball = "ultra"},

},

}

 

 

2* vao em npc/ e criem um arquivo com o nome .aHunterWingeon.xml e colem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

 

<npc name="Wingeon Master" script=".aHunterWingeon.lua" walkinterval="0" floorchange="0" speed="0">

<health now="1500" max="1500"/>

<look type="1424" head="114" body="119" legs="114" feet="114" corpse="3058"/>

 

<parameters>

 

</parameters>

</npc>

 

 

3* vao em npc/scripts/ e criem um arquivo com o nome... .aHunterWingeon.lua e colem isso dentro..

 

local target = 0

local prevTarget = 0

local origPos = 0

local max_distance = 12

local fighting = false

local challenger = 0

local battle_turn = 1 -- don't change

local challenger_turn = 0 -- don't change

---

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function doSummonGymPokemon(npc)

local this = npc

if not isCreature(this) or not ehNPC(this) then return true end --alterado v1.6

if #getCreatureSummons(this) >= 1 or target == 0 then return true end

local it = hunterWingeon[getPlayerStorageValue(this, 665481)][battle_turn] --alterem aki

if not it then return true end

doSummonMonster(this, it.name)

local summon = getCreatureSummons(this)[1]

if not summon then --alterado v1.6

print("Error in npc: "..getCreatureName(this)..", tring to execute function 'doSummonGymPokemon', poke: "..it.name)

battle_turn = battle_turn+1

return true

end

local balleffect = pokeballs["normal"].effect

if it.ball and pokeballs[it.ball] then

balleffect = pokeballs[it.ball].effect

end

doSendMagicEffect(getThingPos(summon), balleffect)

setPlayerStorageValue(summon, 10000, balleffect)

setPlayerStorageValue(summon, 10001, gobackmsgs[math.random(#gobackmsgs)].back:gsub("doka", it.nick ~= "" and it.nick or it.name))

setPlayerStorageValue(summon, 1007, it.nick ~= "" and it.nick or it.name)

doSetMonsterGym(summon, target)

addEvent(adjustWildPoke, 15, summon, it.optionalLevel)

if it.nick ~= "" then doCreatureSetNick(summon, it.nick) end

local name = it.nick ~= "" and it.nick or getCreatureName(this).."s "..it.name --alterado v1.3

doCreatureSay(this, gobackmsgs[math.random(#gobackmsgs)].go:gsub("doka", getPlayerStorageValue(summon, 1007)), 1)

fighting = true

battle_turn = battle_turn + 1

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function goToOrigPos()

target = 0

selfFollow(0)

fighting = false

challenger = 0

challenger_turn = 0

if #getCreatureSummons(getNpcCid()) >= 1 then

setPlayerStorageValue(getCreatureSummons(getNpcCid())[1], 1006, 0)

doCreatureAddHealth(getCreatureSummons(getNpcCid())[1], -getCreatureMaxHealth(getCreatureSummons(getNpcCid())[1]))

end

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

doTeleportThing(getNpcCid(), origPos)

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

local function updateTarget()

if(target == 0) then

local list = getSpectators(getNpcPos(), 9, 9, false)

for i = 1, table.getn(list) do

local _target = list

if(_target ~= 0) then

if isPlayer(_target) and not getTileInfo(getThingPos(_target)).protection then --alterado v1.8

selfSay(hunterWingeonTalks[math.random(#hunterWingeonTalks)]) --alterem aki

doNpcSetCreatureFocus(_target)

target = _target

prevTarget = target

break

end

end

end

end

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function onCreatureAppear(cid)

end

 

function onCreatureDisappear(cid)

end

 

function onCreatureMove(creature, oldPos, newPos)

--

end

--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--

function onThink()

if not isCreature(getNpcCid()) then return false end --alterado v1.6

if origPos == 0 then

origPos = getNpcPos()

end

if getPlayerStorageValue(getNpcCid(), 665481) <= 0 then

setPlayerStorageValue(getNpcCid(), 665481, math.random(1, #hunterWingeon)) --alterem aki

randOutfit(getNpcCid(), {1433, 1424}) --alterem aki, outfit female e male

end

updateTarget()

------------------------------------------------------

if getDistanceBetween(getNpcPos(), origPos) >= max_distance or (isCreature(target) and getTileInfo(getThingPos(target)).protection) then --alterado v1.8

goToOrigPos()

end

------------------------------------------------------

if(target == 0) then

if getPlayerStorageValue(getNpcCid(), 154788) <= 0 then

setPlayerStorageValue(getNpcCid(), 154788, 1)

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

addEvent(randWalk, 2000, getNpcCid(), 1000, getPlayerStorageValue(getNpcCid(), 154788))

end

return true

end

------------------------------------------------------

local playerPos = getThingPosWithDebug(target) --alterado v1.6

local myPos = getNpcPos()

------------------------------------------------------

if(myPos.z ~= playerPos.z) then

goToOrigPos()

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) > max_distance then

goToOrigPos()

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) >= 5 then

if getPlayerStorageValue(getNpcCid(), 154788) >= 1 then

setPlayerStorageValue(getNpcCid(), 154788, -1)

doRegainSpeed(getNpcCid())

if isCreature(target) then

selfFollow(target)

end

end

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) <= 3 then

if getPlayerStorageValue(getNpcCid(), 154788) <= 0 then

setPlayerStorageValue(getNpcCid(), 154788, 1)

doChangeSpeed(getNpcCid(), -getCreatureSpeed(getNpcCid()))

addEvent(randWalk, 2000, getNpcCid(), 1000, getPlayerStorageValue(getNpcCid(), 154788))

end

end

------------------------------------------------------

if getDistanceBetween(playerPos, myPos) <= 5 then

challenger = target

addEvent(doSummonGymPokemon, 1000, getNpcCid())

 

local change = false

 

if not isCreature(target) then

target = 0

battle_turn = battle_turn == 1 and battle_turn or battle_turn-1

return true

end

 

if fighting then

 

if not isCreature(getCreatureTarget(getNpcCid())) then

if #getCreatureSummons(challenger) >= 1 then

selfAttackCreature(getCreatureSummons(challenger)[1])

change = true

else

if change then

change = false

challenger_turn = challenger_turn + 1

end

end

end

 

if #getCreatureSummons(getNpcCid()) == 0 and isCreature(target) then

if battle_turn > #hunterWingeon[getPlayerStorageValue(getNpcCid(), 665481)] then --alterem aki

addEvent(doCreateNpc, 300000, ".aHunterWingeon", myPos)

local outfit = getCreatureOutfit(getNpcCid())

doRemoveCreature(getNpcCid())

----------------------------------------

if outfit.lookType == 1433 then --alterem aki, esse eh o id da outfit female

monster = doCreateMonster("aHunterWingeonF", myPos) --alterem aki female

else

monster = doCreateMonster("aHunterWingeonM", myPos) --alterem aki male

end

----------------------------------------

doCloneOut(monster, outfit)

addEvent(beDrunk, 100, monster)

end

addEvent(doSummonGymPokemon, 1000, getNpcCid())

end

 

if #getCreatureSummons(challenger) <= 0 then

selfAttackCreature(challenger)

end

end

end

end

 

 

4* vao em monster/monster.xml e adicionem essas tags la..

<monster name="aHunterWingeonM" file="pokes/System/aHunterWingeonM.xml"/>
<monster name="aHunterWingeonF" file="pokes/System/aHunterWingeonF.xml"/>

 

 

5* vao em monster/pokes/System/ e criem um arquivo la com o nome aHunterWingeonM.xml e colem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Wingeon Master" nameDescription="a Wingeon Master" race="normal" experience="0" speed="180" manacost="0">

<health now="1500" max="1500"/>

<look type="1424" head="114" body="119" legs="114" feet="114" corpse="12588"/>

<targetchange interval="1000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="0"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

</flags>

 

<attacks>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<loot>

<item id="6527" chance="33333" count="1" countmax="1"/>

<item id="2152" chance="100000" countmax="5"/>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

6* vao em monster/pokes/System e criem outro arquivo com o nome aHunterWingeonF.xml e coloquem isso dentro..

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Wingeon Master" nameDescription="a Wingeon Master" race="normal" experience="0" speed="180" manacost="0">

<health now="1500" max="1500"/>

<look type="1433" head="114" body="119" legs="114" feet="114" corpse="12588"/>

<targetchange interval="1000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="0"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

</flags>

 

<attacks>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<loot>

<item id="6527" chance="33333" count="1" countmax="1"/>

<item id="2152" chance="100000" countmax="5"/>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

pronto.. espero q apartir daki vcs consigam fazer os outros... pra mudar a força dos pokes eh em lib/Wild Trainer.lua em optionalLevel....

tudo q vcs tem q mudar pra criar os outros esta com a 'tag'.. -alterem aki

e eu n farei os outros npcs...

 

Slicer do ceu se funcionar te amo, quer dizer com a força e talz te do rep todos os dias de minha vida kkkk

pode fazer um tuto ensinando a criar ou editar?

Link para o comentário
Compartilhar em outros sites

mano tudo q tem q editar ta com a tag --alterem aki... tem q mexer em bastante coisa.. mas n eh tao complicado..

duvida sanada, topico movido

 

o npc ta com um problema...

ele n solta os pokemons porem da pra mata-lo e tal mas n esta soltando pokemons

Link para o comentário
Compartilhar em outros sites

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...