From 8188128698408ab4caf7809e98943402bdc116cc Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 31 Mar 2006 17:22:06 +0000 Subject: - Changed the look field of all arrows to 1. - Added column "RequiredArrowType" to skill_require_db, set to 1 all arrow-based skills. - Added support for ArrowType requirement on skills. It checks for having an item equipped on the arrow-slot who's view has to match with the required arrow-type (works the same way it does for weapons). - Skills will automatically be ranged and arrow-types when they have a arrow-requirement. - Skills will automatically consume arrows if used with a bow and the skill is an attack weapon-based skill even if the skill_require_db doesn't specifies arrow requirements (this is for stuff like backstab used with bows) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5829 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/skill.h') diff --git a/src/map/skill.h b/src/map/skill.h index 174a224b4..da42198c9 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -53,7 +53,7 @@ struct skill_db { int inf2,maxcount,skill_type; int blewcount[MAX_SKILL_LEVEL]; int hp[MAX_SKILL_LEVEL],sp[MAX_SKILL_LEVEL],mhp[MAX_SKILL_LEVEL],hp_rate[MAX_SKILL_LEVEL],sp_rate[MAX_SKILL_LEVEL],zeny[MAX_SKILL_LEVEL]; - int weapon,state,spiritball[MAX_SKILL_LEVEL]; + int weapon,arrow,state,spiritball[MAX_SKILL_LEVEL]; int itemid[10],amount[10]; int castnodex[MAX_SKILL_LEVEL]; int delaynodex[MAX_SKILL_LEVEL]; @@ -153,6 +153,7 @@ int skill_get_time( int id ,int lv ); int skill_get_time2( int id ,int lv ); int skill_get_castdef( int id ); int skill_get_weapontype( int id ); +int skill_get_arrowtype( int id ); int skill_get_unit_id(int id,int flag); int skill_get_inf2( int id ); int skill_get_castcancel( int id ); -- cgit v1.2.3-70-g09d2