Ir para conteúdo
  • Cadastre-se

[RESOLVIDO] Pokemons Iniciais


Posts Recomendados

Aew galera,

Sou novo aki no forum e queria saber como fasso pra mudar os pokemons iniciais do meu ot server

logo quando cria um novo char ele nasce em um lugar onde tem 3 baus q vc escolhe o poke ai eu n sei se tenho q mudar na action id ow qualquer outra coisa alguem me ajuda por favor.

Agradeço.

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

Gostou?? ?)

Clicke em gostei =D!!!

Link para o post
Compartilhar em outros sites

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 action.xml aqui para eu ver... ajudaria bastante

Link para o post
Compartilhar em outros sites

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 padrão, os Pokémons iniciais são: Charmander, Bulbasaur e Squirtle. Já outros são: Rattata, Weedle e Squirtle.

Os seus documentos estão localizados na pasta data/actions com os seus nomes, por exemplo:

Bulbasaur = bulbasaur.lua

Squirtle = squirtle.lua

e assim vai...

Para modifica-los e apenas abrir o arquivo e ver o nome do Pokémon que você abriu para editar, por exemplo:

bulbasaur.lua, no arquivo conterá diversas linhas com o nome Bulbasaur então e apenas modificar todos esses nomes com o que você quer, por exemplo:

Bulbasaur para Charmander, dai você que decidi.

Observação: O health/mana modifica de acordo com o .xml do Pokémon.

Observação²: Se quiser mudar o nome de Bulbasaur.lua para Charmander.lua apenas para saber o que o tal.lua tem ali dentro, fica mais fácil para depois se quiser editar alguma coisa. :D

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

E-mail para contato: [email protected]

Quer ter um fórum mais organizado? Cumpra as regras!

EU VOLTEI GAROTAS!

31/12/2011

Atenciosamente,

Guilherme Salviati.

Link para o post
Compartilhar em outros sites

Bom, muito obrigado por responder minha pergunta.

@Kimoszin

Obrigado por responder, vc pediu meu action.lua e ai está


function destroyItem(cid, itemEx, toPosition)

if(itemEx.uid <= 65535 or itemEx.actionid > 0) then

  return false

end

if not(isInArray({1770, 2098, 1774, 2064, 2094, 2095, 1619, 2602, 3805, 3806}, itemEx.itemid) or

  (itemEx.itemid >= 1724 and itemEx.itemid <= 1741) or

  (itemEx.itemid >= 2581 and itemEx.itemid <= 2588) or

  (itemEx.itemid >= 1747 and itemEx.itemid <= 1753) or

  (itemEx.itemid >= 1714 and itemEx.itemid <= 1717) or

  (itemEx.itemid >= 1650 and itemEx.itemid <= 1653) or

  (itemEx.itemid >= 1666 and itemEx.itemid <= 1677) or

  (itemEx.itemid >= 1614 and itemEx.itemid <= 1616) or

  (itemEx.itemid >= 3813 and itemEx.itemid <= 3820) or

  (itemEx.itemid >= 3807 and itemEx.itemid <= 3810) or

  (itemEx.itemid >= 2080 and itemEx.itemid <= 2085) or

  (itemEx.itemid >= 2116 and itemEx.itemid <= 2119)) then

  return false

end

if(math.random(1, 7) == 1) then

  if(isInArray({1738, 1739, 1770, 2098, 1774, 1775, 2064}, itemEx.itemid) or

   (itemEx.itemid >= 2581 and itemEx.itemid <= 2588)) then

	doCreateItem(2250, 1, toPosition)

  elseif((itemEx.itemid >= 1747 and itemEx.itemid <= 1749) or itemEx.itemid == 1740) then

   doCreateItem(2251, 1, toPosition)

  elseif((itemEx.itemid >= 1714 and itemEx.itemid <= 1717)) then

   doCreateItem(2252, 1, toPosition)

  elseif((itemEx.itemid >= 1650 and itemEx.itemid <= 1653) or

   (itemEx.itemid >= 1666 and itemEx.itemid <= 1677) or

   (itemEx.itemid >= 1614 and itemEx.itemid <= 1616) or

   (itemEx.itemid >= 3813 and itemEx.itemid <= 3820) or

   (itemEx.itemid >= 3807 and itemEx.itemid <= 3810)) then

	doCreateItem(2253, 1, toPosition)

  elseif((itemEx.itemid >= 1724 and itemEx.itemid <= 1737) or

   (itemEx.itemid >= 2080 and itemEx.itemid <= 2085) or

   (itemEx.itemid >= 2116 and itemEx.itemid <= 2119) or

   isInArray({2094, 2095}, itemEx.itemid)) then

	doCreateItem(2254, 1, toPosition)

  elseif((itemEx.itemid >= 1750 and itemEx.itemid <= 1753) or isInArray({1619, 1741}, itemEx.itemid)) then

   doCreateItem(2255, 1, toPosition)

  elseif(itemEx.itemid == 2602) then

   doCreateItem(2257, 1, toPosition)

  elseif(itemEx.itemid == 3805 or itemEx.itemid == 3806) then

   doCreateItem(2259, 1, toPosition)

  end

  doRemoveItem(itemEx.uid, 1)

