Jump to content
  • 0

NPC - Headgear Bonus Stats Remover


Question

Posted (edited)

Good Day! I would like to request for a npc script that can remove the headgear's bonus stats.

For example,

Custom headgear has +4 stats to STR, Vit, Dex

def +5

i would like to make it remove the stats when i use the npc..

so it will become a normal custom headgear without stats bonuses..

Edited by Rebel

4 answers to this question

Recommended Posts

Posted

Good Day! I would like to request for a npc script that can remove the headgear's bonus stats.

 

For example,

 

Custom headgear has +4 stats to STR, Vit, Dex

def +5

 

i would like to make it remove the stats when i use the npc..

 

so it will become a normal custom headgear without stats bonuses..

 

Are you refering to the Socket Enchants?

So if you want to remove the enchants, just use getitem2, removing the enchants you don't want.,

 

You can also create negative bonuses with the socket enchant, so it can reduces any stat, you want, just delete the equip item and give and autoequip that same item to him.

 

Just some random ideas that came to my mind while seeing the post xD

Posted

if you want to remove item bonus stats for all players you can used

*setitemscript(<item id>,<"{ new item script }">{,<type>});

Set a new script bonus to the Item. Very useful for game events.
You can remove an item's itemscript by leaving the itemscript argument empty.
Returns 1 on success, or 0 on fail (item_id not found or new item script is invalid).
Type can optionally be used indicates which script to set (default is 0):
 0 - Script
 1 - OnEquip_Script
 2 - OnUnequip_Script

Example:

setitemscript 2637,"{ if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }";
setitemscript 2637,"";

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...