How to make Headgear Untradable

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
Help me make the Headgear Untradable, you can't put on storage, and can't drop. THANKS 
default_laugh.png


 
This? db/re/item_trade.txt

Code:
//Item Trading Restrictions File//Specify here special rules for item trading.//Item ID, TradeMask, Group-Level Override//Trading mask values://1:Item can't be droped//2:Item can't be traded (nor vended)//4:Wedded partner can override restriction 2.//8:Item can't be sold to npcs//16:Item can't be placed in the cart//32:Item can't be placed in the storage//64:Item can't be placed in the guild storage//128:Item can't be attached to mail//256:Item can't be auctioned//Example://1161,67,50 //Balmung: No drop, No trade, No Guild Store (1+2+64 =67),//only groups of group-level 50 and up can override the setting.
 
Or if you're using the latest revisions of Hercules you can also use the character-bound or account-bound item feature we recently included on the repo.

 
Or if you're using the latest revisions of Hercules you can also use the character-bound or account-bound item feature we recently included on the repo.
Where is that located? item_trade.txt is has been deprecated.

 
Or if you're using the latest revisions of Hercules you can also use the character-bound or account-bound item feature we recently included on the repo.
Where is that located? item_trade.txt is has been deprecated.
character and account bound are script-commands and atcommands

ScriptCommand:

*getitembound <item id>,<amount>,<bound type>{,<account ID>};*getitembound "<item name>",<amount>,<bound type>{,<account ID>};This command behaves identically to 'getitem', but the items created will bebound to the target character as specified by the bound type. All items createdin this manner cannot be dropped, sold, vended, auctioned, or mailed, and insome cases cannot be traded or stored.Valid bound types are: 1 - Account Bound 2 - Guild Bound 3 - Party Bound 4 - Character Bound---------------------------------------*getitembound2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>;*getitembound2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>;This command behaves identically to 'getitem2', but the items created will bebound to the target character as specified by the bound type. All items createdin this manner cannot be dropped, sold, vended, auctioned, or mailed, and insome cases cannot be traded or stored.For a list of bound types see 'getitembound'.

AtCommand:

Code:
@itembound <item name/ID> <amount> <bound_type>Creates the specified item and bounds it to the account.bound_type: 1 = Account, 2 = Guild, 3 = Party, 4 = Character---------------------------------------@itembound2 <item name/ID> <quantity> <identify_flag> <refine> <attribute> <card1> <card2> <card3> <card4> <bound_type>Creates an item with the given parameters (the 'cards' can be any item) and bounds it to the account.identify_flag: 0 = unidentified, 1 = identifiedattribute: 0 = not broken, 1 = brokenbound_type: 1 = Account, 2 = Guild, 3 = Party, 4 = Character
 
Thanks, that is the reason why I love hercules, its making our lives easier. I hope hercules can keep up to rathenas in terms of NPC scripts, renewal class/homun skills and database

 
Back
Top