end

doSendMagicEffect(toPosition, CONST_ME_POFF)

return true

end

AREA_CIRCLE3X3 = {

{0, 0, 1, 1, 1, 0, 0},

{0, 1, 1, 1, 1, 1, 0},

{1, 1, 1, 1, 1, 1, 1},

{1, 1, 1, 3, 1, 1, 1},

{1, 1, 1, 1, 1, 1, 1},

{0, 1, 1, 1, 1, 1, 0},

{0, 0, 1, 1, 1, 0, 0}

}

ITEM_THOUSAND_COIN = 8777

@Doughell

Obrigado por responder, eu ja tava fuçando e encontrei isso la msm e tentei fazer isso q vc disse mas n deu certo, eu teria q mudar tambem o nome do arquivo?

Vlw

Gostou?? ?)

Clicke em gostei =D!!!

Link para o post
Compartilhar em outros sites

xD foi mal xD


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

<actions>

<!-- Boost -->

<action actionid="11111;22222;33333;44444" event="script" value="boost.lua"/>

<!-- Quests -->

<action actionid="2000" event="script" value="quests/system.lua"/>

<action actionid="2001" event="script" value="quests/system.lua"/>

<action itemid="1738" event="script" value="ditto_.lua"/>

<!-- Weapons enchanting (Gems) -->

<action itemid="2150" event="script" value="other/enchanting.lua"/>

<action itemid="2149" event="script" value="other/enchanting.lua"/>

<action itemid="7759" event="script" value="other/enchanting.lua"/>

<action itemid="7760" event="script" value="other/enchanting.lua"/>

<action itemid="7761" event="script" value="other/enchanting.lua"/>

<action itemid="7762" event="script" value="other/enchanting.lua"/>

<!-- Tools -->

<action itemid="2420" event="script" value="tools/machete.lua"/>

<action itemid="2442" event="script" value="tools/machete.lua"/>

<action itemid="2580" event="script" value="tools/fishing.lua" allowfaruse="1" blockwalls="1" />

<action itemid="10223" event="script" value="tools/fishing.lua" allowfaruse="1"/>

<action itemid="2554" event="script" value="tools/shovel.lua"/>

<action itemid="5710" event="script" value="tools/shovel.lua"/>

<action itemid="2120" event="script" value="tools/rope.lua"/>

<action itemid="7731" event="script" value="tools/rope.lua"/>

<action itemid="2553" event="script" value="tools/pick.lua"/>

<action itemid="5908" event="script" value="tools/obsidian_knife.lua"/>

<action itemid="5942" event="script" value="tools/blessed_wooden_stake.lua"/>

<!-- Liquids -->

<action itemid="1775" event="script" value="liquids/containers.lua"/>

<action itemid="2005" event="script" value="liquids/containers.lua"/>

<action itemid="2006" event="script" value="liquids/containers.lua"/>

<action itemid="2007" event="script" value="liquids/containers.lua"/>

<action itemid="2008" event="script" value="liquids/containers.lua"/>

<action itemid="2009" event="script" value="liquids/containers.lua"/>

<action itemid="2011" event="script" value="liquids/containers.lua"/>

<action itemid="2012" event="script" value="liquids/containers.lua"/>

<action itemid="2013" event="script" value="liquids/containers.lua"/>

<action itemid="2014" event="script" value="liquids/containers.lua"/>

<action itemid="2015" event="script" value="liquids/containers.lua"/>

<action itemid="2023" event="script" value="liquids/containers.lua"/>

<action itemid="2031" event="script" value="liquids/containers.lua"/>

<action itemid="2032" event="script" value="liquids/containers.lua"/>

<action itemid="2033" event="script" value="liquids/containers.lua"/>

<action itemid="2034" event="script" value="liquids/containers.lua"/>

<action itemid="2562" event="script" value="liquids/containers.lua"/>

<action itemid="2574" event="script" value="liquids/containers.lua"/>

<action itemid="2575" event="script" value="liquids/containers.lua"/>

<action itemid="2576" event="script" value="liquids/containers.lua"/>

<action itemid="2577" event="script" value="liquids/containers.lua"/>

<action itemid="3941" event="script" value="liquids/containers.lua"/>

<action itemid="3942" event="script" value="liquids/containers.lua"/>

<action itemid="5553" event="script" value="liquids/containers.lua"/>

<action itemid="10150" event="script" value="liquids/containers.lua"/>

<action itemid="6558" event="script" value="liquids/demonic_blood.lua"/>

<action itemid="7588-7591;8472-8473;7618;7620;8704" event="script" value="liquids/potions.lua"/>

<action itemid="7439" event="script" value="liquids/berserk_potion.lua"/>

<action itemid="7440" event="script" value="liquids/mastermind_potion.lua"/>

<action itemid="7443" event="script" value="liquids/bullseye_potion.lua"/>

<action itemid="8474" event="script" value="liquids/antidote_potion.lua"/>

<!-- Food -->

<action fromid="2695" toid="2696" event="script" value="other/food.lua"/>

<action fromid="2787" toid="2796" event="script" value="other/food.lua"/>

<action itemid="5097" event="script" value="other/food.lua"/>

<action itemid="6125" event="script" value="other/food.lua"/>

<action itemid="6278" event="script" value="other/food.lua"/>

<action itemid="6279" event="script" value="other/food.lua"/>

<action itemid="6394" event="script" value="other/food.lua"/>

<action itemid="6501" event="script" value="other/food.lua"/>

<action fromid="6541" toid="6545" event="script" value="other/food.lua"/>

<action itemid="6569" event="script" value="other/food.lua"/>

<action itemid="6574" event="script" value="other/food.lua"/>

<action itemid="7158" event="script" value="other/food.lua"/>

<action itemid="7159" event="script" value="other/food.lua"/>

<action fromid="7372" toid="7377" event="script" value="other/food.lua"/>

<action itemid="7909" event="script" value="other/food.lua"/>

<action fromid="8838" toid="8845" event="script" value="other/food.lua"/>

<action itemid="8847" event="script" value="other/food.lua"/>

<!-- Increase/Decrease ItemId -->

<action itemid="461" event="function" value="increaseItemId"/>

<action itemid="462" event="function" value="decreaseItemId"/>

<action itemid="1873" event="function" value="increaseItemId"/>

<action itemid="1874" event="function" value="decreaseItemId"/>

<action itemid="1875" event="function" value="increaseItemId"/>

<action itemid="1876" event="function" value="decreaseItemId"/>

<action itemid="2162" event="function" value="increaseItemId"/>

<action itemid="2163" event="function" value="decreaseItemId"/>

<action itemid="3743" event="function" value="increaseItemId"/>

<action itemid="3744" event="function" value="decreaseItemId"/>

<action itemid="3947" event="function" value="increaseItemId"/>

<action itemid="3948" event="function" value="decreaseItemId"/>

<action itemid="1479" event="function" value="increaseItemId"/>

<action itemid="1480" event="function" value="decreaseItemId"/>

<action itemid="2037" event="function" value="increaseItemId"/>

<action itemid="2038" event="function" value="decreaseItemId"/>

<action itemid="2039" event="function" value="increaseItemId"/>

<action itemid="2040" event="function" value="decreaseItemId"/>

<action itemid="2058" event="function" value="increaseItemId"/>

<action itemid="2059" event="function" value="decreaseItemId"/>

<action itemid="2060" event="function" value="increaseItemId"/>

<action itemid="2061" event="function" value="decreaseItemId"/>

<action itemid="2066" event="function" value="increaseItemId"/>

<action itemid="2067" event="function" value="decreaseItemId"/>

<action itemid="2068" event="function" value="increaseItemId"/>

<action itemid="2069" event="function" value="decreaseItemId"/>

<action itemid="2064" event="function" value="increaseItemId"/>

<action itemid="2065" event="function" value="decreaseItemId"/>

<action itemid="2578" event="function" value="increaseItemId"/>

<action itemid="2096" event="function" value="increaseItemId"/>

<action itemid="2097" event="function" value="decreaseItemId"/>

<action itemid="1786" event="function" value="increaseItemId"/>

<action itemid="1787" event="function" value="decreaseItemId"/>

