isdzuka Posted January 2, 2017 Posted January 2, 2017 hello guys.. need help to teach me about scripting especially in item_db scripting ID,Name,Name,Type,Price,Sell,Weight,ATK[:MATK],DEF,Range,Slot,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } how to define the range, codes for job, class, gender and loc which i had underlined. i dont understand because those that i mentioned were changed into numbers, thnx in advance Quote
0 Akkarin Posted January 2, 2017 Posted January 2, 2017 Did you read the documentation? https://github.com/rathena/rathena/blob/master/doc/item_db.txt Quote
0 Chaos92 Posted January 2, 2017 Posted January 2, 2017 Job Job: Equippable jobs. Uses the following bitmask table: (S.) Novice (2^00): 0x00000001 Swordman (2^01): 0x00000002 Magician (2^02): 0x00000004 Archer (2^03): 0x00000008 Acolyte (2^04): 0x00000010 Merchant (2^05): 0x00000020 Thief (2^06): 0x00000040 Knight (2^07): 0x00000080 Priest (2^08): 0x00000100 Wizard (2^09): 0x00000200 Blacksmith (2^10): 0x00000400 Hunter (2^11): 0x00000800 Assassin (2^12): 0x00001000 Unused (2^13): 0x00002000 Crusader (2^14): 0x00004000 Monk (2^15): 0x00008000 Sage (2^16): 0x00010000 Rogue (2^17): 0x00020000 Alchemist (2^18): 0x00040000 Bard/Dancer (2^19): 0x00080000 Unused (2^20): 0x00100000 Taekwon (2^21): 0x00200000 Star Gladiator (2^22): 0x00400000 Soul Linker (2^23): 0x00800000 Gunslinger (2^24): 0x01000000 Ninja (2^25): 0x02000000 Gangsi (2^26): 0x04000000 Death Knight (2^27): 0x08000000 Dark Collector (2^28): 0x10000000 Kagerou/Oboro (2^29): 0x20000000 Rebellion (2^30): 0x40000000 Summoner (2^31): 0x80000000 Novice + Swordman + Magician + Archer = 0x0000000F, why? Because: 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, and 15 = F It's using hexadecimal. Class Class: Equippable upper-types. Uses the following bitmasks: 1: Normal classes (no Baby/Transcendent/Third classes) 2: Transcedent classes (no Transcedent-Third classes) 4: Baby classes (no Third-Baby classes) 8: Third classes (no Transcedent-Third or Third-Baby classes) 16: Transcedent-Third classes 32: Third-Baby classes Gender Gender: Gender restriction. 0 is female, 1 is male, 2 for both. Loc Loc: Equipment's placement. Values are: 2^8 256 = Upper Headgear 2^9 512 = Middle Headgear 2^0 001 = Lower Headgear 2^4 016 = Armor 2^1 002 = Weapon 2^5 032 = Shield 2^2 004 = Garment 2^6 064 = Footgear 2^3 008 = Accessory Right 2^7 128 = Accessory Left 2^10 1024 = Costume Top Headgear 2^11 2048 = Costume Mid Headgear 2^12 4096 = Costume Low Headgear 2^13 8192 = Costume Garment/Robe 2^15 32768 = Ammo 2^16 65536 = Shadow Armor 2^17 131072 = Shadow Weapon 2^18 262144 = Shadow Shield 2^19 524288 = Shadow Shoes 2^20 1048576 = Shadow Accessory Right (Earring) 2^21 2097152 = Shadow Accessory Left (Pendant) Quote
0 isdzuka Posted January 2, 2017 Author Posted January 2, 2017 38 minutes ago, Akkarin said: Did you read the documentation? https://github.com/rathena/rathena/blob/master/doc/item_db.txt thnx for the info... Quote
0 isdzuka Posted January 2, 2017 Author Posted January 2, 2017 29 minutes ago, Chaos92 said: Job Job: Equippable jobs. Uses the following bitmask table: (S.) Novice (2^00): 0x00000001 Swordman (2^01): 0x00000002 Magician (2^02): 0x00000004 Archer (2^03): 0x00000008 Acolyte (2^04): 0x00000010 Merchant (2^05): 0x00000020 Thief (2^06): 0x00000040 Knight (2^07): 0x00000080 Priest (2^08): 0x00000100 Wizard (2^09): 0x00000200 Blacksmith (2^10): 0x00000400 Hunter (2^11): 0x00000800 Assassin (2^12): 0x00001000 Unused (2^13): 0x00002000 Crusader (2^14): 0x00004000 Monk (2^15): 0x00008000 Sage (2^16): 0x00010000 Rogue (2^17): 0x00020000 Alchemist (2^18): 0x00040000 Bard/Dancer (2^19): 0x00080000 Unused (2^20): 0x00100000 Taekwon (2^21): 0x00200000 Star Gladiator (2^22): 0x00400000 Soul Linker (2^23): 0x00800000 Gunslinger (2^24): 0x01000000 Ninja (2^25): 0x02000000 Gangsi (2^26): 0x04000000 Death Knight (2^27): 0x08000000 Dark Collector (2^28): 0x10000000 Kagerou/Oboro (2^29): 0x20000000 Rebellion (2^30): 0x40000000 Summoner (2^31): 0x80000000 Novice + Swordman + Magician + Archer = 0x0000000F, why? Because: 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, and 15 = F It's using hexadecimal. Class Class: Equippable upper-types. Uses the following bitmasks: 1: Normal classes (no Baby/Transcendent/Third classes) 2: Transcedent classes (no Transcedent-Third classes) 4: Baby classes (no Third-Baby classes) 8: Third classes (no Transcedent-Third or Third-Baby classes) 16: Transcedent-Third classes 32: Third-Baby classes Gender Gender: Gender restriction. 0 is female, 1 is male, 2 for both. Loc Loc: Equipment's placement. Values are: 2^8 256 = Upper Headgear 2^9 512 = Middle Headgear 2^0 001 = Lower Headgear 2^4 016 = Armor 2^1 002 = Weapon 2^5 032 = Shield 2^2 004 = Garment 2^6 064 = Footgear 2^3 008 = Accessory Right 2^7 128 = Accessory Left 2^10 1024 = Costume Top Headgear 2^11 2048 = Costume Mid Headgear 2^12 4096 = Costume Low Headgear 2^13 8192 = Costume Garment/Robe 2^15 32768 = Ammo 2^16 65536 = Shadow Armor 2^17 131072 = Shadow Weapon 2^18 262144 = Shadow Shield 2^19 524288 = Shadow Shoes 2^20 1048576 = Shadow Accessory Right (Earring) 2^21 2097152 = Shadow Accessory Left (Pendant) thnx bro.. Quote
Question
isdzuka
hello guys..
need help to teach me about scripting especially in item_db scripting
ID,Name,Name,Type,Price,Sell,Weight,ATK[:MATK],DEF,Range,Slot,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }
how to define the range, codes for job, class, gender and loc which i had underlined. i dont understand because those that i mentioned were changed into numbers,
thnx in advance
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.