summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-14 01:18:19 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-14 01:18:19 +0000
commitbcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4 (patch)
tree23d639da18bafca939801a7f19da655084e1ecc0 /src/map/map.h
parentf4d4a5e61a464944482c11daeeb379808445483c (diff)
downloadhercules-bcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4.tar.gz
hercules-bcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4.tar.bz2
hercules-bcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4.tar.xz
hercules-bcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4.zip
- Added some new config settings: homunculus_autoloot, idle_no_autoloot, max_guild_alliance.
- Added a code to activate a Kill Steal protection and the required mapflags. * (I will explain this later on forums). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12203 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 84d041569..69f007b60 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -551,6 +551,8 @@ struct map_session_data {
unsigned doridori : 1;
unsigned ignoreAll : 1;
unsigned short autoloot;
+ unsigned short autolootid; // [Zephyrus]
+ unsigned noks : 1; // [Zeph Kill Steal Protection]
struct guild *gmaster_flag;
} state;
struct {
@@ -612,6 +614,7 @@ struct map_session_data {
unsigned int canuseitem_tick; // [Skotlex]
unsigned int cantalk_tick;
unsigned int cansendmail_tick; // [Mail System Flood Protection]
+ unsigned int ks_floodprotect_tick; // [Kill Steal Protection]
short weapontype1,weapontype2;
short disguise; // [Valaris]
@@ -911,6 +914,11 @@ struct mob_data {
unsigned int tdmg; //Stores total damage given to the mob, for exp calculations. [Skotlex]
int level;
int target_id,attacked_id;
+
+ // Kill Steal Protection
+ int owner_id;
+ unsigned int ks_tick;
+
unsigned int next_walktime,last_thinktime,last_linktime;
short move_fail_count;
short lootitem_count;
@@ -1168,6 +1176,7 @@ struct map_data {
int npc_num;
int users;
struct map_flag {
+ unsigned allowks : 1; // [Kill Steal Protection]
unsigned nomemo : 1;
unsigned noteleport : 1;
unsigned noreturn : 1;