<action itemid="1788" event="function" value="increaseItemId"/>

<action itemid="1789" event="function" value="decreaseItemId"/>

<action itemid="1790" event="function" value="increaseItemId"/>

<action itemid="1791" event="function" value="decreaseItemId"/>

<action itemid="1792" event="function" value="increaseItemId"/>

<action itemid="1793" event="function" value="decreaseItemId"/>

<action itemid="1634" event="function" value="increaseItemId"/>

<action itemid="1635" event="function" value="decreaseItemId"/>

<action itemid="1636" event="function" value="increaseItemId"/>

<action itemid="1637" event="function" value="decreaseItemId"/>

<action itemid="1638" event="function" value="increaseItemId"/>

<action itemid="1639" event="function" value="decreaseItemId"/>

<action itemid="1640" event="function" value="increaseItemId"/>

<action itemid="1641" event="function" value="decreaseItemId"/>

<action itemid="7058" event="function" value="increaseItemId"/>

<action itemid="7059" event="function" value="decreaseItemId"/>

<action itemid="8687" event="function" value="decreaseItemId"/>

<action itemid="8688" event="function" value="increaseItemId"/>

<action itemid="8689" event="function" value="decreaseItemId"/>

<action itemid="8690" event="function" value="increaseItemId"/>

<action itemid="8691" event="function" value="decreaseItemId"/>

<action itemid="9575" event="function" value="increaseItemId"/>

<action itemid="9576" event="function" value="decreaseItemId"/>

<action itemid="9577" event="function" value="increaseItemId"/>

<action itemid="9578" event="function" value="decreaseItemId"/>

<action itemid="9579" event="function" value="increaseItemId"/>

<action itemid="9580" event="function" value="decreaseItemId"/>

<action itemid="9581" event="function" value="increaseItemId"/>

<action itemid="9582" event="function" value="decreaseItemId"/>

<action itemid="9624" event="function" value="increaseItemId"/>

<action itemid="9625" event="function" value="decreaseItemId"/>

<action itemid="9747" event="function" value="increaseItemId"/>

<action itemid="9748" event="function" value="decreaseItemId"/>

<action itemid="9749" event="function" value="increaseItemId"/>

<action itemid="9750" event="function" value="decreaseItemId"/>

<action itemid="9825" event="function" value="increaseItemId"/>

<action itemid="9826" event="function" value="decreaseItemId"/>

<action itemid="9827" event="function" value="increaseItemId"/>

<action itemid="9828" event="function" value="decreaseItemId"/>

<action itemid="9973" event="function" value="increaseItemId"/>

<action itemid="9974" event="function" value="decreaseItemId"/>

<action itemid="10044" event="function" value="increaseItemId"/>

<action itemid="10045" event="function" value="decreaseItemId"/>

<!-- Spellbooks -->

<action itemid="2175" event="script" value="other/spellbook.lua"/>

<action itemid="6120" event="script" value="other/spellbook.lua"/>

<action fromid="8900" toid="8904" event="script" value="other/spellbook.lua"/>

<action itemid="8918" event="script" value="other/spellbook.lua"/>

<!-- Change gold -->

<action itemid="2148" event="script" value="other/changegold.lua"/>

<action itemid="2152" event="script" value="other/changegold.lua"/>

<action itemid="2160" event="script" value="other/changegold.lua"/>

<action itemid="8777" event="script" value="other/changegold.lua"/>

<!-- Construction kits -->

<action fromid="3901" toid="3938" event="script" value="other/constructionkits.lua"/>

<action fromid="5086" toid="5088" event="script" value="other/constructionkits.lua"/>

<action fromid="6114" toid="6115" event="script" value="other/constructionkits.lua"/>

<action fromid="6372" toid="6373" event="script" value="other/constructionkits.lua"/>

<action fromid="7960" toid="7962" event="script" value="other/constructionkits.lua"/>

<action fromid="8692" toid="8693" event="script" value="other/constructionkits.lua"/>

<action itemid="7503" event="script" value="other/constructionkits.lua"/>

<action itemid="7700" event="script" value="other/constructionkits.lua"/>

<!-- Bed construction kits -->

<action fromid="7904" toid="7907" event="script" value="other/furniturebeds.lua"/>

<!-- Music, instruments -->

<action fromid="2070" toid="2085" event="script" value="other/music.lua"/>

<action itemid="2095" event="script" value="other/music.lua"/>

<action itemid="2332" event="script" value="other/music.lua"/>

<action itemid="2364" event="script" value="other/music.lua"/>

