Ir para conteúdo

PokeAimar (Level System) 8.54 2020 (Com Sources)


Posts Recomendados

14 minutos atrás, ZombiTR disse:

image.thumb.png.7671c30eb082a055f8564e85187f4dd1.png

Created a Item ID : 2 from here and me teleported the coordinates and give me a Unique Ball in Pidgey. @Tungs Not working. :/

 

local BOXES = {
	[3000] = {level = 5, pokemons = {"Pidgey"}}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local randomBoxPokemon = BOXES[item.itemid].pokemons[math.random(1, #BOXES[item.itemid].pokemons)]
	doSendMagicEffect(getCreaturePosition(cid), EFFECT_FIREWORK_YELLOW)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, string.format(__L(cid, "Congratulations! Your %s result in %s."),     getItemNameById(item.itemid), getMonsterInfo(randomBoxPokemon).description))
	doCreatePokemonBall(cid, "poke", randomBoxPokemon, BOXES[item.itemid].level, nil, nil,
        math.floor(BOXES[item.itemid].level / 2), cid, true)
	doTeleportThing(cid, {x = 3295, y = 564, z = 7}, false)
	return true
end

 

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

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