Ir para conteúdo

Featured Replies

  • Respostas 15
  • Visualizações 9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Ola amigo, seja bem vindo ao forum Bom, isso acho que é uma Action, entao para eu poder ajuda vc, eu precisarei saber qual dos arquivos .lua é referente a essa action. Se vc puder postar o act

  • Raulot, primeiramente boas vindas! Agora vamos a sua dúvida: Esta dúvida e bastante frequente quem está iniciando com PokeTIBIA, mais e fácil de solucionar, veja só. Alguns servidores de pad

Postado
  • Autor

ta aki

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

if getPlayerStorageValue(cid, 15215) <= 0 then

doPlayerAddItem(cid, 7884, 1)

doPlayerAddItem(cid, 7885, 1)

doPlayerAddItem(cid, 7886, 1)

doPlayerAddItem(cid, 7891, 1)

doPlayerAddItem(cid, 8777, 100)

doPlayerAddExp(cid, 1847300)

addVipDays(cid, 30)

doPlayerSendTextMessage(cid, 20,"Bem vindo ao Pokemon Xtreme!")

setPlayerStorageValue(cid, 15215, 1)

local rat = {x=1031,y=1010,z=5}

local cat = {x=1029,y=1010,z=5}

local wee = {x=1027,y=1010,z=5}

local pox = getTownTemplePosition(1)

local health = 325

local maxhealth = 325

local description = "Contains a Rattata."

local poke1 = "This is Rattata's pokeball. HP = ["..health.."/"..maxhealth.."]"

item = doCreateItemEx(2219)

doItemSetAttribute(item, "poke", poke1)

doItemSetAttribute(item, "nome", "Rattata")

doItemSetAttribute(item, "apelido", "Rattata")

doItemSetAttribute(item, "description", description)

doPlayerAddItemEx(cid, item, true)

doTransformItem(item, 2222)

doPlayerSendTextMessage(cid, 27, "You got your first pokemon! Here is some experience to help you on your way.")

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

doPlayerAddExp(cid, 800)

doTeleportThing(cid, pox)

doPlayerAddItem(cid, 2152, 30)

doSendMagicEffect(pox, 21)

doPlayerAddSoul(cid, 1)

setPlayerStorageValue(cid, 54842, "Rattata, ")

return TRUE

else

doPlayerSendTextMessage(cid, 20, "Você já pegou seu pokemon")

end

end

Gostou?? ?)

Clicke em gostei =D!!!

Postado
  • Autor

eu tentei fazer o q o doughell falou mais ai qnd eu tento colocar a pokebola no lugar fala q não pode colocar o objeto nakele lugar

Gostou?? ?)

Clicke em gostei =D!!!

Postado
  • Autor

Aew gente consegui é so fazer o que o Doughell falou

por exemplo


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

  if getPlayerStorageValue(cid, 15215) <= 0 then


	doPlayerAddItem(cid, 7884, 1)

	doPlayerAddItem(cid, 7885, 1)

	doPlayerAddItem(cid, 7886, 1)

	doPlayerAddItem(cid, 7891, 1)

	doPlayerAddItem(cid, 8777, 100)

	doPlayerAddExp(cid, 1847300)

	addVipDays(cid, 30)


	doPlayerSendTextMessage(cid, 20,"Bem vindo ao Pokemon Xtreme!")


	setPlayerStorageValue(cid, 15215, 1)

	local rat = {x=1031,y=1010,z=5}

	local cat = {x=1029,y=1010,z=5}

	local wee = {x=1027,y=1010,z=5}

	local pox = getTownTemplePosition(1)

	local health = 1200

	local maxhealth = 1200

	local description = "Contains a Squirtle."

	local poke1 = "This is Squirtle's pokeball. HP = ["..health.."/"..maxhealth.."]"


	item = doCreateItemEx(2219)

	doItemSetAttribute(item, "poke", poke1)

	doItemSetAttribute(item, "nome", "Squirtle")

	doItemSetAttribute(item, "apelido", "Squirtle")


	doItemSetAttribute(item, "description", description)

	doPlayerAddItemEx(cid, item, true)

	doTransformItem(item, 2222)

	doPlayerSendTextMessage(cid, 27, "You got your first pokemon! Here is some experience to help you on your way.")

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

	doPlayerAddExp(cid, 800)

	doTeleportThing(cid, pox)

	doPlayerAddItem(cid, 2152, 30)

	doSendMagicEffect(pox, 21)

	doPlayerAddSoul(cid, 1)

	setPlayerStorageValue(cid, 54842, "Squirtle, ")

	return TRUE

  else

	doPlayerSendTextMessage(cid, 20, "Voc&#234; j&#225; pegou seu pokemon")

  end

end

Isso vc encontra na pastadoseuot/data/actions

o nome dos arquivos vai ser o nome dos pokemons iniciais atuais

todos os lugares onde estiver escrito Squirtle (ou o nome de qualquer outro pokemon) vc coloca o nome do pokemon desejado e onde tiver "health" e "maxhealth" vc coloca o health do poke é so olhar na xml do pokemon.

vlw pela ajuda de todos.

Rep ++ Doughell e Kimoszin

Editado por raulot (veja o histórico de edições)

Gostou?? ?)

Clicke em gostei =D!!!

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo