Jump to content
  • 0

NPC - Headgear Bonus Stats Remover


Rebel

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

You can't really do this unless you create a 2nd item that's the exact same as the first headgear, but then without bonuses, and you make the NPC swap em.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   13
  • Joined:  11/14/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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,"";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

SOLVED!

Link to comment
Share on other sites

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.

×
×
  • Create New...