From 2e87e5b65a02d8d9f867a0510f039cc319b3ffcb Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 6 Jul 2009 11:23:10 -0600 Subject: Add a new trade spam system --- src/map/battle.h | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'src/map/battle.h') diff --git a/src/map/battle.h b/src/map/battle.h index 3c46586..3a0c380 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -2,24 +2,24 @@ #ifndef _BATTLE_H_ #define _BATTLE_H_ -// _[W +// �_���[�W struct Damage { int damage,damage2; int type,div_; int amotion,dmotion; int blewcount; int flag; - int dmg_lv; //͂܂ꌸZvZp@0:XLU ATK_LUCKY,ATK_FLEE,ATK_DEF + int dmg_lv; //�͂܂ꌸ�Z�v�Z�p�@0:�X�L���U�� ATK_LUCKY,ATK_FLEE,ATK_DEF }; -// \iǂݍ݂pc.cAbattle_attr_fixŎgpj +// �����\�i�ǂݍ��݂�pc.c�Abattle_attr_fix�Ŏg�p�j extern int attr_fix_table[4][10][10]; struct map_session_data; struct mob_data; struct block_list; -// _[WvZ +// �_���[�W�v�Z struct Damage battle_calc_attack( int attack_type, struct block_list *bl,struct block_list *target,int skill_num,int skill_lv,int flag); @@ -30,12 +30,12 @@ struct Damage battle_calc_magic_attack( struct Damage battle_calc_misc_attack( struct block_list *bl,struct block_list *target,int skill_num,int skill_lv,int flag); -// CvZ +// �����C���v�Z int battle_attr_fix(int damage,int atk_elem,int def_elem); -// _[WŏIvZ +// �_���[�W�ŏI�v�Z int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,int div_,int skill_num,int skill_lv,int flag); -enum { // ŏIvZ̃tO +enum { // �ŏI�v�Z�̃t���O BF_WEAPON = 0x0001, BF_MAGIC = 0x0002, BF_MISC = 0x0004, @@ -48,20 +48,20 @@ enum { // BF_SKILLMASK= 0x0f00, }; -// ۂHP𑝌 +// ��ۂ�HP�𑝌� int battle_delay_damage(unsigned int tick,struct block_list *src,struct block_list *target,int damage,int flag); int battle_damage(struct block_list *bl,struct block_list *target,int damage,int flag); int battle_heal(struct block_list *bl,struct block_list *target,int hp,int sp,int flag); -// Uړ~߂ +// �U�����ړ����~�߂� int battle_stopattack(struct block_list *bl); int battle_stopwalking(struct block_list *bl,int type); -// ʏU܂Ƃ +// �ʏ��U�������܂Ƃ� int battle_weapon_attack( struct block_list *bl,struct block_list *target, unsigned int tick,int flag); -// ep[^𓾂 +// �e���p�����[�^�𓾂� int battle_counttargeted(struct block_list *bl,struct block_list *src,int target_lv); int battle_get_class(struct block_list *bl); int battle_get_dir(struct block_list *bl); @@ -91,7 +91,7 @@ int battle_get_amotion(struct block_list *bl); int battle_get_dmotion(struct block_list *bl); int battle_get_element(struct block_list *bl); int battle_get_attack_element(struct block_list *bl); -int battle_get_attack_element2(struct block_list *bl); //蕐푮擾 +int battle_get_attack_element2(struct block_list *bl); //���蕐�푮���擾 #define battle_get_elem_type(bl) (battle_get_element(bl)%10) #define battle_get_elem_level(bl) (battle_get_element(bl)/10/2) int battle_get_party_id(struct block_list *bl); @@ -122,7 +122,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f int battle_check_range(struct block_list *src,struct block_list *bl,int range); -// ݒ +// �ݒ� int battle_config_switch(const char *str); // [Valaris] @@ -318,6 +318,11 @@ extern struct Battle_Config { int chat_spam_ban; int chat_spam_warn; int chat_maxline; + + int trade_spam_threshold; + int trade_spam_flood; + int trade_spam_ban; + int trade_spam_warn; int drop_pickup_safety_zone; // [Fate] Max. distance to an object dropped by a kill by self in which dropsteal protection works -- cgit v1.2.3-70-g09d2