Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Bom gente, estou com o seguinte erro no distro:

 

 

[04/02/2015 03:56:43] [Warning - Actions::registerEvent] Duplicate registered item id: 8908

 

Está falando que 2 tags no Actions.xml estão usando o item com id 8908 né? Mas o problema é que: SÓ TEM 1 TAG USANDO O ITEM, a seguir vocês verão o meu actions.xml, lembrando que a tag deste item, está logo no começo do actions.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action actionid="4521" event="script" value="arena.lua"/>
<action itemid="11191" event="script" value="mount.lua"/>
<action actionid="4531" event="script" value="vocdoor.lua"/>
<action actionid="4532" event="script" value="vocdoor.lua"/>
<action actionid="4533" event="script" value="vocdoor.lua"/>
<action actionid="4534" event="script" value="vocdoor.lua"/>
<action fromid="7838" toid="7840" event="script" value="transformarrow.lua"/>
<action itemid="7850" event="script" value="transformarrow.lua"/>
<action fromid="8905" toid="8909" event="script" value="transformshield.lua"/>
<action itemid="8908" event="script" value="transformshield.lua"/>
<action itemid="9004; 8981" script="pscrolls.lua"/>
 
<!-- training room-doors, beginning -->
    <action actionid="4211" script="training_room.lua" />
    <action actionid="4212" script="training_room.lua" />
    <action actionid="4213" script="training_room.lua" />
    <action actionid="4214" script="training_room.lua" />
    <!-- training room-doors, end -->
 
<!-- Cassino System, end -->
<action uniqueid="6297-6300" event="script" value="cassino.lua"/>
 
<!-- Island of Destiny -->
<action uniqueid="61900" event="script" value="Island of Destiny/knight/brassarmor.lua"/>
<action uniqueid="61901" event="script" value="Island of Destiny/knight/brasslegs.lua"/>
<action uniqueid="61902" event="script" value="Island of Destiny/knight/steelshield.lua"/>
<action uniqueid="61903" event="script" value="Island of Destiny/knight/soldierhelmet.lua"/>
<action uniqueid="61904-61906" event="script" value="Island of Destiny/knight/weapons.lua"/>
<action uniqueid="61907" event="script" value="Island of Destiny/paladin/rangercloak.lua"/>
<action uniqueid="61908" event="script" value="Island of Destiny/paladin/rangerlegs.lua"/>
<action uniqueid="61909" event="script" value="Island of Destiny/paladin/weapon.lua"/>
<action uniqueid="61910" event="script" value="Island of Destiny/paladin/arrow.lua"/>
<action uniqueid="61911" event="script" value="Island of Destiny/sorcerer/magehat.lua"/>
<action uniqueid="61912" event="script" value="Island of Destiny/sorcerer/magicianrobe.lua"/>
<action uniqueid="61913" event="script" value="Island of Destiny/sorcerer/spellbook.lua"/>
<action uniqueid="61914" event="script" value="Island of Destiny/sorcerer/weapon.lua"/>
<action uniqueid="61915" event="script" value="Island of Destiny/druid/magehat.lua"/>
<action uniqueid="61916" event="script" value="Island of Destiny/druid/magicianrobe.lua"/>
<action uniqueid="61917" event="script" value="Island of Destiny/druid/spellbook.lua"/>
<action uniqueid="61918" event="script" value="Island of Destiny/druid/weapon.lua"/>
 
<!-- Trainer Arena -->
<action uniqueid="4501" event="script" value="tarena/bug.lua"/>
<action uniqueid="4502" event="script" value="tarena/wolf.lua"/>
<action uniqueid="4503" event="script" value="tarena/troll.lua"/>
<action uniqueid="4504" event="script" value="tarena/spider.lua"/>
 
<!-- Misc Mine -->
<action uniqueid="4505" event="script" value="trainwall.lua"/>
<action uniqueid="4506" event="script" value="quests/doublet.lua"/>
<action uniqueid="4507" event="script" value="bearroom.lua"/>
<action uniqueid="4508" event="script" value="rats.lua"/>
 
<action itemid="7131" event="script" value="railbymock.lua" />
<action itemid="7132" event="script" value="railbymock.lua" />
 
<action actionid="5555" event="script" value="fut.lua"/>
 
<action itemid="2093" event="script" value="tools/waterpipe.lua"/>
<action actionid="2387" event="script" value="tetris.lua"/>
<action itemid="9564" event="script" value="snakesys.lua"/>
 
<!-- unnatural selection quest -->
<action uniqueid="24150" event="script" value="unna/bones.lua"/> <!-- pile of bones UID -->
<action actionid="24151" event="script" value="unna/skull.lua"/> <!-- not to edit -->
<action uniqueid="24153" event="script" value="unna/cryst.lua"/> <!-- crystal UID -->
 
<!-- dreamer challenge -->
<action itemid="7844;7845;7846" event="script" value="out.lua"/>
<action fromaid="15051" toaid="15053" event="script" value="doc.lua"/>
<action fromaid="15061" toaid="15063" event="script" value="doc.lua"/>
 
<action actionid="39550" event="script" value="bookcase.lua"/>
<action itemid="5938" event="script" value="hydrawater.lua"/>
<action itemid="10523" event="script" value="egg.lua"/>
<action itemid="12245" event="script" value="marked.lua"/>
 
 
<!-- Elemental -->
<action uniqueid="23071" event="script" value="quests/lever.lua"/>
<action fromid="7911" toid="7918" event="script" value="machine.lua"/>
<action fromid="8298" toid="8299" event="script" value="soils.lua"/>
<action fromid="8302" toid="8303" event="script" value="soils.lua"/>
 
<!--- ZAO -->
    <action actionid="4830" event="script" value="zaolever.lua"/> 
    <action actionid="4831" event="script" value="zaolever.lua"/> 
  <action actionid="4832" event="script" value="zaolever.lua"/> 
    <action actionid="4833" event="script" value="zaolever.lua"/> 
    <action uniqueid="6232" event="script" value="script.lua"/> 
    <action actionid="60994" event="script" value="quests/parch.lua"/> 
    <action actionid="4330" event="script" value="zaoquest.lua"/>
    <action actionid="45535" event="script" value="door.lua"/> 
    <action actionid="4331" event="script" value="zaoquest.lua"/> 
