Rebel Posted February 15, 2013 Posted February 15, 2013 (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 March 1, 2013 by Rebel Quote
michaelsoftman Posted February 15, 2013 Posted February 15, 2013 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. Quote
Miles Posted February 15, 2013 Posted February 15, 2013 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 Quote
Capuche Posted February 16, 2013 Posted February 16, 2013 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_ScriptExample:setitemscript 2637,"{ if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }";setitemscript 2637,""; Quote
Question
Rebel
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 Rebel4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.