<action fromid="2367" toid="2374" event="script" value="other/music.lua"/>

<action fromid="3951" toid="3953" event="script" value="other/music.lua"/>

<action itemid="3957" event="script" value="other/music.lua"/>

<action itemid="5786" event="script" value="other/music.lua"/>

<action itemid="6572" event="script" value="other/music.lua"/>

<!-- Teleport (stairs, ladders) -->

<action itemid="430" event="script" value="other/teleport.lua"/>

<action itemid="1368" event="script" value="other/teleport.lua"/>

<action itemid="1369" event="script" value="other/teleport.lua"/>

<action itemid="1386" event="script" value="other/teleport.lua"/>

<action itemid="3678" event="script" value="other/teleport.lua"/>

<action itemid="5543" event="script" value="other/teleport.lua"/>

<action itemid="8580" event="script" value="other/teleport.lua"/>

<action itemid="8599" event="script" value="other/teleport.lua"/>

<action itemid="10035" event="script" value="other/teleport.lua"/>

<!-- Destroy -->

<action id="2321;2390-2398;2400-2404;2406-2409;2411-2417;2419;2421-2441;2443-2454;3961-3964;3966;4846;6101;6528;6553;7379-7392;7402-7437;7449;7451-7456;7744-7758;7763-7777;7854-7883;7958;8601-8602;8924-8932;10293" event="script" value="other/destroy.lua"/>

<!-- Bread Creating -->

<action itemid="2692" event="script" value="other/createbread.lua"/>

<action itemid="2694" event="script" value="other/createbread.lua"/>

<!-- Windows -->

<action fromid="5303" toid="5305" event="script" value="other/windows.lua"/>

<action fromid="6436" toid="6473" event="script" value="other/windows.lua"/>

<action fromid="6788" toid="6791" event="script" value="other/windows.lua"/>

<action fromid="7025" toid="7032" event="script" value="other/windows.lua"/>

<action fromid="10264" toid="10267" event="script" value="other/windows.lua"/>

<action fromid="10488" toid="10491" event="script" value="other/windows.lua"/>

<!-- Doors -->

<action fromid="1209" toid="1214" event="script" value="other/doors.lua"/>

<action fromid="1219" toid="1262" event="script" value="other/doors.lua"/>

<action fromid="1539" toid="1542" event="script" value="other/doors.lua"/>

<action fromid="2086" toid="2092" event="script" value="other/doors.lua"/>

<action fromid="3535" toid="3552" event="script" value="other/doors.lua"/>

<action fromid="4913" toid="4918" event="script" value="other/doors.lua"/>

<action fromid="5082" toid="5085" event="script" value="other/doors.lua"/>

<action fromid="5098" toid="5145" event="script" value="other/doors.lua"/>

<action fromid="5278" toid="5295" event="script" value="other/doors.lua"/>

<action fromid="5515" toid="5518" event="script" value="other/doors.lua"/>

<action fromid="5732" toid="5737" event="script" value="other/doors.lua"/>

<action fromid="5745" toid="5749" event="script" value="other/doors.lua"/>

<action fromid="6192" toid="6209" event="script" value="other/doors.lua"/>

<action fromid="6249" toid="6266" event="script" value="other/doors.lua"/>

<action fromid="6795" toid="6802" event="script" value="other/doors.lua"/>

<action fromid="6891" toid="6908" event="script" value="other/doors.lua"/>

<action fromid="7033" toid="7050" event="script" value="other/doors.lua"/>

<action fromid="7054" toid="7057" event="script" value="other/doors.lua"/>

<action fromid="8541" toid="8558" event="script" value="other/doors.lua"/>

<action fromid="9165" toid="9184" event="script" value="other/doors.lua"/>

<action fromid="9267" toid="9284" event="script" value="other/doors.lua"/>

<action itemid="10032" event="script" value="other/doors.lua"/>

<action itemid="10091" event="script" value="other/doors.lua"/>

<action fromid="10268" toid="10285" event="script" value="other/doors.lua"/>

<action fromid="10468" toid="10486" event="script" value="other/doors.lua"/>

<action fromid="10774" toid="10776" event="script" value="other/doors.lua"/>

<action fromid="10779" toid="10785" event="script" value="other/doors.lua"/>

<action fromid="10788" toid="10791" event="script" value="other/doors.lua"/>

<!-- Watch -->

<action itemid="2036" event="script" value="other/watch.lua"/>

<action fromid="1728" toid="1731" event="script" value="other/watch.lua"/>