<action itemid="7734" event="script" value="food.lua" />
<action itemid="9661" event="script" value="crate.lua" />
 
 
<action itemid="11098" event="script" value="skull.lua"/>
 
<action actionid="1133" event="script" value="other/rats.lua" />  
<!-- rook -->
<action uniqueid="4767" event="script" value="addon.lua" />
 
<action actionid="60034" event="script" value="piano.lua"/> 
<action itemid="6087" event="script" value="piano.lua"/>
<action itemid="6088" event="script" value="piano.lua"/>
<action itemid="6089" event="script" value="piano.lua"/>
<action itemid="6090" event="script" value="piano.lua"/>
 
<!-- Tool Squeezings -->
<action itemid="10511" event="script" value="tools/squeezings.lua"/>
<action itemid="10512" event="script" value="tools/squeezings.lua"/>
<action itemid="10513" event="script" value="tools/squeezings.lua"/>
<action itemid="10514" event="script" value="tools/squeezings.lua"/>
<action itemid="10515" event="script" value="tools/squeezings.lua"/>
<action itemid="10516" event="script" value="tools/squeezings.lua"/>
  
  <!-- Rozjebka-->
<action uniqueid="8889" event="script" value="quests/bsword.lua" />  
<action fromid="2376" toid="2419" event="script" value="rozjebka.lua"/>
<action fromid="2446" toid="2451" event="script" value="rozjebka.lua"/>
<action itemid="6528" event="script" value="rozjebka.lua"/>
<action itemid="2453" event="script" value="rozjebka.lua"/>
<action itemid="7456" event="script" value="rozjebka.lua"/>
<action fromid="7382" toid="7420" event="script" value="rozjebka.lua"/>
<action fromid="8930" toid="8932" event="script" value="rozjebka.lua"/>
<action fromid="2434" toid="2439" event="script" value="rozjebka.lua"/>
<action fromid="7421" toid="7432" event="script" value="rozjebka.lua"/>
<action fromid="8927" toid="8929" event="script" value="rozjebka.lua"/>
<action fromid="2425" toid="2432" event="script" value="rozjebka.lua"/>
<action fromid="2440" toid="2441" event="script" value="rozjebka.lua"/>
<action itemid="2454" event="script" value="rozjebka.lua"/>
<action fromid="8924" toid="8926" event="script" value="rozjebka.lua"/>
<action fromid="7380" toid="7381" event="script" value="rozjebka.lua"/>
<action fromid="7434" toid="7436" event="script" value="rozjebka.lua"/>
 
    <!-- Paradox Actions-->
    <action actionid="11005" event="script" value="paradox_actions/paradox_lvl5.lua"/>
    <action actionid="11004" event="script" value="paradox_actions/paradox_lvl4.lua"/>
    <action actionid="11003" event="script" value="paradox_actions/paradox_box.lua"/>
    <action actionid="11002" event="script" value="paradox_actions/paradox_lvl2.lua"/>
    <action actionid="9901" event="script" value="paradox_actions/paradox_reward.lua"/>
    <action actionid="9902" event="script" value="paradox_actions/paradox_reward.lua"/>
    <action actionid="9903" event="script" value="paradox_actions/paradox_reward.lua"/>
    <action actionid="9904" event="script" value="paradox_actions/paradox_reward.lua"/>
    <action uniqueid="11001" event="script" value="paradox_actions/key.lua"/>
 
    <!-- InquisitonQuest -->
<action uniqueid="1300" event="script" value="quests/inqchests.lua" />
<action uniqueid="1301" event="script" value="quests/inqchests.lua" />
<action uniqueid="1302" event="script" value="quests/inqchests.lua" />
<action uniqueid="1303" event="script" value="quests/inqchests.lua" />
<action uniqueid="1304" event="script" value="quests/inqchests.lua" />
<action uniqueid="1305" event="script" value="quests/inqchests.lua" />
<action uniqueid="1306" event="script" value="quests/inqchests.lua" />
<action uniqueid="1307" event="script" value="quests/inqchests.lua" />
<action uniqueid="1308" event="script" value="quests/inqchests.lua" />
 
    <!-- Inquisiton -->
    <action uniqueid="64446" event="script" value="quests/thecount.lua"/>
    <action itemid="7488" event="script" value="quests/bigboil.lua" />
    <action actionid="18899" event="script" value="quests/pirateghost.lua" />
    <action uniqueid="12568" event="script" value="quests/winter_rope.lua"/>
 
    <!-- Yalaharian 10th --> 
    <action actionid="58261" event="script" value="quests/azerus.lua"/> 
    <action actionid="58263" event="script" value="quests/azerus.lua"/> 
    <action actionid="58267" event="script" value="quests/azeruschest.lua"/> 
    <action actionid="58268" event="script" value="quests/azeruschest.lua"/> 
    <action actionid="58269" event="script" value="quests/azeruschest.lua"/>  
 
    <!--Arena Quest-->
    <action actionid="42366" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42376" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42386" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42357" event="script" value="quests/arenadoors.lua"/>
    <action fromaid="42361" toaid="42365" event="script" value="quests/arenareward.lua"/>
    <action fromaid="42371" toaid="42375" event="script" value="quests/arenareward.lua"/>
    <action fromaid="42381" toaid="42385" event="script" value="quests/arenareward.lua"/>
 
<!-- Quests -->
<action itemid="2361" event="script" value="quests/yakchal.lua" /> 
<action itemid="8266" event="script" value="quests/koshei.lua"/>
<action itemid="8293" event="script" value="quests/demonOak.lua"/>
    <action fromuid="12901" touid ="12904" event="script" value="quests/demonOakChests.lua"/>
    <action uniqueid="55100" event="script" value="quests/demonOakGravestone.lua" />
<action uniqueid="7511" event="script" value="other/poba1.lua" />
<action uniqueid="7512" event="script" value="other/poba2.lua" />
<action uniqueid="7513" event="script" value="other/poba3.lua" />
<action uniqueid="7514" event="script" value="other/poba4.lua" />
<action uniqueid="48811" event="script" value="quests/necro_quest.lua" />
<action uniqueid="17132" event="script" value="quests/goroma_dead_body.lua" />
<action uniqueid="5000" event="script" value="quests/annihilator.lua" />
    <action uniqueid="49111" event="script" value="quests/Copy of annihilator.lua" />
    <action uniqueid="49112" event="script" value="quests/Copy of annihilator.lua" />
    <action uniqueid="49113" event="script" value="quests/Copy of annihilator.lua" />
    <action uniqueid="49114" event="script" value="quests/Copy of annihilator.lua" />  
<action actionid="12942" event="script" value="dcq/tictac_switch.lua"/>
<action uniqueid="12941" event="script" value="dcq/pillars.lua"/>
<action uniqueid="12940" event="script" value="dcq/tictac.lua"/>
<action uniqueid="41191" event="script" value="dcq/switch1.lua"/>
<action uniqueid="13309" event="script" value="quests/banshee.lua"/>
<action uniqueid="13310" event="script" value="quests/banshee1.lua"/>
<action uniqueid="41192" event="script" value="dcq/switch2.lua"/>
<action uniqueid="41193" event="script" value="dcq/switch3.lua"/>
<action uniqueid="41194" event="script" value="dcq/switch4.lua"/>
<action actionid="51061" event="script" value="dcq/switch5.lua"/>
<action itemid="5468" event="script" value="dcq/tp.lua" />
<action uniqueid="16440" event="script" value="quests/dcq_dead.lua"/>
<action uniqueid="10552" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10544" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10548" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10545" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10546" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10547" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10549" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10550" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10559" event="script" value="quests/poirewards.lua"/>
<action uniqueid="10560" event="script" value="quests/poirewards.lua"/>
<action uniqueid="30228" event="script" value="quests/bookpoi.lua"/>
<action uniqueid="56221" event="script" value="quests/poi_skeleton.lua"/>
<action uniqueid="45221" event="script" value="quests/dhq.lua"/>
<action uniqueid="11190" event="script" value="quests/tower_shield.lua"/>
<action uniqueid="11191" event="script" value="quests/dwarven_ring.lua"/>
<action uniqueid="11192" event="script" value="quests/elven_amulet.lua"/>
<action uniqueid="11193" event="script" value="quests/knight_axe.lua"/>
<action uniqueid="11194" event="script" value="quests/warrior_helmet.lua"/>
<action uniqueid="16331" event="script" value="quests/warlock.lua"/>
<action uniqueid="14260" event="script" value="quests/fire_axe.lua"/>
<action uniqueid="14331" event="script" value="quests/orctreasure2.lua"/>
<action uniqueid="7442" event="script" value="quests/orctreasure.lua"/>
<action uniqueid="43430" event="script" value="quests/gshole2.lua"/>
<action uniqueid="45123" event="script" value="quests/iron_helmet.lua"/>
<action uniqueid="50011" event="script" value="quests/book2.lua"/>
<action uniqueid="50012" event="script" value="quests/book1.lua"/>
<action uniqueid="7163" event="script" value="quests/desert2.lua"/>
<action uniqueid="1740" event="script" value="quests/desert1.lua"/>
<action uniqueid="1912" event="script" value="quests/vocation_quest.lua"/>
<action uniqueid="61001" event="script" value="quests/triangle_tower.lua"/>
<action uniqueid="14433" event="script" value="quests/spike_sword.lua"/>
<action uniqueid="8900" event="script" value="quests/explorer.lua"/>
<action uniqueid="1881" event="script" value="quests/waterfall_quest.lua"/>
<action uniqueid="9991" event="script" value="quests/ancienttemple.lua"/>
<action uniqueid="6662" event="script" value="quests/darkarmor.lua"/>
<action uniqueid="7644" event="script" value="quests/scalearmor.lua"/>
<action uniqueid="7451" event="script" value="quests/orcshaman.lua"/>
<action uniqueid="8441" event="script" value="quests/fanfare.lua"/>
<action uniqueid="57346" event="script" value="quests/fanfare_quest.lua"/>
<action uniqueid="47666" event="script" value="quests/mummy.lua"/>
<action uniqueid="65535" event="script" value="quests/blood_herb.lua"/>
<action uniqueid="7777" event="script" value="quests/battleaxe.lua"/>
<action uniqueid="54116" event="script" value="quests/crusader.lua"/>
<action actionid="2000" event="script" value="quests/system.lua"/>
<action actionid="2005" event="script" value="quests/system.lua"/>
<action actionid="2001" event="script" value="quests/system.lua"/>
<action uniqueid="30015" event="script" value="quests/annihilator.lua"/>
 
