summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
commit268921a15901fc5deefdd5143ada2f18ba5e0dd1 (patch)
treeb8a88317968018be38d2d721c50f64e6ab0f39cb /src/map/pc.h
parentbea3f9774fe6134d927002d8f7a9b68f2c2d37fd (diff)
downloadhercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.gz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.bz2
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.xz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.zip
Extended @alootid command to support multiple items (default: 10).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15489 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index affe3690b..05cdc9e73 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -25,6 +25,9 @@
//For Warlock
#define MAX_SPELLBOOK 10
+//Max number of items on @autolootid list
+#define AUTOLOOTITEM_SIZE 10
+
struct weapon_data {
int atkmods[3];
// all the variables except atkmods get zero'ed in each call of status_calc_pc
@@ -139,7 +142,7 @@ struct map_session_data {
unsigned int callshop : 1; // flag to indicate that a script used callshop; on a shop
short pmap; // Previous map on Map Change
unsigned short autoloot;
- unsigned short autolootid; // [Zephyrus]
+ unsigned short autolootid[AUTOLOOTITEM_SIZE]; // [Zephyrus]
unsigned short autobonus; //flag to indicate if an autobonus is activated. [Inkfish]
struct guild *gmaster_flag;
unsigned int prevend : 1;//used to flag wheather you've spent 40sp to open the vending or not.
@@ -838,6 +841,7 @@ void pc_inventory_rental_add(struct map_session_data *sd, int seconds);
int pc_read_motd(void); // [Valaris]
int pc_disguise(struct map_session_data *sd, int class_);
+bool pc_isautolooting(struct map_session_data *sd, int nameid);
/**
* Mechanic (Mado Gear)
**/