<action itemid="1877" event="script" value="other/watch.lua"/>

<action fromid="6091" toid="6092" event="script" value="other/watch.lua"/>

<action itemid="8187" event="script" value="other/watch.lua"/>

<!-- Decay To -->

<action fromid="2041" toid="2042" event="script" value="other/decayto.lua"/>

<action fromid="2044" toid="2045" event="script" value="other/decayto.lua"/>

<action fromid="2047" toid="2048" event="script" value="other/decayto.lua"/>

<action fromid="2050" toid="2055" event="script" value="other/decayto.lua"/>

<action fromid="5812" toid="5813" event="script" value="other/decayto.lua"/>

<action itemid="7183" event="script" value="other/decayto.lua"/>

<action itemid="9006" event="script" value="other/decayto.lua"/>

<action fromid="9976" toid="9979" event="script" value="other/decayto.lua"/>

<!-- Other -->

<action itemid="2114" event="script" value="other/piggybank.lua"/>

<action fromid="6570" toid="6571" event="script" value="other/surprisebag.lua"/>

<action fromid="5792" toid="5797" event="script" value="other/dice.lua"/>

<action itemid="6576" event="script" value="other/fireworksrocket.lua"/>

<action itemid="6578" event="script" value="other/partyhat.lua"/>

<action itemid="2785" event="script" value="other/blueberrybush.lua"/>

<action itemid="2579" event="script" value="other/trap.lua"/>

<action itemid="5791" event="script" value="other/stuffeddragon.lua"/>

<action itemid="6566" event="script" value="other/stuffeddragon.lua"/>

<action itemid="2508" event="script" value="ditto.lua"/>

<action itemid="2269" event="script" value="revive.lua" allowfaruse="1" blockwalls="1"/>

<action itemid="7891" event="script" value="box4.lua"/>

	    <action itemid="7886" event="script" value="box3.lua"/>

	    <action itemid="7885" event="script" value="box2.lua"/>

	    <action itemid="7884" event="script" value="box1.lua"/>

-- POTIONS

<action itemid="2271-2275" event="script" value="potion.lua" allowfaruse="1" blockwalls="1"/>


<action uniqueid="2000" event="script" value="caterpie.lua"/>

<action uniqueid="1000" event="script" value="rattata.lua"/>

<action uniqueid="3000" event="script" value="weedlee.lua"/>

<action itemid="2376" event="script" value="pokemon/pokedex.lua" allowfaruse="1" blockwalls="1"/>

<action itemid="3777" event="script" value="roupas.lua"/>

<action itemid="2220;2221;2222;2223;11438;11439;11442;11443;11446;11447;11449;11450;11452;11453;11455;11456;11458;11459" event="script" value="goback.lua"/>

<action itemid="2224;2227;11440;11444;11448;11451;11454;11457;11460" event="script" value="fainted.lua"/>

<action itemid="2147;11437;2146;11441;11445" event="script" value="catch.lua"/>

<action itemid="2550" event="script" value="order.lua" allowfaruse="1"/>

<action itemid="3896;3897;3867;3868" event="script" value="roupas.lua"/>

<action itemid="2276;2277;2278;2279;2280;2281;2283;2284;2285;2286;2287;2288;2289;2290" event="script" value="evolution.lua" allowfaruse="1"/>

-- MYSTERY MANSION

<action actionid="1003;1004;1006;1010;1012;1013" event="script" value="backmansion.lua"/>


  </actions>

Desculpa.

Gostou?? ?)

Clicke em gostei =D!!!

Link para o post
Compartilhar em outros sites

Ok, você tem um mapeditor?

Se tiver... abra o map do seu Ot e vai para a posição do bau dos pokemons iniciais e pegue o ActionID,Ou de look com o seu GOD no bau e vai mostrar!

Link para o post
Compartilhar em outros sites

eu abri pelo rme clikei no bau com o botão direito e clikei em prorpieties (axo q eh isso) e tava action id 0 e unique id 1000

Gostou?? ?)

Clicke em gostei =D!!!

Link para o post
Compartilhar em outros sites

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!!!

Link para o post
Compartilhar em outros sites

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!!!

Link para o post
Compartilhar em outros sites

Eu nunca tive vontade de mecher com algo de pokemon, entao nao posso lhe ajudar,

Mais com essas informações que tu passou, alguem ja tenha mechido podera ajuda-lo facilmente.

Link para o post
Compartilhar em outros sites

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!!!

Link para o post
Compartilhar em outros sites
  • 1 year later...

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo