TFS 1.X+ Items decaying at ground

Discussion in 'Support' started by biaggio12, Mar 23, 2018.

  1. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Hello, my items decaying even at ground or while unequipped. On the ground it decays even faster . 1 s = 3s on ground.

    No idea where to search for fix anyone can help me ?
     
  2. Best Answer:
    Post #3 by Lyky, Apr 15, 2018
  3. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    bumping the thread
     
  4. Lyky

    Lyky Active Member

    Joined:
    May 27, 2014
    Messages:
    204
    Likes Received:
    43
    Best Answers:
    8
    Best Answer
    item must have transformEquipTo and back as in this example

    inside items.xml
    Code (XML):
    1.  
    2.     <item id="2168" article="a" name="life ring">
    3.        <attribute key="weight" value="80" />
    4.        <attribute key="slotType" value="ring" />
    5.        <attribute key="transformEquipTo" value="2205" />
    6.        <attribute key="stopduration" value="1" />
    7.        <attribute key="showduration" value="1" />
    8.    </item>
    9.  
    10.     <item id="2205" article="a" name="life ring (faster regeneration)">
    11.        <attribute key="weight" value="80" />
    12.        <attribute key="slotType" value="ring" />
    13.        <attribute key="decayTo" value="0" />
    14.        <attribute key="transformDeEquipTo" value="2168" />
    15.        <attribute key="duration" value="1200" />
    16.        <attribute key="healthGain" value="2" />
    17.        <attribute key="healthTicks" value="6000" />
    18.        <attribute key="manaGain" value="8" />
    19.        <attribute key="manaTicks" value="6000" />
    20.        <attribute key="showduration" value="1" />
    21.        <attribute key="showattributes" value="1" />
    22.    </item>
    23.  
    then next step is movements.xml

    Code (XML):
    1.  
    2. <movevent event="Equip" itemid="2168" slot="ring" function="onEquipItem"/>
    3. <movevent event="DeEquip" itemid="2205" slot="ring" function="onDeEquipItem"/>
    4.  

    if those are not fulfilled, once activated - they won't stop its duration - or won't start.

    Note parameters in items.xml
    'stopduration'
    'transform*'
     
    biaggio12 likes this.
  5. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    items.xml
    HTML:
    1. <item id="26235" article="a" name="blade of mayhem (overcharged)">
    2.         <attribute key="weight" value="5000" />
    3.         <attribute key="defense" value="34" />
    4.         <attribute key="attack" value="52" />
    5.         <attribute key="description" value="This weapon is over charged." />
    6.     <!--<attribute key="skillSword" value="1" />
    7.        <attribute key="skillcriticalchance" value="10" />
    8.        <attribute key="skillcriticaldamage" value="75" />-->
    9.         <attribute key="weaponType" value="sword" />
    10.         <attribute key="transformEquipTo" value="25909" />
    11.         <attribute key="stopduration" value="1" />
    12.         <attribute key="showduration" value="1" />
    13.     </item>
    14.     <item id="25909" article="a" name="blade of mayhem (overcharged)">
    15.         <attribute key="weight" value="5000" />
    16.         <attribute key="defense" value="34" />
    17.         <attribute key="attack" value="52" />
    18.         <attribute key="description" value="This weapon is over charged." />
    19.         <attribute key="skillSword" value="1" />
    20.         <attribute key="weaponType" value="sword" />
    21.         <attribute key="skillcriticalchance" value="10" />
    22.         <attribute key="skillcriticaldamage" value="60" />
    23.         <attribute key="decayTo" value="25879" />
    24.         <attribute key="transformDeEquipTo" value="26235" />
    25.         <attribute key="duration" value="54000" />
    26.         <attribute key="showduration" value="1" />
    27.     </item>
    movements.xml
    HTML:
    1.   <movement event="Equip" itemid="25909" slot="hand" function="onEquipItem"/>
    2.   <movement event="DeEquip" itemid="25909" slot="hand" function="onDeEquipItem"/>
    still decaying :/
    @Lyky
     
    Last edited: Apr 15, 2018
  6. Lyky

    Lyky Active Member

    Joined:
    May 27, 2014
    Messages:
    204
    Likes Received:
    43
    Best Answers:
    8
    notice how different itemid's are used in my example in movements.xml

    :)
     
  7. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    crap ! Thanks bro
     
  8. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    @Lyky i still have problem while item laying on ground. It just count down the time left on mayhem. Any idea how to fix it ?
    Also if i equip then deequip then time accelerate and decays even faster. Any idea ?
     
  9. Lyky

    Lyky Active Member

    Joined:
    May 27, 2014
    Messages:
    204
    Likes Received:
    43
    Best Answers:
    8
    ensure that active itemid (when time is counted) is <movevent event="DeEquip" in movements.xml;

    if DeEquip doesn't work there may be something wrong with your source, do you have same issue with rings like life ring?
     
  10. biaggio12

    biaggio12 Member

    Joined:
    Aug 22, 2009
    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Nope rings works fine. Only mayhem weapons. And im sure i set it correctly.
    items.xml
    HTML:
    1. <item id="26320" article="a" name="wand of mayhem (overcharged)">
    2.         <attribute key="description" value="This weapon is over charged." />
    3.         <attribute key="weight" value="3500" />
    4.         <attribute key="weaponType" value="wand" />
    5.         <attribute key="range" value="3" />
    6.         <attribute key="magiclevelpoints" value="1" />
    7.         <attribute key="skillcriticalchance" value="10" />
    8.         <attribute key="skillcriticaldamage" value="75" />
    9.         <attribute key="transformEquipTo" value="25917" />
    10.         <attribute key="stopduration" value="1" />
    11.         <attribute key="showduration" value="1" />
    12.     </item>
    13.     <item id="25917" article="a" name="wand of mayhem (overcharged)">
    14.         <attribute key="description" value="This weapon is over charged." />
    15.         <attribute key="weight" value="3500" />
    16.         <attribute key="weaponType" value="wand" />
    17.         <attribute key="shootType" value="energy" />
    18.         <attribute key="magiclevelpoints" value="1" />
    19.         <attribute key="range" value="3" />
    20.         <attribute key="skillcriticalchance" value="10" />
    21.         <attribute key="skillcriticaldamage" value="60" />
    22.         <attribute key="decayTo" value="25887" />
    23.         <attribute key="transformDeEquipTo" value="26320" />
    24.         <attribute key="duration" value="54000" />
    25.         <attribute key="showduration" value="1" />
    26.     </item>
    HTML:
    1.     <movevent event="Equip" itemid="26320" slot="hand" level="250" function="onEquipItem">
    2.         <vocation name="Sorcerer" />
    3.         <vocation name="Master Sorcerer" showInDescription="0" />
    4.     </movevent>
    5.   <movement event="DeEquip" itemid="25917" slot="hand" level="250" function="onDeEquipItem">
    6.     <vocation name="Sorcerer" />
    7.         <vocation name="Master Sorcerer" showInDescription="0" />
    8.   </movement>
    Do you know where to look in sources for function responsible for countdown ?
    Btw i checked how rings are looking in movements.

    Code (Text):
    1.   <movevent event="Equip" itemid="2168" slot="ring" function="onEquipItem" />
    2.   <movevent event="Equip" itemid="2205" slot="ring" function="onEquipItem" />
    3.   <movevent event="DeEquip" itemid="2205" slot="ring" function="onDeEquipItem" />
    and it works correctly.
     
    Last edited: Apr 18, 2018
  11. Lyky

    Lyky Active Member

    Joined:
    May 27, 2014
    Messages:
    204
    Likes Received:
    43
    Best Answers:
    8
    look for "stopduration" inside your source, then look for definition; but if rings work - then there must be some difference between your setup, and how your rings are set up.
     
  12. 2Rec

    2Rec Well-Known Member

    Joined:
    Jul 31, 2013
    Messages:
    424
    Likes Received:
    508
    Best Answers:
    42
    Didn't register DeEquip for id 26320?
     

Share This Page

Loading...