<!-- Weapons enchanting (Gems) -->
<action itemid="2146" event="script" value="other/enchanting.lua"/>
<action itemid="2147" event="script" value="other/enchanting.lua"/>
<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="10223" event="script" value="tools/mechanical_fishing.lua" allowfaruse="1"/>
<action itemid="6561" event="script" value="tools/ceremonial_ankh.lua"/>
<action itemid="9930" event="script" value="tools/rustremover.lua"/>
<action itemid="2420" event="script" value="tools/machete.lua"/>
<action itemid="2442" event="script" value="tools/machete.lua"/>
<action itemid="2550" event="script" value="tools/scythe.lua"/>
<action itemid="2580" 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 itemid="12598" event="script" value="foods/food.lua"/>
<action itemid="12600" event="script" value="foods/food.lua"/>
<action itemid="12599" event="script" value="foods/food.lua"/>
<action itemid="12377" event="script" value="foods/food.lua"/>
<action itemid="12378" event="script" value="foods/food.lua"/>
<action itemid="12376" event="script" value="foods/food.lua"/>
<action itemid="2328" event="script" value="foods/food.lua"/>
<action itemid="2362" event="script" value="foods/food.lua"/>
<action itemid="2666" event="script" value="foods/food.lua"/>
<action itemid="2667" event="script" value="foods/food.lua"/>
<action itemid="2668" event="script" value="foods/food.lua"/>
<action itemid="2669" event="script" value="foods/food.lua"/>
<action itemid="2670" event="script" value="foods/food.lua"/>
<action itemid="2671" event="script" value="foods/food.lua"/>
<action itemid="2672" event="script" value="foods/food.lua"/>
<action itemid="2673" event="script" value="foods/food.lua"/>
<action itemid="2674" event="script" value="foods/food.lua"/>
<action itemid="6574" event="script" value="foods/food.lua"/>
<action itemid="2675" event="script" value="foods/food.lua"/>
<action itemid="2676" event="script" value="foods/food.lua"/>
<action itemid="2677" event="script" value="foods/food.lua"/>
<action itemid="2678" event="script" value="foods/food.lua"/>
<action itemid="2679" event="script" value="foods/food.lua"/>
<action itemid="2680" event="script" value="foods/food.lua"/>
<action itemid="2681" event="script" value="foods/food.lua"/>
<action itemid="2682" event="script" value="foods/food.lua"/>
<action itemid="2683" event="script" value="foods/food.lua"/>
<action itemid="2684" event="script" value="foods/food.lua"/>
<action itemid="2685" event="script" value="foods/food.lua"/>
<action itemid="2686" event="script" value="foods/food.lua"/>
<action itemid="2687" event="script" value="foods/food.lua"/>
<action itemid="2688" event="script" value="foods/food.lua"/>
<action itemid="2689" event="script" value="foods/food.lua"/>
<action itemid="2690" event="script" value="foods/food.lua"/>
<action itemid="2691" event="script" value="foods/food.lua"/>
<action itemid="2695" event="script" value="foods/food.lua"/>
<action itemid="2696" event="script" value="foods/food.lua"/>
<action itemid="2787" event="script" value="foods/food.lua"/>
<action itemid="2788" event="script" value="foods/food.lua"/>
<action itemid="2789" event="script" value="foods/food.lua"/>
<action itemid="2790" event="script" value="foods/food.lua"/>
<action itemid="2791" event="script" value="foods/food.lua"/>
<action itemid="2792" event="script" value="foods/food.lua"/>
<action itemid="2793" event="script" value="foods/food.lua"/>
<action itemid="2794" event="script" value="foods/food.lua"/>
<action itemid="2795" event="script" value="foods/food.lua"/>
<action itemid="2796" event="script" value="foods/food.lua"/>
<action itemid="5097" event="script" value="foods/food.lua"/>
<action itemid="5678" event="script" value="foods/food.lua"/>
<action itemid="6125" event="script" value="foods/food.lua"/>
<action itemid="6278" event="script" value="foods/food.lua"/>
<action itemid="6279" event="script" value="foods/food.lua"/>
<action itemid="6280" event="script" value="foods/food.lua"/>
<action itemid="6393" event="script" value="foods/food.lua"/>
<action itemid="6394" event="script" value="foods/food.lua"/>
<action itemid="6501" event="script" value="foods/food.lua"/>
<action itemid="6541" event="script" value="foods/food.lua"/>
<action itemid="6542" event="script" value="foods/food.lua"/>
<action itemid="6543" event="script" value="foods/food.lua"/>
<action itemid="6544" event="script" value="foods/food.lua"/>
<action itemid="6545" event="script" value="foods/food.lua"/>
<action itemid="7158" event="script" value="foods/food.lua"/>
<action itemid="7159" event="script" value="foods/food.lua"/>
<action itemid="7372" event="script" value="foods/food.lua"/>
<action itemid="7373" event="script" value="foods/food.lua"/>
<action itemid="7374" event="script" value="foods/food.lua"/>
<action itemid="7375" event="script" value="foods/food.lua"/>
<action itemid="7376" event="script" value="foods/food.lua"/>
<action itemid="7377" event="script" value="foods/food.lua"/>
<action itemid="7963" event="script" value="foods/food.lua"/>
<action itemid="8838" event="script" value="foods/food.lua"/>
<action itemid="8839" event="script" value="foods/food.lua"/>
<action itemid="8840" event="script" value="foods/food.lua"/>
<action itemid="8841" event="script" value="foods/food.lua"/>
<action itemid="8842" event="script" value="foods/food.lua"/>
<action itemid="8843" event="script" value="foods/food.lua"/>
<action itemid="8844" event="script" value="foods/food.lua"/>
<action itemid="8845" event="script" value="foods/food.lua"/>
<action itemid="8847" event="script" value="foods/food.lua"/>
<action itemid="8868" event="script" value="foods/food.lua"/>
<action itemid="9005" event="script" value="foods/food.lua"/>
<action itemid="10454" event="script" value="foods/food.lua"/>
<action itemid="9992" event="script" value="foods/rotworm_stew.lua"/>
<action itemid="9993" event="script" value="foods/hydra_tongue_salad.lua"/>
<action itemid="9994" event="script" value="foods/roasted_dragon_wings.lua"/>
<action itemid="9995" event="script" value="foods/fried_tropical_terrorbird.lua"/>
<action itemid="9996" event="script" value="foods/food.lua"/>
<action itemid="9997" event="script" value="foods/veggie_casserole.lua"/>
<action itemid="9998" event="script" value="foods/filled_jalapeno_peppers.lua"/>
<action itemid="9999" event="script" value="foods/blessed_steak.lua"/>
<action itemid="10000" event="script" value="foods/carrot_cake.lua"/>
<action itemid="10001" event="script" value="foods/northern_fishburger.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="1945" event="function" value="increaseItemId"/>
<action itemid="1946" 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="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="8684" event="function" value="increaseItemId"/>
<action itemid="8685" event="function" value="decreaseItemId"/>
<action itemid="8686" event="function" value="increaseItemId"/>
<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"/>
<action itemid="10970" event="function" value="increaseItemId"/>
<action itemid="10971" event="function" value="decreaseItemId"/>
<action itemid="10972" event="function" value="increaseItemId"/>
<action itemid="10973" event="function" value="decreaseItemId"/>
<action itemid="10997" event="function" value="increaseItemId"/>
<action itemid="10998" event="function" value="decreaseItemId"/>
<action itemid="10999" event="function" value="increaseItemId"/>
<action itemid="11000" event="function" value="decreaseItemId"/>
 
<!-- Spellbooks -->
<action itemid="12608" event="script" value="other/spellbook.lua"/>
<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"/>
 
<!-- 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"/>
<action itemid="11127" event="script" value="other/constructionkits.lua"/>
<action itemid="11199" event="script" value="other/constructionkits.lua"/>
<action itemid="11120" event="script" value="other/constructionkits.lua"/>
<action itemid="4869" event="script" value="druid.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="1369" event="script" value="other/draw_well.lua"/>
<action itemid="430" 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;2376-2388;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 fromid="1728" toid="1731" event="script" value="other/watch.lua"/>
<action itemid="1877" event="script" value="other/watch.lua"/>
<action itemid="1881" event="script" value="other/watch.lua"/>
<action itemid="2036" 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"/>
<!-- Others -->
<action itemid="5957" event="script" value="other/lotery.lua"/>
 
<!-- Lighthouse -->
<action actionid="12901" event="script" value="quests/lighthouse.lua" />
<action actionid="12902" event="script" value="quests/lighthouse2.lua" />
<action uniqueid="14009" event="script" value="quests/fibula.lua" />
 
<!-- BK -->
<action uniqueid="20000" event="script" value="quests/bk.lua" />
<action uniqueid="20001" event="script" value="quests/bk.lua" />
<action uniqueid="57497" event="script" value="quests/bkkey.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"/>
 
<!-- Dolls -->
<action itemid="5080" event="script" value="other/dolls.lua"/>
<action itemid="5669" event="script" value="other/dolls.lua"/>
<action itemid="6566" event="script" value="other/dolls.lua"/>
<action itemid="6512" event="script" value="other/dolls.lua"/>
<action itemid="6388" event="script" value="other/dolls.lua"/>
<action itemid="8974" event="script" value="other/dolls.lua"/>
<action itemid="8977" event="script" value="other/dolls.lua"/>
<action itemid="8982" event="script" value="other/dolls.lua"/>
 
<!-- Other -->
<!-- Other -->
<action itemid="7494" event="script" value="other/nexus.lua"/>
<action actionid="12968" event="script" value="other/inq4.lua"/>
<action actionid="12967" event="script" value="other/inq3.lua"/>
<action actionid="12966" event="script" value="other/inq2.lua"/>
<action actionid="12965" event="script" value="other/inq1.lua"/>
<action itemid="10309" event="script" value="other/claw.lua"/>  
<action actionid="33216" event="script" value="piano.lua"/>
<action actionid="10284" event="script" value="other/poilever.lua"/>
<action actionid="32264" event="script" value="other/gravestone.lua"/>
<action actionid="51151" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51152" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51153" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51154" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51155" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51156" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51157" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51158" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51159" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51160" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51161" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51162" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51163" event="script" value="other/yalahar_brama.lua"/>
<action actionid="51164" event="script" value="other/yalahar_brama.lua"/>
<action actionid="42261" event="script" value="other/czerwone drzwi.lua"/>
<action actionid="58266" event="script" value="other/yalahar drzwi.lua"/>
<action uniqueid="13444" event="script" value="other/ab.lua"/>
<action fromuid="6551" touid="6556" event="script" value="other/catedra_switches.lua"/>
<action actionid="39512" event="script" value="other/BazirMirror1.lua"/>
<action actionid="39511" event="script" value="other/BazirMirror.lua"/>
<action actionid="61133" event="script" value="other/skrot_poidrzwi.lua"/>
<action uniqueid="56330" event="script" value="other/LavaLever.lua"/>
<action uniqueid="56331" event="script" value="other/LavaLever.lua"/>
<action actionid="42880" event="script" value="other/poi_stone2.lua"/>
<action uniqueid="42881" event="script" value="other/poi_stone.lua"/>
<action uniqueid="13228" event="script" value="other/smallbridge1.lua"/>
<action uniqueid="13229" event="script" value="other/stalagmite.lua"/>
<action uniqueid="30001" event="script" value="other/wallknight.lua"/>
<action uniqueid="30002" event="script" value="other/walldruid.lua"/>
<action uniqueid="30003" event="script" value="other/wallpaladin.lua"/>
<action uniqueid="30004" event="script" value="other/wallsorcerer.lua"/>
<action uniqueid="8933" event="script" value="other/Oillever.lua"/>
<action actionid="56267" event="script" value="other/behe_lever.lua"/>
<action actionid="56222" event="script" value="other/senja.lua"/>
<action uniqueid="3991" event="script" value="other/iron_helmet.lua"/>
<action uniqueid="6778" event="script" value="other/triangle_tower.lua"/>
<action uniqueid="5511" event="script" value="other/orcedron.lua"/>
<action uniqueid="6665" event="script" value="other/darkshield_teleport.lua"/>
<action uniqueid="4444" event="script" value="other/darkshield.lua"/>
<action uniqueid="3333" event="script" value="other/switch_venore.lua"/>
<action uniqueid="33210" event="script" value="other/banuta.lua"/>
<action itemid="2566" event="script" value="other/pumpkinhead.lua"/>
<action itemid="2096" event="script" value="other/pumpkinhead.lua"/>
<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="11390" script="stamina.lua"/>
</actions>

 
Ai vai o arquivo transformshield.lua que se encontra em data/actions/scripts
 

local ITEM_IDS = {
[8905] = 8906,
[8907] = 8906,
[8906] = 8909,
[8909] = 8907,
[8907] = 8908,
[8908] = 8905,
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not ITEM_IDS[item.itemid]) then
return false
end
 
doTransformItem(item.uid, ITEM_IDS[item.itemid])
doDecayItem(item.uid)
return true
end

 
Por favor, me ajudem!

 

 

@EDIT

 

Alguém poderia mudar o título do post para [AJUDA] Problema script no distro

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

provável que o item esteja registrado em outro local, já deu uma olhada no movements? seria bom usar o notpad++, ai tem a opção de localizar tudo, tu coloca esse id la e procura em toda pasta do ot, ele vai te dizer os scripts que contem esse id, ai tu acha bem facil o erro.

Kind Regards.

Link para o post
Compartilhar em outros sites

provável que o item esteja registrado em outro local, já deu uma olhada no movements? seria bom usar o notpad++, ai tem a opção de localizar tudo, tu coloca esse id la e procura em toda pasta do ot, ele vai te dizer os scripts que contem esse id, ai tu acha bem facil o erro.

 

Olá cara, eu pesquisei por "8908" na pasta inteira do ot, e esse ID só está presente nos arquivos ACTIONS.xml e ITEMS.xml.

 

Obs.: Eu já uso Notepad++

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

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServScriptingGeral"

Para: "OTServSuporte OTServSuporte de Scripts"

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

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 Under
      Apresentando o Tibia-IA: A IA para Desenvolvimento de Servidores Tibia! 
       O que é o Tibia-IA?
      Um modelo de IA especializado para Tibia! Ele está atualmente em teste gratuito, e eu adoraria que vocês o experimentassem. Basta acessar https://ai.tibiaking.com, criar uma conta e começar a usar totalmente de graça! 
       Versão Experimental Fechada
      Atualmente, algumas funcionalidades ainda estão em desenvolvimento. No momento, apenas a geração de scripts está disponível para o público.
      Se encontrarem qualquer problema nos scripts gerados, me avisem! Vamos juntos construir a IA mais poderosa para ajudar no desenvolvimento de servidores Tibia!  
      Contato direto discord : underewar
       Acesse agora: https://ai.tibiaking.com
       Como funciona?
       Geração automática de scripts LUA para TFS  Suporte a diferentes eventos, criaturas, NPCs, magias, etc.  Ferramenta em constante evolução para aprimorar o desenvolvimento Novidades em breve confira no site. O acesso ao Tibia-IA está disponível para testes GRATUITOS! 
      Basta criar uma conta em: https://ai.tibiaking.com
      Utilize a IA para gerar seus scripts de forma simples e rápida
      Envie feedbacks para ajudarmos a tornar a ferramenta ainda melhor!

      Problemas relatar diretamente no meu discord pessoal : underewar
       
       
    • Por Neutraz
      Advanced Roulette System (TFS 0.3.6)
       
      Hi everyone! This is my first contribution to the Tibia community, and I hope you find it very useful. It's a gacha-style roulette system with dynamic speed mechanics and multi-key functionality.
       
      What's it about?
      This script adds a roulette (Tested on: Tibia 8.6 -- TFS 0.3.6) where players can use keys to spin the roulette and win rewards. The system includes:
      Multi-key support: using 1 to 4 keys per spin, increasing the chances of winning. Dynamic speed: The roulette gradually accelerates during the spin to make it more exciting. Configurable rewards: You can define which items can be won and with what probability. You can even add "reroll" value to increase the difficulty! Visual effects: Includes simple effects and text animations to make the experience more engaging. Activity log: Keeps a record of which players won which items.  
      Demo Video (x1.5 Speed)
      Roulette2.mp4
       
       
      Installation
      Copy the `Roulette.lua` file to the `data/actions/scripts` folder of your TFS server. --[[ ================================================================================ = ROULETTE SYSTEM FOR TFS = = = = Author: Neutras = = Version: 2.1 = = Description: Gacha-style roulette system with dynamic speed mechanics = = and multi-key feature. = = = = Features: = = - Multi-key support (1-4 keys per spin). = = - Dynamic speed animation with configurable initial and final speeds. = = - Persistent "Winner Slot" effects and animated texts. = = - Configurable rewards with reroll chances. = = - Logging system to track player rewards. = = = = Compatible with TFS 0.3.7 (Tibia 8.6). = ================================================================================ --]] -- ================= LOGGING SYSTEM ================= -- local logPath = "data/logs/" local logFileName = "roulette.log" -- Logs player rewards to a file. -- @param cid: Player ID. -- @param keyName: Name of the key used. -- @param items: Table of items won. -- @param keyCount: Number of keys used. local function logEntry(cid, keyName, items, keyCount) local file = io.open(logPath .. logFileName, "a") if file then local itemStrings = {} for _, item in ipairs(items) do table.insert(itemStrings, string.format("x%d %s", item.count, getItemNameById(item.id))) end file:write(string.format("[%s] %s used %d '%s' and won: %s\n", os.date("%Y-%m-%d %H:%M:%S"), getPlayerName(cid), keyCount, keyName, table.concat(itemStrings, ", "))) file:close() end end -- ================= BASE CONFIGURATION ================= -- -- Levers Action IDs to key item IDs. local keyByAid = { [1354] = 9971, -- Key for reward level 1 (Copper) [1355] = 9972, -- Key for reward level 2 (Silver) [1356] = 9973 -- Key for reward level 3 (Golden) } -- Levers Action IDs to reward levels. local rewardByAid = { [1354] = 1, -- Reward level 1 (Copper) [1355] = 2, -- Reward level 2 (Silver) [1356] = 3 -- Reward level 3 (Golden) } -- Relative positions of the slots in the roulette. local rouletteSpinOffset = { {1, -4}, {2, -4}, {3, -4}, {3, -3}, {4, -3}, {4, -2}, {4, -1}, {5, -1}, {5, 0}, {5, 1}, {4, 1}, {4, 2}, {4, 3}, {3, 3}, {3, 4}, {2, 4}, {1, 4}, {0, 4}, {-1, 4}, {-2, 4}, {-3, 4}, {-3, 3}, {-4, 3}, {-4, 2}, {-4, 1}, {-5, 1}, {-5, 0}, {-5, -1},{-4, -1},{-4, -2}, {-4, -3},{-3, -3},{-3, -4},{-2, -4},{-1, -4}, {0, -4} } -- ================= MAIN CONFIGURATION ================= -- local config = { rouletteCD = 30, -- Global cooldown in seconds. globalStoCd = 22600, -- Storage ID for cooldown. globalStoKeyCount = 22601, -- Storage ID for key count. maxLoops = 100, -- Maximum iterations per spin. initialSpeed = 50, -- Initial speed in milliseconds. finalSpeed = 400, -- Final speed in milliseconds. effectLever = 35, -- Effect when activating the lever. effectRewardPlayer = 28, -- Effect on the player when winning. effectReward = 28, -- Effect on the winning slot. -- Reward table by level. -- Formula: Real Probability = (Item Chance / Total Chances) * (1 - (Reroll % / 100)) items = { [1] = { {id = 1, chance = 80, count = 5}, }, [2] = { {id = 2, chance = 70, count = 1, porc_cambio = 30}, }, [3] = { {id = 3, chance = 25, count = 1, porc_cambio = 70} } } } -- ================= PROBABILITY CACHING ================= -- -- Precalculates cumulative probabilities for each reward level. local cumulativeChanceCache = {} for rewardId, items in pairs(config.items) do local total = 0 local cumulative = {} for _, item in ipairs(items) do total = total + item.chance table.insert(cumulative, {item = item, threshold = total}) end cumulativeChanceCache[rewardId] = {total = total, items = cumulative} end -- ================= UTILITY FUNCTIONS ================= -- -- Calculates the speed of the roulette animation based on progress. -- @param progress: Current progress (0 to 1). -- @return: Speed in milliseconds. local function calculateSpeed(progress) return config.initialSpeed + (config.finalSpeed - config.initialSpeed) * progress^3 end -- Selects a random item from the reward table, considering reroll chances. -- @param rewardId: Reward level ID. -- @return: Selected item. local function chooseRouletteItem(rewardId) local cache = cumulativeChanceCache[rewardId] local roll = math.random(cache.total) for _, entry in ipairs(cache.items) do if roll <= entry.threshold then if entry.item.porc_cambio and math.random(100) <= entry.item.porc_cambio then return chooseRouletteItem(rewardId) end return entry.item end end return cache.items[#cache.items].item end -- Rotates the slots in the roulette. -- @param slots: Table of slots. local function rotateSlots(slots) local last = slots[36] for i = 36, 2, -1 do slots[i] = slots[i-1] end slots[1] = last end -- Updates the visual display of the roulette. -- @param cpos: Center position of the roulette. -- @param slots: Table of slots. -- @param isFillingPhase: Whether the slots are being filled for the first time. local function updateRouletteDisplay(cpos, slots, isFillingPhase) for i = 1, 36 do local pos = { x = cpos.x + rouletteSpinOffset[i][1], y = cpos.y + rouletteSpinOffset[i][2], z = cpos.z } doCleanTile(pos) if slots[i] then doCreateItem(slots[i].id, slots[i].count, pos) -- Show puff effect only during the initial filling phase. if isFillingPhase then doSendMagicEffect(pos, 14) end end end end -- ================= WINNER SLOTS AND EFFECTS ================= -- -- Shows "Winner Slot" animated text on winning slots. -- @param cpos: Center position of the roulette. -- @param keyCount: Number of keys used. local function showWinnerSlots(cpos, keyCount) local winningSlots = {} if keyCount == 1 then winningSlots = {36} elseif keyCount == 2 then winningSlots = {36, 18} elseif keyCount == 3 then winningSlots = {36, 18, 9} elseif keyCount == 4 then winningSlots = {36, 18, 9, 27} else winningSlots = {36} -- Default to one winning slot if keyCount is invalid. end for _, slot in ipairs(winningSlots) do local pos = { x = cpos.x + rouletteSpinOffset[slot][1], y = cpos.y + rouletteSpinOffset[slot][2], z = cpos.z } doSendAnimatedText(pos, "Winner Slot", TEXTCOLOR_YELLOW) end end -- Shows the number of keys in use. -- @param cpos: Center position of the roulette. local function showKeyCount(cpos) local keyCount = getGlobalStorageValue(config.globalStoKeyCount) keyCount = (keyCount < 1 or keyCount > 4) and 1 or keyCount local pos = {x = 1013, y = 995, z = 7} doSendAnimatedText(pos, string.format("Keys: %d", keyCount), TEXTCOLOR_LIGHTBLUE) end -- ================= MAIN ROULETTE LOGIC ================= -- -- Main animation function, recursively called to simulate the roulette spin. -- @param cid: Player ID. -- @param cpos: Center position of the roulette. -- @param rewardId: ID of the reward level. -- @param nloop: Current iteration number. -- @param slots: Table of slots (items). -- @param keyName: Name of the key used. -- @param keyCount: Number of keys used. local function shuffle(cid, cpos, rewardId, nloop, slots, keyName, keyCount) if nloop > config.maxLoops then if isPlayer(cid) then -- Determine winning slots based on the number of keys used. local winningSlots = {} if keyCount == 1 then winningSlots = {36} elseif keyCount == 2 then winningSlots = {36, 18} elseif keyCount == 3 then winningSlots = {36, 18, 9} elseif keyCount == 4 then winningSlots = {36, 18, 9, 27} else winningSlots = {36} -- Default to one winning slot if keyCount is invalid. end -- Get the winning items and their positions. local wonItems = {} local winPositions = {} for _, slot in ipairs(winningSlots) do if slots[slot] then table.insert(wonItems, slots[slot]) local pos = { x = cpos.x + rouletteSpinOffset[slot][1], y = cpos.y + rouletteSpinOffset[slot][2], z = cpos.z } table.insert(winPositions, pos) end end -- Award the items and display visual effects. if #wonItems > 0 then for _, pos in ipairs(winPositions) do doSendAnimatedText(pos, "Winner Slot", TEXTCOLOR_YELLOW) doSendMagicEffect(pos, config.effectReward) end for _, item in ipairs(wonItems) do doPlayerAddItem(cid, item.id, item.count) end doSendMagicEffect(getCreaturePosition(cid), config.effectRewardPlayer) -- Display a message to the player with all the rewards. local itemList = {} for _, item in ipairs(wonItems) do table.insert(itemList, string.format("x%d %s", item.count, getItemNameById(item.id))) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[ROULETTE] You won: " .. table.concat(itemList, ", ")) -- Log the player's rewards. logEntry(cid, keyName, wonItems, keyCount) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[ROULETTE] No items won.") end setGlobalStorageValue(config.globalStoCd, 0) end return end -- Initial filling phase of the roulette slots. if nloop <= 36 then slots[nloop] = chooseRouletteItem(rewardId) updateRouletteDisplay(cpos, slots, true) else -- Rotate the slots and update the display. rotateSlots(slots) updateRouletteDisplay(cpos, slots, false) -- Show effects on the winning slots every 5 iterations. if nloop % 5 == 0 then local winningSlots = {} if keyCount == 1 then winningSlots = {36} elseif keyCount == 2 then winningSlots = {36, 18} elseif keyCount == 3 then winningSlots = {36, 18, 9} elseif keyCount == 4 then winningSlots = {36, 18, 9, 27} else winningSlots = {36} -- Default to one winning slot if keyCount is invalid. end for _, slot in ipairs(winningSlots) do local pos = { x = cpos.x + rouletteSpinOffset[slot][1], y = cpos.y + rouletteSpinOffset[slot][2], z = cpos.z } doSendMagicEffect(pos, config.effectReward) end end end -- Schedule the next iteration with dynamic speed. local progress = nloop / config.maxLoops addEvent(shuffle, calculateSpeed(progress), cid, cpos, rewardId, nloop + 1, slots, keyName, keyCount) end -- ================= PERIODIC EFFECTS AND TEXTS ================= -- -- Shows effects and texts periodically. -- @param cpos: Center position of the roulette. local function showEffectsAndTexts(cpos) local keyCount = getGlobalStorageValue(config.globalStoKeyCount) keyCount = (keyCount < 1 or keyCount > 4) and 1 or keyCount -- Ensure keyCount is within range. -- Show "Winner Slot" on the winning slots. showWinnerSlots(cpos, keyCount) -- Show the number of keys in use. showKeyCount(cpos) -- Schedule the next execution. addEvent(showEffectsAndTexts, 1500, cpos) end -- ================= EFFECT SCRIPT INITIALIZATION ================= -- -- Start the periodic effects and texts when the script is loaded. local cpos = {x = 1012, y = 994, z = 7} -- Center position of the roulette. addEvent(function() showEffectsAndTexts(cpos) end, 5000) -- 5 seconds delay since server start. -- ================= MAIN OBJECT USE FUNCTION ================= -- -- Called when the roulette object is used. function onUse(cid, item, frompos, item2, topos) -- Handle the key change lever. if item.aid == 1360 then local current = getGlobalStorageValue(config.globalStoKeyCount) current = (current < 1 or current > 4) and 1 or (current % 4) + 1 setGlobalStorageValue(config.globalStoKeyCount, current) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string.format("Now using %d keys per spin.", current)) doSendMagicEffect(getThingPos(item.uid), CONST_ME_MAGIC_GREEN) return true end -- Handle the roulette levers. if not keyByAid[item.aid] then return false end local key = keyByAid[item.aid] local keyName = getItemNameById(key) local requiredKeys = getGlobalStorageValue(config.globalStoKeyCount) requiredKeys = (requiredKeys < 1 or requiredKeys > 4) and 1 or requiredKeys if getPlayerAccess(cid) < 5 and getPlayerItemCount(cid, key) < requiredKeys then doPlayerSendCancel(cid, string.format("You need %d %s to play!", requiredKeys, keyName)) doSendMagicEffect(topos, 14) return true end local rewardId = rewardByAid[item.aid] or 1 -- Get the reward level based on the lever. Default to 1 if not found. local pos = {x = 1012, y = 994, z = 7} -- Center position of the roulette. if getGlobalStorageValue(config.globalStoCd) > os.time() and getPlayerAccess(cid) < 5 then local remaining = getGlobalStorageValue(config.globalStoCd) - os.time() doPlayerSendCancel(cid, "Wait " .. remaining .. " seconds to play again.") return true end setGlobalStorageValue(config.globalStoCd, os.time() + config.rouletteCD) -- Set the cooldown. doTransformItem(item.uid, item.itemid == 9825 and 9826 or 9825) -- Change the lever's appearance. -- Clear the tiles around the roulette and add magic effects. for i = 1, 36 do local rpos = { x = pos.x + rouletteSpinOffset[i][1], y = pos.y + rouletteSpinOffset[i][2], z = pos.z } doCleanTile(rpos) doSendMagicEffect(rpos, config.effectReward) end if key > 0 then doPlayerRemoveItem(cid, key, requiredKeys) end -- Remove the keys from the player's inventory. doSendMagicEffect(pos, config.effectLever) -- Play the lever activation effect. math.randomseed(os.time() + getPlayerGUID(cid)) -- Seed the random number generator. addEvent(shuffle, config.initialSpeed, cid, pos, rewardId, 1, {}, keyName, requiredKeys) -- Start the roulette animation. return true end  
      Add the following lines within the `<actions>` tag in your `data/actions/actions.xml` file: <action actionid="XXX;YYYY;ZZZZ;AAAA" event="script" value="Roulette.lua"/> Replace `XXXX`, `YYYY`, and `ZZZZ` with the unique IDs of the levers that will activate the roulette (make sure they are not in use!).
      The ID `AAAA` is for the lever that changes the number of keys to use.
       
      Open the `Roulette.lua` file and adjust the `config.items` table with the items you want players to be able to win. Remember to balance the probabilities.  
       
      Code Explanation
      The script is divided into several sections to facilitate understanding:
      LOGGING SYSTEM: Handles logging the rewards obtained by players. BASE CONFIGURATION: Defines object IDs and reward levels. MAIN CONFIGURATION: Contains the main options of the system, such as the wait time between spins, the speed of the roulette, and the rewards. PROBABILITY CACHING: Optimizes the calculation of probabilities so that the system runs smoothly. UTILITY FUNCTIONS: Helper functions to calculate speed, choose items randomly, and update the roulette display. WINNER SLOTS AND EFFECTS: Displays the "Winner Slot" text and other visual effects in the winning spaces. MAIN ROULETTE LOGIC: The main function that controls the roulette animation and the delivery of rewards. PERIODIC EFFECTS AND TEXTS: Displays effects and texts periodically. SCRIPT INITIALIZATION: Initializes the effect system when the script is loaded. MAIN OBJECT USE FUNCTION: The function that is executed when a player interacts with a lever.

      I hope this roulette system is a great addition to your server! If you have any questions or suggestions, please feel free to leave a comment. Thank you for your support!  
       
    • Por BonasxD
      Bom galera primeiramente não sei se estou na area correta ou se nao estou, se nao por favor mover para area certa, grato!
      Estou com esse erro ao tenta instalar o gesior usando a tfs 0.4 não passa dessa parte ja tentei de tudo e nao sei oque fazer ;(
       
      Testei o mesmo procedimento no meu Windows e Funcionou corretamente agora no meu VM(Ubuntu22) não passa desse erro. 
       
      Ja pesquisei por tudo e não sei oque fazer

    • Por Kill of sumoners
      Boa noite, estou com um erro ao atacar um player em meu sv eu nao pego pk, nem sai magia, aparece a mensagem "voce so pode usar isso em criaturas"
      obs: magia em area acerta e pega pk, apenas as targets ou hits de arma nao vao 
    • Por Maniaco
      Salve TibiaKing!!! TFS 0.4 . 8.60
       
      Estou implementando o Sistema do @WooX de Cave Exlusiva

      Link:
       
      Porem estou com um problema seguindo o tutorial completo dele acabo tendo um retorno de erro na Distro! E ja que o mesmo nao entra no forum deis de 14/01! Venho solicitar ajuda de vocês!
      Caso alguem tenha o Discord Dele Favor me Passe  
      Vamos lá!
      Erro:
       
      Script :
       
      Lib
       
       
      Print Rme:
       
       
      Lembrando que nao esta funcionando em geral, Acrédito que eu tenha pulado algo ou deixado passar despercebido!
      Espero que alguem consiga me ajudar vlw!
  • Estatísticas dos Fóruns

    96828
    Tópicos
    519568
    Posts
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo