Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Então amigo, é difícil ajudar assim sem ver nenhum código ou erro no terminal. Caso não tenha problema testar outro script, dá uma testada nesse aqui: 

Caso dê algum erro pode mandar mensagem aqui me marcando que eu dou uma olhada.

 

Link para o post
Compartilhar em outros sites

erro no terminal não da nem 1, porem a maquina não funciona e não aparece nada no canal ctrl+o 

 

vou testar e te falo

@marcot 

3) Vá no map editor de sua preferência, crie um contêiner e um ativador (nos testes usei uma alavanca), guarde a posição do contêiner, pois será necessário na configuração do script.

eu teria que criar 2 itens certo ? 1 de conteiner e 1 que ativa os helds ?? 

@marcot como faz para a maquina funcionar ? eu clico com botao direito nela aparece isto : 

 

Citar

image.thumb.png.479f17f91617051e873def88590404c6.png

Nota que na bag eu tenho 100 devoted tokens

 

Nota 2: já coloquei no container que esta logo ao lado >> (a maquina verde com vermelho) e não funciona

Editado por vini3h (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
1 minuto atrás, marcot disse:

Ah, a máquina que você dizia era de retirar held, não de fundir. 

Pode especificar melhor como você quer o sistema? Eu posso tentar fazer aqui

@vini3h

quero 1 sistema que troque os devoted por 1 held entre tier 1 e 2 aleatoriamente ! (troca 20 tokens (devoted) por held aleatorio t1 e t2 

 

em seguida 50 tokens devoted. por 1 held tier 2 a tier 4 

 

e por ai vai ...

Link para o post
Compartilhar em outros sites
2 minutos atrás, vini3h disse:

quero 1 sistema que troque os devoted por 1 held entre tier 1 e 2 aleatoriamente ! (troca 20 tokens (devoted) por held aleatorio t1 e t2 

 

em seguida 50 tokens devoted. por 1 held tier 2 a tier 4 

 

e por ai vai ...

Na distro que você usa tem algum modal window? Sem ela não vejo um jeito fácil do player poder escolher como ele quer gastar os tokens

Editado por marcot (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
Agora, vini3h disse:

o que é modal window ? :( 

São janelinhas desse tipo:

[IMG]

Imagem retirada de:

 

Caso não tenha, você tem em mente alguma ideia de como o player deve escolher como ele vai trocar os helds?

Link para o post
Compartilhar em outros sites
1 minuto atrás, marcot disse:

São janelinhas desse tipo:

[IMG]

Imagem retirada de:

 

Caso não tenha, você tem em mente alguma ideia de como o player deve escolher como ele vai trocar os helds?

 

Não :(

 

posso fazer 1 imagem , ou tentar montar algo desse tipo, mas teria que configurar pelo client também não ?

porém no sistema da pxg se não me engano, abre 1 canal privado : 

 

 

Resultado de imagem para imagem held item

 

esse é o sistema do "zipter" que estava tentando usar 

Só que não quero que ele apareça no ctrl+o por exemplo entende ?

Editado por vini3h (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

@vini3h

Eu dei uma olhada aqui nesse script do @zipter98 e consegui entender o código dele, parece funcional. Você deve não ter configurado corretamente, pode mandar como está o seu script q ta em creaturescripts?

Editado por marcot (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
1 minuto atrás, marcot disse:

@vini3h

Eu dei uma olhada aqui nesse script do @zipter98, parece funcional. Você deve não ter configurado corretamente, pode mandar como está o seu script q ta em creaturescripts?

vou colocar novamente, retirei pois não consegui colocar

Aqui está a parte do channel . xml 

 

Citar

 

<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <!-- README:
        0 - dynamic, reserved for guilds
        1 - always acts as Party channel, only "name" tag available
        3 - always acts as Rule Violations channel
        9 - acts as Help channel- clientsided message
        65535 - DO NOT CHANGE THE ID- only "name", "enabled", "active" and "logged" tags available
     -->
     <channel id="3" name="Regras violadas" logged="yes">
        <vocation id="10"/>
    </channel>
    <channel id="9000" name="Player Party">
        <vocation id="10"/>
    </channel>
    <channel id="9001" name="Trade" level="8" muted="120" conditionId="2" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="10"/>
    </channel>
    <channel id="9003" name="Help" level="20" muted="30" conditionId="3" conditionMessage="Can not reenter, please wait 30 segundos.">
        <vocation id="10"/>
    </channel>
    <channel id="9005" name="Show Pokemon Statistics">
        <vocation id="10"/>
    </channel>
    <channel id="9006" name="Show Top Level">
        <vocation id="10"/>
    </channel>
    <channel id="9007" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="9008" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="9009" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="9010" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="9011" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="9012" name="Show Top Fishing">
        <vocation id="10"/>
    </channel>
    <channel id="20" name="Pokemons Capturados" level="2000">
        <vocation id="10"/>
    </channel>
    <channel id="21" name="20 Devoted Token (Tier 1-2)">
        <vocation id="11"/>
    </channel>
    <channel id="22" name="70 Mighty Token (Tier 1-3)">
        <vocation id="11"/>
    </channel>
    <channel id="23" name="150 Mighty Token (Tier 2-4)">
        <vocation id="11"/>
    </channel>
    <channel id="24" name="300 Mighty Token (Tier 2-6)">
        <vocation id="11"/>
    </channel>
    <channel id="25" name="30 Hornored Token (Tier 1-3)">
        <vocation id="11"/>
    </channel>
    <channel id="26" name="75  Hornered Token (Tier 2-4)">
        <vocation id="11"/>
    </channel>
    <channel id="27" name="150 Hornered Token (Tier 2-6)">
        <vocation id="11"/>
    </channel>
    

    <channel id="10001" name="001-Bulbasaur">
        <vocation id="9"/>
    </channel>
    <channel id="10002" name="002-Ivysaur">
        <vocation id="9"/>
    </channel>
    <channel id="10003" name="003-Venusaur">
        <vocation id="9"/>
    </channel>
    <channel id="10004" name="004-Charmander">
        <vocation id="9"/>
    </channel>
    <channel id="10005" name="005-Charmeleon">
        <vocation id="9"/>
    </channel>
    <channel id="10006" name="006-Charizard">
        <vocation id="9"/>
    </channel>
    <channel id="10007" name="007-Squirtle">
        <vocation id="9"/>
    </channel>
    <channel id="10008" name="008-Wartortle">
        <vocation id="9"/>
    </channel>
    <channel id="10009" name="009-Blastoise">
        <vocation id="9"/>
    </channel>
    <channel id="10010" name="010-Caterpie">
        <vocation id="9"/>
    </channel>
    <channel id="10011" name="011-Metapod">
        <vocation id="9"/>
    </channel>
    <channel id="10012" name="012-Butterfree">
        <vocation id="9"/>
    </channel>
    <channel id="10013" name="013-Weedle">
        <vocation id="9"/>
    </channel>
    <channel id="10014" name="014-Kakuna">
        <vocation id="9"/>
    </channel>
    <channel id="10015" name="015-Beedrill">
        <vocation id="9"/>
    </channel>
    <channel id="10016" name="016-Pidgey">
        <vocation id="9"/>
    </channel>
    <channel id="10017" name="017-Pidgeotto">
        <vocation id="9"/>
    </channel>
    <channel id="10018" name="018-Pidgeot">
        <vocation id="9"/>
    </channel>
    <channel id="10019" name="019-Rattata">
        <vocation id="9"/>
    </channel>
    <channel id="10020" name="020-Raticate">
        <vocation id="9"/>
    </channel>
    <channel id="10021" name="021-Spearow">
        <vocation id="9"/>
    </channel>
    <channel id="10022" name="022-Fearow">
        <vocation id="9"/>
    </channel>
    <channel id="10023" name="023-Ekans">
        <vocation id="9"/>
    </channel>
    <channel id="10024" name="024-Arbok">
        <vocation id="9"/>
    </channel>
    <channel id="10025" name="025-Pikachu">
        <vocation id="9"/>
    </channel>
    <channel id="10026" name="026-Raichu">
        <vocation id="9"/>
    </channel>
    <channel id="10027" name="027-Sandshrew">
        <vocation id="9"/>
    </channel>
    <channel id="10028" name="028-Sandslash">
        <vocation id="9"/>
    </channel>
    <channel id="10029" name="029-Nidoran Female">
        <vocation id="9"/>
    </channel>
    <channel id="10030" name="030-Nidorina">
        <vocation id="9"/>
    </channel>
    <channel id="10031" name="031-Nidoqueen">
        <vocation id="9"/>
    </channel>
    <channel id="10032" name="032-Nidoran Male">
        <vocation id="9"/>
    </channel>
    <channel id="10033" name="033-Nidorino">
        <vocation id="9"/>
    </channel>
    <channel id="10034" name="034-Nidoking">
        <vocation id="9"/>
    </channel>
    <channel id="10035" name="035-Clefairy">
        <vocation id="9"/>
    </channel>
    <channel id="10036" name="036-Clefable">
        <vocation id="9"/>
    </channel>
    <channel id="10037" name="037-Vulpix">
        <vocation id="9"/>
    </channel>
    <channel id="10038" name="038-Ninetales">
        <vocation id="9"/>
    </channel>
    <channel id="10039" name="039-Jigglypuff">
        <vocation id="9"/>
    </channel>
    <channel id="10040" name="040-Wigglytuff">
        <vocation id="9"/>
    </channel>
    <channel id="10041" name="041-Zubat">
        <vocation id="9"/>
    </channel>
    <channel id="10042" name="042-Golbat">
        <vocation id="9"/>
    </channel>
    <channel id="10043" name="043-Oddish">
        <vocation id="9"/>
    </channel>
    <channel id="10044" name="044-Gloom">
        <vocation id="9"/>
    </channel>
    <channel id="10045" name="045-Vileplume">
        <vocation id="9"/>
    </channel>
    <channel id="10046" name="046-Paras">
        <vocation id="9"/>
    </channel>
    <channel id="10047" name="047-Parasect">
        <vocation id="9"/>
    </channel>
    <channel id="10048" name="048-Venonat">
        <vocation id="9"/>
    </channel>
    <channel id="10049" name="049-Venomoth">
        <vocation id="9"/>
    </channel>
    <channel id="10050" name="050-Diglett">
        <vocation id="9"/>
    </channel>
    <channel id="10051" name="051-Dugtrio">
        <vocation id="9"/>
    </channel>
    <channel id="10052" name="052-Meowth">
        <vocation id="9"/>
    </channel>
    <channel id="10053" name="053-Persian">
        <vocation id="9"/>
    </channel>
    <channel id="10054" name="054-Psyduck">
        <vocation id="9"/>
    </channel>
    <channel id="10055" name="055-Golduck">
        <vocation id="9"/>
    </channel>
    <channel id="10056" name="056-Mankey">
        <vocation id="9"/>
    </channel>
    <channel id="10057" name="057-Primeape">
        <vocation id="9"/>
    </channel>
    <channel id="10058" name="058-Growlithe">
        <vocation id="9"/>
    </channel>
    <channel id="10059" name="059-Arcanine">
        <vocation id="9"/>
    </channel>
    <channel id="10060" name="060-Poliwag">
        <vocation id="9"/>
    </channel>
    <channel id="10061" name="061-Poliwhirl">
        <vocation id="9"/>
    </channel>
    <channel id="10062" name="062-Poliwrath">
        <vocation id="9"/>
    </channel>
    <channel id="10063" name="063-Abra">
        <vocation id="9"/>
    </channel>
    <channel id="10064" name="064-Kadabra">
        <vocation id="9"/>
    </channel>
    <channel id="10065" name="065-Alakazam">
        <vocation id="9"/>
    </channel>
    <channel id="10066" name="066-Machop">
        <vocation id="9"/>
    </channel>
    <channel id="10067" name="067-Machoke">
        <vocation id="9"/>
    </channel>
    <channel id="10068" name="068-Machamp">
        <vocation id="9"/>
    </channel>
    <channel id="10069" name="069-Bellsprout">
        <vocation id="9"/>
    </channel>
    <channel id="10070" name="070-Weepinbell">
        <vocation id="9"/>
    </channel>
    <channel id="10071" name="071-Victreebel">
        <vocation id="9"/>
    </channel>
    <channel id="10072" name="072-Tentacool">
        <vocation id="9"/>
    </channel>
    <channel id="10073" name="073-Tentacruel">
        <vocation id="9"/>
    </channel>
    <channel id="10074" name="074-Geodude">
        <vocation id="9"/>
    </channel>
    <channel id="10075" name="075-Graveler">
        <vocation id="9"/>
    </channel>
    <channel id="10076" name="076-Golem">
        <vocation id="9"/>
    </channel>
    <channel id="10077" name="077-Ponyta">
        <vocation id="9"/>
    </channel>
    <channel id="10078" name="078-Rapidash">
        <vocation id="9"/>
    </channel>
    <channel id="10079" name="079-Slowpoke">
        <vocation id="9"/>
    </channel>
    <channel id="10080" name="080-Slowbro">
        <vocation id="9"/>
    </channel>
    <channel id="10081" name="081-Magnemite">
        <vocation id="9"/>
    </channel>
    <channel id="10082" name="082-Magneton">
        <vocation id="9"/>
    </channel>
    <channel id="10083" name="083-Farfetch'd">
        <vocation id="9"/>
    </channel>
    <channel id="10084" name="084-Doduo">
        <vocation id="9"/>
    </channel>
    <channel id="10085" name="085-Dodrio">
        <vocation id="9"/>
    </channel>
    <channel id="10086" name="086-Seel">
        <vocation id="9"/>
    </channel>
    <channel id="10087" name="087-Dewgong">
        <vocation id="9"/>
    </channel>
    <channel id="10088" name="088-Grimer">
        <vocation id="9"/>
    </channel>
    <channel id="10089" name="089-Muk">
        <vocation id="9"/>
    </channel>
    <channel id="10090" name="090-Shellder">
        <vocation id="9"/>
    </channel>
    <channel id="10091" name="091-Cloyster">
        <vocation id="9"/>
    </channel>
    <channel id="10092" name="092-Gastly">
        <vocation id="9"/>
    </channel>
    <channel id="10093" name="093-Haunter">
        <vocation id="9"/>
    </channel>
    <channel id="10094" name="094-Gengar">
        <vocation id="9"/>
    </channel>
    <channel id="10095" name="095-Onix">
        <vocation id="9"/>
    </channel>
    <channel id="10096" name="096-Drowzee">
        <vocation id="9"/>
    </channel>
    <channel id="10097" name="097-Hypno">
        <vocation id="9"/>
    </channel>
    <channel id="10098" name="098-Krabby">
        <vocation id="9"/>
    </channel>
    <channel id="10099" name="099-Kingler">
        <vocation id="9"/>
    </channel>
    <channel id="10100" name="100-Voltorb">
        <vocation id="9"/>
    </channel>
    <channel id="10101" name="101-Electrode">
        <vocation id="9"/>
    </channel>
    <channel id="10102" name="102-Exeggcute">
        <vocation id="9"/>
    </channel>
    <channel id="10103" name="103-Exeggutor">
        <vocation id="9"/>
    </channel>
    <channel id="10104" name="104-Cubone">
        <vocation id="9"/>
    </channel>
    <channel id="10105" name="105-Marowak">
        <vocation id="9"/>
    </channel>
    <channel id="10106" name="106-Hitmonlee">
        <vocation id="9"/>
    </channel>
    <channel id="10107" name="107-Hitmonchan">
        <vocation id="9"/>
    </channel>
    <channel id="10108" name="108-Lickitung">
        <vocation id="9"/>
    </channel>
    <channel id="10109" name="109-Koffing">
        <vocation id="9"/>
    </channel>
    <channel id="10110" name="110-Weezing">
        <vocation id="9"/>
    </channel>
    <channel id="10111" name="111-Rhyhorn">
        <vocation id="9"/>
    </channel>
    <channel id="10112" name="112-Rhydon">
        <vocation id="9"/>
    </channel>
    <channel id="10113" name="113-Chansey">
        <vocation id="9"/>
    </channel>
    <channel id="10114" name="114-Tangela">
        <vocation id="9"/>
    </channel>
    <channel id="10115" name="115-Kangaskhan">
        <vocation id="9"/>
    </channel>
    <channel id="10116" name="116-Horsea">
        <vocation id="9"/>
    </channel>
    <channel id="10117" name="117-Seadra">
        <vocation id="9"/>
    </channel>
    <channel id="10118" name="118-Goldeen">
        <vocation id="9"/>
    </channel>
    <channel id="10119" name="119-Seaking">
        <vocation id="9"/>
    </channel>
    <channel id="10120" name="120-Staryu">
        <vocation id="9"/>
    </channel>
    <channel id="10121" name="121-Starmie">
        <vocation id="9"/>
    </channel>
    <channel id="10122" name="122-Mr. Mime">
        <vocation id="9"/>
    </channel>
    <channel id="10123" name="123-Scyther">
        <vocation id="9"/>
    </channel>
    <channel id="10124" name="124-Jynx">
        <vocation id="9"/>
    </channel>
    <channel id="10125" name="125-Electabuzz">
        <vocation id="9"/>
    </channel>
    <channel id="10126" name="126-Magmar">
        <vocation id="9"/>
    </channel>
    <channel id="10127" name="127-Pinsir">
        <vocation id="9"/>
    </channel>
    <channel id="10128" name="128-Tauros">
        <vocation id="9"/>
    </channel>
    <channel id="10129" name="129-Magikarp">
        <vocation id="9"/>
    </channel>
    <channel id="10130" name="130-Gyarados">
        <vocation id="9"/>
    </channel>
    <channel id="10131" name="131-Lapras">
        <vocation id="9"/>
    </channel>
    <channel id="10132" name="132-Ditto">
        <vocation id="9"/>
    </channel>
    <channel id="10133" name="133-Eevee">
        <vocation id="9"/>
    </channel>
    <channel id="10134" name="134-Vaporeon">
        <vocation id="9"/>
    </channel>
    <channel id="10135" name="135-Jolteon">
        <vocation id="9"/>
    </channel>
    <channel id="10136" name="136-Flareon">
        <vocation id="9"/>
    </channel>
    <channel id="10137" name="137-Porygon">
        <vocation id="9"/>
    </channel>
    <channel id="10138" name="138-Omanyte">
        <vocation id="9"/>
    </channel>
    <channel id="10139" name="139-Omastar">
        <vocation id="9"/>
    </channel>
    <channel id="10140" name="140-Kabuto">
        <vocation id="9"/>
    </channel>
    <channel id="10141" name="141-Kabutops">
        <vocation id="9"/>
    </channel>
    <channel id="10142" name="142-Aerodactyl">
        <vocation id="9"/>
    </channel>
    <channel id="10143" name="143-Snorlax">
        <vocation id="9"/>
    </channel>
    <channel id="10144" name="144-Articuno">
        <vocation id="9"/>
    </channel>
    <channel id="10145" name="145-Zapdos">
        <vocation id="9"/>
    </channel>
    <channel id="10146" name="146-Moltres">
        <vocation id="9"/>
    </channel>
    <channel id="10147" name="147-Dratini">
        <vocation id="9"/>
    </channel>
    <channel id="10148" name="148-Dragonair">
        <vocation id="9"/>
    </channel>
    <channel id="10149" name="149-Dragonite">
        <vocation id="9"/>
    </channel>
    <channel id="10150" name="150-Mewtwo">
        <vocation id="9"/>
    </channel>
    <channel id="10151" name="151-Mew">
        <vocation id="9"/>
    </channel>
    <channel id="10152" name="152-Chikorita">
        <vocation id="9"/>
    </channel>
    <channel id="10153" name="153-Bayleef">
        <vocation id="9"/>
    </channel>
    <channel id="10154" name="154-Meganium">
        <vocation id="9"/>
    </channel>
    <channel id="10155" name="155-Cyndaquil">
        <vocation id="9"/>
    </channel>
    <channel id="10156" name="156-Quilava">
        <vocation id="9"/>
    </channel>
    <channel id="10157" name="157-Typhlosion">
        <vocation id="9"/>
    </channel>
    <channel id="10158" name="158-Totodile">
        <vocation id="9"/>
    </channel>
    <channel id="10159" name="159-Croconaw">
        <vocation id="9"/>
    </channel>
    <channel id="10160" name="160-Feraligatr">
        <vocation id="9"/>
    </channel>
    <channel id="10161" name="161-Sentret">
        <vocation id="9"/>
    </channel>
    <channel id="10162" name="162-Furret">
        <vocation id="9"/>
    </channel>
    <channel id="10163" name="163-Hoothoot">
        <vocation id="9"/>
    </channel>
    <channel id="10164" name="164-Noctowl">
        <vocation id="9"/>
    </channel>
    <channel id="10165" name="165-Ledyba">
        <vocation id="9"/>
    </channel>
    <channel id="10166" name="166-Ledian">
        <vocation id="9"/>
    </channel>
    <channel id="10167" name="167-Spinarak">
        <vocation id="9"/>
    </channel>
    <channel id="10168" name="168-Ariados">
        <vocation id="9"/>
    </channel>
    <channel id="10169" name="169-Crobat">
        <vocation id="9"/>
    </channel>
    <channel id="10170" name="170-Chinchou">
        <vocation id="9"/>
    </channel>
    <channel id="10171" name="171-Lanturn">
        <vocation id="9"/>
    </channel>
    <channel id="10172" name="172-Pichu">
        <vocation id="9"/>
    </channel>
    <channel id="10173" name="173-Cleffa">
        <vocation id="9"/>
    </channel>
    <channel id="10174" name="174-Iglybuff">
        <vocation id="9"/>
    </channel>
    <channel id="10175" name="175-Togepi">
        <vocation id="9"/>
    </channel>
    <channel id="10176" name="176-Togetic">
        <vocation id="9"/>
    </channel>
    <channel id="10177" name="177-Natu">
        <vocation id="9"/>
    </channel>
    <channel id="10178" name="178-Xatu">
        <vocation id="9"/>
    </channel>
    <channel id="10179" name="179-Mareep">
        <vocation id="9"/>
    </channel>
    <channel id="10180" name="180-Flaaffy">
        <vocation id="9"/>
    </channel>
    <channel id="10181" name="181-Ampharos">
        <vocation id="9"/>
    </channel>
    <channel id="10182" name="182-Bellossom">
        <vocation id="9"/>
    </channel>
    <channel id="10183" name="183-Marill">
        <vocation id="9"/>
    </channel>
    <channel id="10184" name="184-Azumarill">
        <vocation id="9"/>
    </channel>
    <channel id="10185" name="185-Sudowoodo">
        <vocation id="9"/>
    </channel>
    <channel id="10186" name="186-Politoed">
        <vocation id="9"/>
    </channel>
    <channel id="10187" name="187-Hoppip">
        <vocation id="9"/>
    </channel>
    <channel id="10188" name="188-Skiploom">
        <vocation id="9"/>
    </channel>
    <channel id="10189" name="189-Jumpluff">
        <vocation id="9"/>
    </channel>
    <channel id="10190" name="190-Aipom">
        <vocation id="9"/>
    </channel>
    <channel id="10191" name="191-Sunkern">
        <vocation id="9"/>
    </channel>
    <channel id="10192" name="192-Sunflora">
        <vocation id="9"/>
    </channel>
    <channel id="10193" name="193-Yanma">
        <vocation id="9"/>
    </channel>
    <channel id="10194" name="194-Wooper">
        <vocation id="9"/>
    </channel>
    <channel id="10195" name="195-Quagsire">
        <vocation id="9"/>
    </channel>
    <channel id="10196" name="196-Espeon">
        <vocation id="9"/>
    </channel>
    <channel id="10197" name="197-Umbreon">
        <vocation id="9"/>
    </channel>
    <channel id="10198" name="198-Murkrow">
        <vocation id="9"/>
    </channel>
    <channel id="10199" name="199-Slowking">
        <vocation id="9"/>
    </channel>
    <channel id="10200" name="200-Misdreavus">
        <vocation id="9"/>
    </channel>
    <channel id="10201" name="201-Unown">
        <vocation id="9"/>
    </channel>
    <channel id="10202" name="202-Wobbuffet">
        <vocation id="9"/>
    </channel>
    <channel id="10203" name="203-Girafarig">
        <vocation id="9"/>
    </channel>
    <channel id="10204" name="204-Pineco">
        <vocation id="9"/>
    </channel>
    <channel id="10205" name="205-Forretress">
        <vocation id="9"/>
    </channel>
    <channel id="10206" name="206-Dunsparce">
        <vocation id="9"/>
    </channel>
    <channel id="10207" name="207-Gligar">
        <vocation id="9"/>
    </channel>
    <channel id="10208" name="208-Steelix">
        <vocation id="9"/>
    </channel>
    <channel id="10209" name="209-Snubbull">
        <vocation id="9"/>
    </channel>
    <channel id="10210" name="210-Granbull">
        <vocation id="9"/>
    </channel>
    <channel id="10211" name="211-Qwilfish">
        <vocation id="9"/>
    </channel>
    <channel id="10212" name="212-Scizor">
        <vocation id="9"/>
    </channel>
    <channel id="10213" name="213-Shuckle">
        <vocation id="9"/>
    </channel>
    <channel id="10214" name="214-Heracross">
        <vocation id="9"/>
    </channel>
    <channel id="10215" name="215-Sneasel">
        <vocation id="9"/>
    </channel>
    <channel id="10216" name="216-Teddiursa">
        <vocation id="9"/>
    </channel>
    <channel id="10217" name="217-Ursaring">
        <vocation id="9"/>
    </channel>
    <channel id="10218" name="218-Slugma">
        <vocation id="9"/>
    </channel>
    <channel id="10219" name="219-Magcargo">
        <vocation id="9"/>
    </channel>
    <channel id="10220" name="220-Swinub">
        <vocation id="9"/>
    </channel>
    <channel id="10221" name="221-Piloswine">
        <vocation id="9"/>
    </channel>
    <channel id="10222" name="222-Corsola">
        <vocation id="9"/>
    </channel>
    <channel id="10223" name="223-Remoraid">
        <vocation id="9"/>
    </channel>
    <channel id="10224" name="224-Octillery">
        <vocation id="9"/>
    </channel>
    <channel id="10225" name="225-Delibird">
        <vocation id="9"/>
    </channel>
    <channel id="10226" name="226-Mantine">
        <vocation id="9"/>
    </channel>
    <channel id="10227" name="227-Skarmory">
        <vocation id="9"/>
    </channel>
    <channel id="10228" name="228-Houndour">
        <vocation id="9"/>
    </channel>
    <channel id="10229" name="229-Houndoom">
        <vocation id="9"/>
    </channel>
    <channel id="10230" name="230-Kingdra">
        <vocation id="9"/>
    </channel>
    <channel id="10231" name="231-Phanpy">
        <vocation id="9"/>
    </channel>
    <channel id="10232" name="232-Donphan">
        <vocation id="9"/>
    </channel>
    <channel id="10233" name="233-Porygon2">
        <vocation id="9"/>
    </channel>
    <channel id="10234" name="234-Stantler">
        <vocation id="9"/>
    </channel>
    <channel id="10235" name="235-Smeargle">
        <vocation id="9"/>
    </channel>
    <channel id="10236" name="236-Tyrogue">
        <vocation id="9"/>
    </channel>
    <channel id="10237" name="237-Hitmontop">
        <vocation id="9"/>
    </channel>
    <channel id="10238" name="238-Smoochum">
        <vocation id="9"/>
    </channel>
    <channel id="10239" name="239-Elekid">
        <vocation id="9"/>
    </channel>
    <channel id="10240" name="240-Magby">
        <vocation id="9"/>
    </channel>
    <channel id="10241" name="241-Miltank">
        <vocation id="9"/>
    </channel>
    <channel id="10242" name="242-Blissey">
        <vocation id="9"/>
    </channel>
    <channel id="10243" name="243-Raikou">
        <vocation id="9"/>
    </channel>
    <channel id="10244" name="244-Entei">
        <vocation id="9"/>
    </channel>
    <channel id="10245" name="245-Suicune">
        <vocation id="9"/>
    </channel>
    <channel id="10246" name="246-Larvitar">
        <vocation id="9"/>
    </channel>
    <channel id="10247" name="247-Pupitar">
        <vocation id="9"/>
    </channel>
    <channel id="10248" name="248-Tyranitar">
        <vocation id="9"/>
    </channel>
    <channel id="10249" name="249-Lugia">
        <vocation id="9"/>
    </channel>
    <channel id="10250" name="250-Ho-oh">
        <vocation id="9"/>
    </channel>
    <channel id="10251" name="251-Celebi">
        <vocation id="9"/>
    </channel>

    
</channels>

 

Vou colocando os arquivos pra vc ver se está tudo correto

Vocations.xml

 

Citar

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" name="Pokemon Trainer" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="15" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="2.0" magDefense="2.0" armor="2.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.3" fishBase="10" experience="1.0"/>
    </vocation>
    
    <vocation id="1" name="Pokemon Trainer" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="15" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1" lessloss="0">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="2.0" magDefense="2.0" armor="2.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
    <vocation id="2" name="TV" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1" lessloss="0">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
    <vocation id="3" name="PC" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1" lessloss="0">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>

    <vocation id="7" name="Duel System2" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
    <vocation id="8" name="Duel System" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>

    <vocation id="9" name="Pokedex System" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
    <vocation id="10" name="Pokedex System" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
<vocation id="11" name="Held Trade Systemss" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="2" gainhpamount="200" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="264" gainsoulticks="-1" fromvoc="1">
        <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="100.0" fistBase="1000" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="1.5" fishBase="10" experience="1.0"/>
    </vocation>
</vocations>
 

 

Data/actions/scripts/held machine.lua

 

Citar

function onUse(cid)
    doPlayerSetVocation(cid, 10)
    openChannelDialog(cid)
    return true
end

 

Link para o post
Compartilhar em outros sites

data/creaturescripts/scripts/held machine.lua

 

Citar

local trade_options = {
    [21] = {token = {15645, 20}, results = {15615, 15608, 15573, }},
}

function onJoinChannel(cid, channelId, users, isTv)
    local option = trade_options[channelId]
    
    if not option then
        return false
    end
    
    doPlayerSetVocation(cid, 1)
    if doPlayerRemoveItem(cid, option.token[1], option.token[2]) then
        local result = option.results[math.random(#option.results)]
        
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "In trade of "..option.token[2].."x "..getItemNameById(option.token[1])..", you received: "..getItemNameById(result)..".")
        doPlayerAddItem(cid, result, 1)
    else
        doPlayerSendTextMessage(cid, 27, "You do not have "..option.token[2].."x "..getItemNameById(option.token[1])..".")
    end
    return false
end

 

tag : 

 

Citar

    <event type="joinchannel" name="Held_Machine" event="script" value="held machine.lua"/>

 

parte do login.lua (não está o arquivo todo só na parte que adicionei)

 

Citar

    registerCreatureEvent(cid, "dropStone")  --alterado v2.7
    --alterado v2.6.1
    registerCreatureEvent(cid, "ShowPokedex") --alterado v2.6
    registerCreatureEvent(cid, "ClosePokedex") --alterado v2.6
    registerCreatureEvent(cid, "WatchTv")
    registerCreatureEvent(cid, "StopWatchingTv")
    registerCreatureEvent(cid, "WalkTv")
    registerCreatureEvent(cid, "RecordTv")
    registerCreatureEvent(cid, "Death")
    registerCreatureEvent(cid, "PlayerLogout")
    registerCreatureEvent(cid, "WildAttack")
    registerCreatureEvent(cid, "Idle")
    registerCreatureEvent(cid, "PokemonIdle")
    registerCreatureEvent(cid, "EffectOnAdvance")
    registerCreatureEvent(cid, "reward")
    registerCreatureEvent(cid, "GeneralConfiguration")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "LookSystem")
    registerCreatureEvent(cid, "T1")
    registerCreatureEvent(cid, "T2")
    registerCreatureEvent(cid, "ll1")
    registerCreatureEvent(cid, "task_count")
    registerCreatureEvent(cid, "Held_Machine")
     registerCreatureEvent(cid, "ctff")
     registerCreatureEvent(cid, "ctfd")
     registerCreatureEvent(cid, "task")
      registerCreatureEvent(cid, "dota")
      registerCreatureEvent(cid, "atk")
      registerCreatureEvent(cid, "balance")
 

 

2 minutos atrás, marcot disse:

@vini3h faltou o .lua que está em creaturescripts

agora minha duvida, como faço pra acessar esse "channel" pra poder pegar os tokens ?

@marcot meu ctrl+o também parou de abrir -'

Link para o post
Compartilhar em outros sites
11 minutos atrás, vini3h disse:

data/creaturescripts/scripts/held machine.lua

 

 

tag : 

 

 

parte do login.lua (não está o arquivo todo só na parte que adicionei)

 

 

agora minha duvida, como faço pra acessar esse "channel" pra poder pegar os tokens ?

@marcot meu ctrl+o também parou de abrir -'

@vini3h

Você esqueceu de trocar o doSetVocation do Data/actions/scripts/held machine.lua  para 11.

O que reconhece quais canais aparecerão é a vocation, no caso (sim, é gambiarra pra trabalhar com o que tem), e sem estar na vocation correta você não terá as opções (logo, não vai rodar o script).

Seu ctrl+o possivelmente parou de abrir porque a segunda parte do script não estava rodando adequadamente, já que como eu disse acima, ele troca sua vocation para saber quais canais deve abrir, e a volta da vocation está na hora de receber o held.

É importante ressaltar que você deve terminar de configurar o script de acordo com o que o proprio zipter disse no final do post dele (e pelo o que vi seus canais vão do 21 ao 27, você só tem a configuração do 21 para funcionar)

Configure na tabela trade_options as opções de troca, seguindo o modelo:

[ID_do_canal] = {token = {ID_do_token, quantidade}, results = {IDs_dos_helds}},

 

Editado por marcot (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
4 minutos atrás, vini3h disse:

não tem trade_options no meu servidor , apenas trade system,go e back

@marcot eu coloquei só o canal 21, para teste, mas precisa adicionar todos ?

Trade options que digo é a tabela:

local trade_options = {
    [21] = {token = {15645, 20}, results = {15615, 15608, 15573, }},
}

Na parte de cima do script.

 

Você já tentou trocar pra isso o outro la?

function onUse(cid)
    doPlayerSetVocation(cid, 11)
    openChannelDialog(cid)
    return true
end

 

 

Link para o post
Compartilhar em outros sites
1 minuto atrás, marcot disse:

Trade options que digo é a tabela:


local trade_options = {
    [21] = {token = {15645, 20}, results = {15615, 15608, 15573, }},
}

Na parte de cima do script.

 

Você já tentou trocar pra isso o outro la?


function onUse(cid)
    doPlayerSetVocation(cid, 11)
    openChannelDialog(cid)
    return true
end

 

 

na parte da tabela está assim :

Nota: mudei só para até 24, pois os items do canal 25-27 não existem então removi

Citar

local trade_options = {
    [21] = {token = {15645, 20}, results = {15615, 15608, 15573, }},
    [22] = {token = {15644, 70}, results = {15615, 15608, 15573, }},
    [23] = {token = {15644, 150}, results = {15615, 15608, 15573, }},
    [24] = {token = {15644, 300}, results = {15615, 15608, 15573, }},
}

 

e na parte de actions, ja mudei para 11 

só por duvida, precisa adiciona-lo no actions.xml ? (caso não, eu não adicionei)

Link para o post
Compartilhar em outros sites
9 minutos atrás, marcot disse:

Esse:


function onUse(cid)
    doPlayerSetVocation(cid, 11)
    openChannelDialog(cid)
    return true
end

tem q ter a tag adicionada no actions.xml sim

mais qual tag ?

Link para o post
Compartilhar em outros sites
	<action actionid="XXXX" script="held machine.lua"/>

Onde XXXX é o numero do actionID que você colocou pro item no map editor.

Nenhum script sem tag é executado

Editado por marcot (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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.


  • Conteúdo Similar

    • Por cloudrun2023
      CloudRun - Sua Melhor Escolha para Hospedagem de OTServer!
      Você está procurando a solução definitiva para hospedar seu OTServer com desempenho imbatível e segurança inigualável? Não procure mais! Apresentamos a CloudRun, sua parceira confiável em serviços de hospedagem na nuvem.
       
      Recursos Exclusivos - Proteção DDoS Avançada:
      Mantenha seu OTServer online e seguro com nossa robusta proteção DDoS, garantindo uma experiência de jogo ininterrupta para seus jogadores.
       
      Servidores Ryzen 7 Poderosos: Desfrute do poder de processamento superior dos servidores Ryzen 7 para garantir um desempenho excepcional do seu OTServer. Velocidade e estabilidade garantidas!
       
      Armazenamento NVMe de Alta Velocidade:
      Reduza o tempo de carregamento do jogo com nosso armazenamento NVMe ultrarrápido. Seus jogadores vão adorar a rapidez com que podem explorar o mundo do seu OTServer.
       
      Uplink de até 1GB:
      Oferecemos uma conexão de alta velocidade com até 1GB de largura de banda, garantindo uma experiência de jogo suave e livre de lag para todos os seus jogadores, mesmo nos momentos de pico.
       
      Suporte 24 Horas:
      Estamos sempre aqui para você! Nossa equipe de suporte está disponível 24 horas por dia, 7 dias por semana, para resolver qualquer problema ou responder a qualquer pergunta que você possa ter. Sua satisfação é a nossa prioridade.
       
      Fácil e Rápido de Começar:
      Configurar seu OTServer na CloudRun é simples e rápido. Concentre-se no desenvolvimento do seu jogo enquanto cuidamos da hospedagem.
       
      Entre em Contato Agora!
      Website: https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
      Email: [email protected]
      Telefone: (47) 99902-5147

      Não comprometa a qualidade da hospedagem do seu OTServer. Escolha a CloudRun e ofereça aos seus jogadores a melhor experiência de jogo possível. Visite nosso site hoje mesmo para conhecer nossos planos e começar!
       
      https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
       
      CloudRun - Onde a Velocidade Encontra a Confiabilidade!
       

    • Por FeeTads
      SALVE rapaziada do TK, esses dias vim pensando em novos scripts pro meu OT, e em um deles eu precisava que determinada area não contasse frag pro player que matasse outros, PORÉM eu precisava que os players que morressem nessa area ainda assim tivessem as penalidades da sua morte, procurei por ai, achei alguns scripts que apenas tiravam o SKULL e não realmente o FRAG do player.

      **script atualizado 22/10/2023** - melhorado e otimizado, levei o script pra puxar as infos por .lua / creatureScripts

      vou disponibilizar o code aqui, e o que fazer pra determinada area não contar frag.

      SOURCE OTX 2 / TFS 0.x, Funciona em TFS 1.x mudando as tags e ajeitando as sintaxes.

      vá em creatureevent.cpp

      procure por:
      else if(type == "preparedeath") _type = CREATURE_EVENT_PREPAREDEATH;
      Adiciona abaixo:
      else if(type == "nocountfrag") _type = CREATURE_EVENT_NOCOUNTFRAG;

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "onPrepareDeath";  
      Adicione abaixo: 
      case CREATURE_EVENT_NOCOUNTFRAG: return "noCountFragArea";

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "cid, deathList";
      Adicione abaixo:
      case CREATURE_EVENT_NOCOUNTFRAG: return "cid, target";

      agora no mesmo arquivo, vá até o final do arquivo e adicione essa função:
      uint32_t CreatureEvent::executeNoCountFragArea(Creature* creature, Creature* target) { //noCountFragArea(cid, target) if(m_interface->reserveEnv()) { ScriptEnviroment* env = m_interface->getEnv(); if(m_scripted == EVENT_SCRIPT_BUFFER) { env->setRealPos(creature->getPosition()); std::ostringstream scriptstream; scriptstream << "local cid = " << env->addThing(creature) << std::endl; scriptstream << "local target = " << env->addThing(target) << std::endl; if(m_scriptData) scriptstream << *m_scriptData; bool result = true; if(m_interface->loadBuffer(scriptstream.str())) { lua_State* L = m_interface->getState(); result = m_interface->getGlobalBool(L, "_result", true); } m_interface->releaseEnv(); return result; } else { #ifdef __DEBUG_LUASCRIPTS__ std::ostringstream desc; desc << creature->getName(); env->setEvent(desc.str()); #endif env->setScriptId(m_scriptId, m_interface); env->setRealPos(creature->getPosition()); lua_State* L = m_interface->getState(); m_interface->pushFunction(m_scriptId); lua_pushnumber(L, env->addThing(creature)); lua_pushnumber(L, env->addThing(target)); bool result = m_interface->callFunction(2); m_interface->releaseEnv(); return result; } } else { std::clog << "[Error - CreatureEvent::noCountFragArea] Call stack overflow." << std::endl; return 0; } }

      agora vá em creatureevent.h

      procure por:
      CREATURE_EVENT_PREPAREDEATH
      adicione abaixo:
      CREATURE_EVENT_NOCOUNTFRAG

      procure por:
      uint32_t executePrepareDeath(Creature* creature, DeathList deathList);
      Adicione abaixo:
      uint32_t executeNoCountFragArea(Creature* creature, Creature* target);

      agora vá em player.cpp

      procure por:
      bool Player::onKilledCreature(Creature* target, DeathEntry& entry)
      abaixo de:
      War_t enemy; if(targetPlayer->getEnemy(this, enemy)) { if(entry.isLast()) IOGuild::getInstance()->updateWar(enemy); entry.setWar(enemy); }
      Adicione o seguinte código:
      if (targetPlayer){ CreatureEventList killEvents = getCreatureEvents(CREATURE_EVENT_NOCOUNTFRAG); for (const auto &event : killEvents) { if (!event->executeNoCountFragArea(this, target)) { return true; } } }

      //

      Feito isso, tudo completo na sua source, agora é necessário adicionar o creaturescript dentro do servidor

      vá até creaturescripts/scripts
      crie um arquivo chamado, "noCountFragInArea.lua"
      e dentro dele cole o código:
       
      --[[ script feito por feetads / TibiaKing ]]-- --[[ discord: feetads / FeeTads#0246 ]]-- -- Add positions here for which you do not want to count frags local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, -- from = area superior esquerda / to = area inferior direita (formando um quadrado) } local onlyKillerInArea = false -- only killer need to be in area? function noCountFragArea(cid, target) if not isCreature(cid) or not isCreature(target) then return true end local posKiller = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) for i = 1, #areas do local area = areas[i] if isInArea(posKiller, area.from, area.to) then if onlyKillerInArea then return false elseif isInArea(posTarget, area.from, area.to) then return false end end end return true end
      agora em creaturescripts.xml
      <event type="nocountfrag" name="fragarea" event="script" value="noCountFragInArea.lua"/>
      agora em creaturescripts/scripts/login.lua
       procure por OU semelhante a esse:
      registerCreatureEvent(cid, "AdvanceSave")
      e abaixo adicione:
      registerCreatureEvent(cid, "fragarea")

      //


      Agora tudo certo, quando quiser adiciona uma area que não pega frag, vá até o script e apenas coloque a area, igual o demonstrado no script

      Exemplo:
      local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, [2] = {from = {x = 1000, y = 1000, z = 7}, to = {x = 1100, y = 1100, z = 7}}, }
      assim somente colocando a area no script e abrindo o server ou dando /reload, já funcionará a area como não pegar frag.
      Esse sistema pode ser bom pra areas de pvp ativo, onde você ainda quer que o player que morrer perca os atributos, como se fosse uma morte normal, porém não conta frag pra quem matar.
      Bom pra sistemas tipo castle 48h (guild war), onde há diversas mortes e risco de pegar red, atrapalhando a war.

      Façam bom proveito dos scripts, e deixem os créditos no script rsrs

      **Eu fiz as alterações e o simples código por isso vim disponibilizar, créditos meus**
    • Por Muvuka
      Abri canal a força creaturescript acho que funcione no creaturescript cria script creaturescript
       
      <channel id="9" name="HELP" logged="yes"/>
      <channel id="12" name="Report Bugs" logged="yes"/>
      <channel id="13" name="Loot" logged="yes"/>
      <channel id="14" name="Report Character Rules Tibia Rules" logged="yes"/>
      <channel id="15" name="Death Channel"/>
      <channel id="6548" name="DexSoft" level="1"/>
      <channel id="7" name="Reports" logged="yes"/>
       
      antes de 
              if(lastLogin > 0) then adicione isso:
                      doPlayerOpenChannel(cid, CHANNEL_HELP) doPlayerOpenChannel(cid, 1,  2, 3) = 1,2 ,3 Channels, entendeu? NÃO FUNCIONA EU QUERO UM MEIO DE ABRI SEM USA A SOURCE
       
      EU NÃO CONSEGUI ABRI EU NÃO TENHO SOURCE
       
       
    • Por bolachapancao
      Rapaziada seguinte preciso de um script que ao utilizar uma alavanca para até 4 jogadores.
      Os jogadores serão teleportados para hunt durante uma hora e depois de uma hora os jogadores serão teleportados de volta para o templo.
       
      Observação: caso o jogador morra ou saia da hunt o evento hunt é cancelado.

      Estou a base canary
      GitHub - opentibiabr/canary: Canary Server 13.x for OpenTibia community.
       
    • Por RAJADAO
      .Qual servidor ou website você utiliza como base? 
      Sabrehaven 8.0
      Qual o motivo deste tópico? 
      Ajuda com novos efeitos
       
      Olá amigos, gostaria de ajuda para introduzir os seguintes efeitos no meu servidor (usando o Sabrehaven 8.0 como base), adicionei algumas runas novas (avalanche, icicle, míssil sagrado, stoneshower & Thunderstorm) e alguns novos feitiços (exevo mas san, exori san, exori tera, exori frigo, exevo gran mas frigo, exevo gran mas tera, exevo tera hur, exevo frigo hur) mas nenhum dos efeitos dessas magias parece existir no servidor, alguém tem um link para um tutorial ou algo assim para que eu possa fazer isso funcionar?
      Desculpe pelo mau inglês, sou brasileiro.

      Obrigado!


      AVALANCHE RUNE id:3161 \/
      (COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)

      STONESHOWER RUNE id:3175 \/
      (COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_STONES)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)

      THUNDERSTORM RUNE id:3202 \/
      (COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_E NERGYHIT)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)

      ICICLE RUNE id:3158 \/
      COMBAT_ICEDAMAGE
      CONST_ME_ICEAREA
      CONST_ANI_ICE

      SANTO MÍSSIL RUNA id:3182 \/
      (COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)

      CONST_ME_PLANTATTACK (exevo gran mas tera)
      CONST_ME_ICETORNADO (exevo gran mas frigo)
      CONST_ME_SMALLPLANTS (exevo tera hur)
      CONST_ME_ICEAREA (exevo frigo hur)
      CONST_ME_ICEATTACK (exori frigo)
      CONST_ME_CARNIPHILA (exori tera)

      EXORI SAN \/
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
      CONST_ME_HOLYDAM IDADE

      EXEVO MAS SAN \/
      CONST_ME_HOLYAREA
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo