Ir para conteúdo

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


lucashgas

Posts Recomendados

alguem pode trocar as storages desses npcs para mim?

 

http://www.2shared.c...GoVEZ/npcs.html

 

rep+

 

Estou fazendo Chansey Quest...

 

e coloque a storage para poder ganha o premio

 

 

Script:

 

 

local starterpokes = {

["Chansey"] = {x = 1147, y = 781, z = 11},

}

 

local level = 1

local extrastr = 5

local btype = "normal"

 

function onUse(cid, item, frompos, item2, topos)

 

if getPlayerStorageValue(cid, 344487) == 2 then

return doPlayerSendCancel(cid, "You have picked your prize!")

end

if getPlayerStorageValue(cid, 344487) ~= 1 then

return doPlayerSendCancel(cid, "You need own all fight trainer to choose your prize!")

end

 

local pokemon = ""

if getPlayerMana(cid) >= 6 then

return doPlayerSendCancel(cid, "You don't have capacity for your prize!")

end

 

for a, b in pairs (starterpokes) do

if isPosEqualPos(topos, b) then

pokemon = a

end

end

 

if pokemon == "" then return true end

 

local gender = getRandomGenderByName(pokemon)

 

local mypoke = getPokemonStatus(pokemon)

 

if not mypoke then return true end

 

local offense = mypoke.off * level * extrastr

local defense = mypoke.def * level * extrastr

local speed = mypoke.agi * level * extrastr

local vit = mypoke.vit * level * extrastr

local spatk = mypoke.spatk * level * extrastr

local happy = 180

local leveltable = getPokemonExperienceTable(pokemon)

 

 

local item = doCreateItemEx(2219)

doItemSetAttribute(item, "poke", pokemon)

doItemSetAttribute(item, "hp", 1)

doItemSetAttribute(item, "level", level)

doItemSetAttribute(item, "exp", leveltable[level])

doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])

doItemSetAttribute(item, "offense", offense)

doItemSetAttribute(item, "defense", defense)

doItemSetAttribute(item, "speed", speed)

doItemSetAttribute(item, "vitality", vit)

doItemSetAttribute(item, "specialattack", spatk)

doItemSetAttribute(item, "happy", happy)

doItemSetAttribute(item, "gender", gender)

doItemSetAttribute(item, "description", "Contains a "..pokemon..".")

doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")

doItemSetAttribute(item, "firstpoke", getCreatureName(cid))

doItemSetAttribute(item, "hands", 0)

doPlayerAddItemEx(cid, item, true)

 

doTransformItem(item, pokeballs[btype].on)

 

doPlayerSendTextMessage(cid, 27, "You choose a "..pokemon..".")

setPlayerStorageValue(cid, 344487, 2)

doSendMagicEffect(getThingPos(cid), 29)

doSendMagicEffect(getThingPos(cid), 27)

doSendMagicEffect(getThingPos(cid), 29)

 

 

return TRUE

end

 

 

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

@kledstonsk8

 

ADD ai no login.lua

 

 

 

local flys = {

["Moltres"] = {229, 2300}, -- moltres

["Articuno"] = {230, 2100}, -- artic

["Zapdos"] = {224, 2600}, -- zapdos

["Mew"] = {232, 2200}, -- 1000

["Mewtwo"] = {233, 2200},-- two

["Dragonite"] = {221, 1300},-- nite

["Pidgeot"] = {222, 900}, -- geot

["Fearow"] = {226, 800}, -- fearow

["Aerodactyl"] = {227, 1100}, -- aero

["Charizard"] = {216, 1000}, -- chari

["Porygon"] = {316, 600}, -- porygon

["Shiny Moltres"] = {229, 2300}, -- Shiny moltres

["Shiny Articuno"] = {1018, 2100}, -- Shiny artic

["Shiny Zapdos"] = {1019, 2600}, -- Shiny zapdos

["Shiny Mew"] = {1022, 2200}, -- Shiny 1000

["Shiny Mewtwo"] = {1021, 2200},-- Shiny two

["Shiny Dragonite"] = {1020, 1300},-- Shiny nite

["Shiny Pidgeot"] = {996, 900}, -- Shiny geot

["Shiny Fearow"] = {997, 800}, -- Shiny fearow

["Shiny Aerodactyl"] = {1017, 1100}, -- Shiny aero

["Shiny Charizard"] = {995, 1000}, -- Shiny chari

["Shiny Porygon"] = {1016, 600}, -- Shiny porygon

["Porygon2"] = {648, 890}, -- 2

["Skarmory"] = {649, 1000}, -- skarmory

["Crobat"] = {652, 1190}, -- crobat

}

 

 

local rides = {

["Tauros"] = {128, 580}, -- tauros

["Ninetales"] = {129, 800}, -- kyuubi

["Rapidash"] = {130, 800}, -- rapid

["Ponyta"] = {131, 410}, -- ponyta

["Rhyhorn"] = {132, 400}, -- rhyhorn

["Arcanine"] = {12, 900}, -- arcan

["Onix"] = {126, 450}, -- onix

["Venusaur"] = {134, 390}, -- venu

["Dodrio"] = {133, 750}, -- dodrio

["Doduo"] = {135, 420}, -- doduo

["Shiny Tauros"] = {1024, 580}, -- tauros

["Shiny Ninetales"] = {999, 800}, -- kyuubi

["Shiny Rapidash"] = {1005, 800}, -- rapid

["Shiny Ponyta"] = {1004, 410}, -- ponyta

["Shiny Rhyhorn"] = {1023, 400}, -- rhyhorn

["Shiny Arcanine"] = {1003, 900}, -- arcan

["Shiny Onix"] = {126, 450}, -- onix

["Shiny Venusaur"] = {1040, 390}, -- venu

["Shiny Dodrio"] = {1007, 750}, -- dodrio

["Shiny Doduo"] = {1006, 420}, -- doduo

["Crystal Onix"] = {293, 480}, -- cristal onix

["Steelix"] = {646, 750}, -- steelix

["Meganium"] = {685, 720}, -- meganium

["Bayleef"] = {686, 555}, -- bayleef

["Stantler"] = {687, 595}, -- stantler

["Houndoom"] = {647, 820}, -- houndoom

["Piloswine"] = {689, 450}, -- piloswine

["Mareep"] = {688, 400}, -- marip

}

 

local surf = {

["Poliwag"] = {lookType=278, speed = 320},

["Poliwhirl"] = {lookType=137, speed = 480},

["Seaking"] = {lookType=269, speed = 520},

["Dewgong"] = {lookType=183, speed = 700},

["Blastoise"] = {lookType=184, speed = 850},

["Tentacruel"] = {lookType=185, speed = 750},

["Lapras"] = {lookType=186, speed = 960},

["Gyarados"] = {lookType=187, speed = 1050},

["Omastar"] = {lookType=188, speed = 680},

["Kabutops"] = {lookType=189, speed = 840},

["Poliwrath"] = {lookType=190, speed = 680},

["Vaporeon"] = {lookType=191, speed = 800},

["Staryu"] = {lookType=266, speed = 385},

["Starmie"] = {lookType=267, speed = 685},

["Goldeen"] = {lookType=268, speed = 355},

["Seadra"] = {lookType=270, speed = 655},

["Golduck"] = {lookType=271, speed = 760},

["Squirtle"] = {lookType=273, speed = 365},

["Wartortle"] = {lookType=275, speed = 605},

["Tentacool"] = {lookType=277, speed = 340},

["Snorlax"] = {lookType=300, speed = 500},

 

["Shiny Poliwag"] = {lookType=1010, speed = 320},

["Shiny Poliwhirl"] = {lookType=1011, speed = 480},

["Shiny Seaking"] = {lookType=1027, speed = 520},

["Shiny Dewgong"] = {lookType=1015, speed = 700},

["Shiny Blastoise"] = {lookType=1002, speed = 850},

["Shiny Tentacruel"] = {lookType=1014, speed = 750},

["Shiny Lapras"] = {lookType=1031, speed = 960},

["Shiny Gyarados"] = {lookType=1030, speed = 1050},

["Shiny Omastar"] = {lookType=1033, speed = 680},

["Shiny Kabutops"] = {lookType=1034, speed = 840},

["Shiny Poliwrath"] = {lookType=1012, speed = 680},

["Shiny Vaporeon"] = {lookType=1032, speed = 800},

["Shiny Staryu"] = {lookType=1028, speed = 385},

["Shiny Starmie"] = {lookType=1029, speed = 685},

["Shiny Goldeen"] = {lookType=1026, speed = 355},

["Shiny Seadra"] = {lookType=1025, speed = 655},

["Shiny Golduck"] = {lookType=1009, speed = 760},

["Shiny Squirtle"] = {lookType=1000, speed = 365},

["Shiny Wartortle"] = {lookType=1001, speed = 605},

["Shiny Tentacool"] = {lookType=1013, speed = 340},

["Shiny Snorlax"] = {lookType=1035, speed = 500},

 

["Mantine"] = {lookType=636, speed = 820},

["Totodile"] = {lookType=637, speed = 360},

["Croconow"] = {lookType=638, speed = 590},

["Feraligatr"] = {lookType=645, speed = 900},

["Marill"] = {lookType=639, speed = 340},

["Azumarill"] = {lookType=642, speed = 680},

["Quagsire"] = {lookType=643, speed = 740},

["Kingdra"] = {lookType=644, speed = 1020},

["Octillery"] = {lookType=641, speed = 600},

["Wooper"] = {lookType=640, speed = 315},

}

 

 

 

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

