Skip to content

Commit

Permalink
Implemented a flagged items database for item groups and Dead Branch …
Browse files Browse the repository at this point in the history
…type item checks. Credits to @cydh!
  • Loading branch information
aleos89 committed Apr 22, 2014
1 parent f7c09d9 commit c95be2e
Show file tree
Hide file tree
Showing 8 changed files with 468 additions and 21 deletions.
4 changes: 3 additions & 1 deletion conf/msg_conf/map_msg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@
730: Character cannot be disguised while in monster form.
731: Transforming into monster is not allowed in Guild Wars.

//732-899 free
732: Item cannot be openned when your inventory is full.

//733-899 free

//------------------------------------
// More atcommands message
Expand Down
4 changes: 3 additions & 1 deletion conf/msg_conf/map_msg_idn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@
730: Karakter tidak dapat disguise ketika sedang berwujud monster.
731: Perubahan menjadi monster tidak diizinkan dalam Guild Wars.

//732-899 kosong
732: Item tidak dapat dibuka ketika inventory penuh.

//733-899 kosong

//------------------------------------
// Pesan dalam perintah atcommand
Expand Down
6 changes: 6 additions & 0 deletions db/import-tmpl/item_flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Flagged Items
// <ItemID>,<Flag>
//
// <Flag>:
// 1 - As Dead Branch item (will be logged at `branchlog` table and cannot be used at 'nobranch' mapflag)
// 2 - As item group container, check player's inventory and weight before consumed
53 changes: 53 additions & 0 deletions db/pre-re/item_flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Flagged Items
// <ItemID>,<Flag>
//
// <Flag>:
// 1 - As Dead Branch item (will be logged at `branchlog` table and cannot be used at 'nobranch' mapflag)
// 2 - As item group container, check player's inventory and weight before consumed

// Logged as Dead Branch item
604,1 //Branch_Of_Dead_Tree
12103,1 //Bloody_Dead_Branch
12109,1 //Poring_Box
12024,1 //Red_Pouch_Of_Surprise
12258,1 //Bombring_Box

// Item group container
603,2 //Old_Blue_Box
616,2 //Old_Card_Album
617,2 //Old_Violet_Box
618,2 //Worn_Out_Scroll
644,2 //Gift_Box
664,2 //Gift_Box_1
665,2 //Gift_Box_2
666,2 //Gift_Box_3
667,2 //Gift_Box_4
12023,2 //Giftbox_China
12025,2 //Egg_Boy
12026,2 //Egg_Girl
12038,2 //Lotto_Box04
12104,2 //Random_Quiver
12105,2 //Set_Of_Taiming_Item
12106,2 //Accessory_Box
12107,2 //Wrapped_Mask
12108,2 //Bundle_Of_Magic_Scroll
12110,2 //First_Aid_Kit
12111,2 //Food_Package
12130,2 //Cookie_Bag
12186,2 //Red_Box
12187,2 //Green_Box
12189,2 //Red_Box_
12194,2 //Hometown_Gift
12240,2 //Old_Yellow_Box
12244,2 //Old_Gift_Box
12246,2 //Magic_Card_Album
12248,2 //Masquerade_Ball_Box
12281,2 //Tresure_Box_WoE
12286,2 //Masquerade_Ball_Box2
12334,2 //Cherish_Box
12339,2 //Cherish_Box_Ori
12355,2 //Xmas_Gift
12356,2 //Louise_Costume_Box
12702,2 //Old_Bleu_Box
12714,2 //Easter_Scroll
14596,2 //Pierre_Treasurebox
Loading

2 comments on commit c95be2e

@cydh
Copy link
Contributor

@cydh cydh commented on c95be2e Apr 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleos89 💯
time to resolve conflicts on my fork. haha

@aleos89
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) Thanks for the diff to begin with.

Please sign in to comment.