Jump to content

LyDe

Members
  • Content Count

    7
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    LyDe reacted to Ragno in function to enchant item   
    There is not exactly a function to enchant an item, you should use getitem2() command to produce the item with the needed enchants. This is the usual process:
     
    Check if player has the gear to enchant, if not, finish the npc. Calculate the enchant to give (note 1) (Optional) Save the cards/refines attached to the gear to enchant (note 2) Delete required gear to enchant. Make the gear with getitem2 command and the enchants you want (and cards/refines as you need)  
    Note 1. About calculate the enchant to give.
    Remember that "enchants" doesn't exist as that, they are cards that has a different sprite than the one from the cards. You can give any item you want as enchant, even an armor if you want. In example, Eden Group quest has a part where player can put cards (scorpion card and other) as an enchant to the weapons from Eden.
     
    Note 2. About saving the cards/refines attached to the gear.
    In some cases you may want to keep the cards or refines that gear has. When you delete it you will erase the actual refines or cards that gear has but you can put it again puting the according values in the getitem2() command. Use getequipcardid() and getequiprefinerycnt() script commands to store those values into variables to use in getitem2() command.
     
    Please check doc\script_commands.txt to know more about getitem2(), getequipcardid() and getequiprefinerycnt() script commands.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.