alguem pode ajudar com esse erro

 

 

[13/03/2012 21:04:17] [Error - CreatureScript Interface]

[13/03/2012 21:04:17] data/creaturescripts/scripts/exp.lua:onStatsChange

[13/03/2012 21:04:17] Description:

[13/03/2012 21:04:17] data/creaturescripts/scripts/exp.lua:938: attempt to compare number with nil

[13/03/2012 21:04:17] stack traceback:

[13/03/2012 21:04:17] data/creaturescripts/scripts/exp.lua:938: in function <data/creaturescripts/scripts/exp.lua:129>

[13/03/2012 21:12:03] Shiny Tangela doesn't have an experience table speed gain. Check it at data/lib/level tables.lua.

[13/03/2012 21:12:16] Shiny Venomoth doesn't have an experience table speed gain. Check it at data/lib/level tables.lua.

[13/03/2012 21:12:19] Shiny Venonat doesn't have an experience table speed gain. Check it at data/lib/level tables.lua.

[13/03/2012 21:12:24] Shiny Venonat doesn't have an experience table speed gain. Check it at data/lib/level tables.lua.

[13/03/2012 21:13:06] Shiny Farfetch'd doesn't have an experience table speed gain. Check it at data/lib/level tables.lu

Link para o comentário
Compartilhar em outros sites

Alguem teria um sistema de task que o player nao precisa-se pegar, ae tipo ele matando tipo 100 rattata ele ganha-se tal exp quando for entregar no npc, sendo um script para varias tasks de pokes.

 

E um npc que voce entregue tipo 100 seed voce ganha-se uma leaf stone.

 

Obrigado.

Link para o comentário
Compartilhar em outros sites

@mulizeu

 

Poderia deixar seu script para pegar apenas 1 item ? no caso o item 2152 que é hd.

Como sou fail em script tentei mecher mais nao deu muito certo.

 

 

deixei ele assim.

 

 

 

function onUse(cid, item, position)

local itens = 2152 ---aki coloca o id dos itens desejados

if getPlayerStorageValue(cid,12345) == -1 then

doPlayerAddItem(cid,itens[1],50)

setPlayerStorageValue(cid,1,1)

else

doPlayerSendCancel(cid,"Sorry you have found")

return TRUE

end

end

 

 

 

Mas esta dando este erro.

 

 

 

[13/03/2012 22:07:28] [Error - Action Interface]

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:onUse

[13/03/2012 22:07:28] Description:

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:4: attempt to index local 'itens' (a number value)

[13/03/2012 22:07:28] stack traceback:

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:4: in function <data/actions/scripts/quests/desert.lua:1>

 

 

 

 

 

EDIT-

 

No meu server pokemons que vão duas stones diferentes não estão evoluindo tipo o gloom, poliwhril shinys e johtos, alguem ja tem isto arrumado e poderia passar?

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

@mulizeu

 

Poderia deixar seu script para pegar apenas 1 item ? no caso o item 2152 que é hd.

Como sou fail em script tentei mecher mais nao deu muito certo.

 

 

deixei ele assim.

 

 

 

function onUse(cid, item, position)

local itens = 2152 ---aki coloca o id dos itens desejados

if getPlayerStorageValue(cid,12345) == -1 then

doPlayerAddItem(cid,itens[1],50)

setPlayerStorageValue(cid,1,1)

else

doPlayerSendCancel(cid,"Sorry you have found")

return TRUE

end

end

 

 

 

Mas esta dando este erro.

 

 

 

[13/03/2012 22:07:28] [Error - Action Interface]

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:onUse

[13/03/2012 22:07:28] Description:

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:4: attempt to index local 'itens' (a number value)

[13/03/2012 22:07:28] stack traceback:

[13/03/2012 22:07:28] data/actions/scripts/quests/desert.lua:4: in function <data/actions/scripts/quests/desert.lua:1>

 

 

 

 

 

EDIT-

 

No meu server pokemons que vão duas stones diferentes não estão evoluindo tipo o gloom, poliwhril shinys e johtos, alguem ja tem isto arrumado e poderia passar?

coloca o script td ae

Link para o comentário
Compartilhar em outros sites

@betinhowz666

usa esse..

 

 

function onUse(cid, item, position)

local itens = 2152 ---aki coloca o id dos itens desejados

if getPlayerStorageValue(cid,12345) == -1 then

doPlayerAddItem(cid,itens,50)

setPlayerStorageValue(cid, 12345, 1)

else

doPlayerSendCancel(cid,"Sorry you alredy have found")

return TRUE

end

end

 

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

Jah vi Q todo mundo pede Quest de poke intao ta akii

 

 

 

 

local level = 5

local extrastr = 1.5

local btype = "normal"

 

function onUse(cid, item, frompos, item2, topos)

 

if getPlayerLevel(cid) > 300 then

return true

end

 

if getPlayerStorageValue(cid, 65523) == 1 then

return doPlayerSendCancel(cid, "You have picked your prize!")

end

 

local pokemon = "Chimchar"

 

local gender = getRandomGenderByName(pokemon)

 

local mypoke = getPokemonStatus(pokemon)

 

if not mypoke then return true end

 

local offense = mypoke.off * level * extrastr

local defense = mypoke.def * level * extrastr

local speed = mypoke.agi * level * extrastr

local vit = mypoke.vit * level * extrastr

local spatk = mypoke.spatk * level * extrastr

local happy = 180

local leveltable = getPokemonExperienceTable(pokemon)

 

doPlayerAddItem(cid, 2394, 10)

 

local item = doCreateItemEx(2219)

doItemSetAttribute(item, "poke", pokemon)

doItemSetAttribute(item, "hp", 1)

doItemSetAttribute(item, "level", level)

doItemSetAttribute(item, "exp", leveltable[level])

doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])

doItemSetAttribute(item, "offense", offense)

doItemSetAttribute(item, "defense", defense)

doItemSetAttribute(item, "speed", speed)

doItemSetAttribute(item, "vitality", vit)

doItemSetAttribute(item, "specialattack", spatk)

doItemSetAttribute(item, "happy", happy)

doItemSetAttribute(item, "gender", gender)

doItemSetAttribute(item, "description", "Contains a "..pokemon..".")

doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")

doItemSetAttribute(item, "firstpoke", getCreatureName(cid))

doPlayerAddItemEx(cid, item, true)

 

doTransformItem(item, pokeballs[btype].on)

 

doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.")

doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!")

 

setPlayerStorageValue(cid, 65523, 1)

doSendMagicEffect(getThingPos(cid), 29)

doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))

doSendMagicEffect(getThingPos(cid), 27)

doSendMagicEffect(getThingPos(cid), 29)

 

return TRUE

end

 

 

 

 

- vc troka pelo storage Serto q vc queira

 

-Vc troka pelo itens q vc quise rdar junto

 

-vc Troka pelo nome Do poke

Depois vc add no actions.xml tag

<action uniqueid="65523" event="script" value="chimchar.lua"/>

Link para o comentário
Compartilhar em outros sites

galera meus pokemons jotho n estão dando de usar eles em ball pois n da nem de coloca no slot pra sumona o que faço???

 

@neblins aki os link do meu dat e do meu spr \/ que vc pediu

 

http://www.4shared.c.../2_online.html? <spr<

 

 

http://www.4shared.c...MLs/1_dat.html? <dat<

neblins manda pm assim q arruma com o link de download vlw por me ajuda assimq que se arruma rep + como prometi

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

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