Rebel Posted February 15, 2013 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share 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 Link to comment Share on other sites More sharing options...
michaelsoftman Posted February 15, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share 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 Link to comment Share on other sites More sharing options...
Miles Posted February 15, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 68 Reputation: 13 Joined: 11/14/11 Last Seen: April 30, 2013 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted February 16, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
Rebel Posted February 27, 2013 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted February 27, 2013 SOLVED! Quote Link to comment Share on other sites More sharing options...
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 RebelLink to comment
Share on other sites
4 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.