Ir para conteúdo

Como faço pra muda poke inicial?


Sorct

Posts Recomendados

To usando o PokemonCenturionV6 Editado por Jobby Magalhaes

 

Pf me ajudem

 

O arquivo ta assim

 

data\movements\scripts

pk = {
[8696] = {name="Piplup"},
[8697] = {name="Chimchar"},
[8698] = {name="Turtwig"},
[8699] = {name="Squirtle"},
[8700] = {name="Charmander"},
[8701] = {name="Bulbasaur"},
}

postemple = {x = 1050, y = 1050, z = 6}

function onStepIn(cid, item, position, fromPosition)

	local pokemon = pk[item.actionid].name
	local plevel = 5
	local level = 1.5
	local extrastr = 4
	local btype = "normal"
	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", plevel)
	doItemSetAttribute(item, "exp", leveltable[plevel])
	doItemSetAttribute(item, "nextlevelexp", leveltable[plevel+1] - leveltable[plevel])
	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.")
	doPlayerAddItem(cid, 2152, 100)
	doPlayerAddItem(cid, 12344, 3)
	doPlayerAddItem(cid, 2392, 20)
	doPlayerAddItem(cid, 12345, 20)
	doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!")
	if #getCreatureSummons(cid) >= 1 then
		doTeleportThing(getCreatureSummons(cid)[1], postemple,false)
	end
	doTeleportThing(cid, postemple,false)
end

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

so muda o nome dos poke q ta na tabela pelos poke desejados n?

 

[8696] = {name="Piplup"},
[8697] = {name="Chimchar"},
[8698] = {name="Turtwig"},
[8699] = {name="Squirtle"},
[8700] = {name="Charmander"},
[8701] = {name="Bulbasaur"},

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...