浏览代码

- Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to Tanaous
- Added back the missing code that substracts arrows when normal-attacking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6554 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 年之前
父节点
当前提交
64bd8b1dbe
共有 4 个文件被更改,包括 21 次插入8 次删除
  1. 5 0
      Changelog-Trunk.txt
  2. 6 1
      conf-tmpl/script_athena.conf
  3. 2 2
      sql-files/upgrade_svn6533.sql
  4. 8 5
      src/map/battle.c

+ 5 - 0
Changelog-Trunk.txt

@@ -3,6 +3,11 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2006/05/11
+	* Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to
+	  Tanaous [Skotlex]
+	* Added back the missing code that substracts arrows when normal-attacking.
+	  [Skotlex]
 2006/05/10
 	* Changed the state of Asura back to explosionspirits, added a hardcoded
 	  move_enable check when invoking Asura and NOT while in BladeStop or a

+ 6 - 1
conf-tmpl/script_athena.conf

@@ -18,6 +18,11 @@
 // When choosing those which it refines setting the letter which is indicated. (Those for word use other than Japanese?)
 refine_posword: Head,Body,Left hand,Right hand,Robe,Shoes,Accessory 1,Accessory 2,Head 2,Head 3,Not Equipped
 
+//If you are getting crashes during script loading, you can set this to yes 
+//to find out which script causes it. Otherwise leave it as no since the amount
+//of extra console output is staggering.
+verbose_mode: no
+
 warn_func_no_comma: yes
 
 warn_cmd_no_comma: yes
@@ -63,4 +68,4 @@ loadmap_event_name: PCLoadMapEvent
 baselvup_event_name: PCBaseLvUpEvent
 
 // Name of event when a player levels up (job lv)
-joblvup_event_name: PCJobLvUpEvent
+joblvup_event_name: PCJobLvUpEvent

+ 2 - 2
sql-files/upgrade_svn6533.sql

@@ -1,2 +1,2 @@
-ALTER TABLE `loginlog` CHANGE `ip` `ip` CHAR( 15 ) NOT NULL
-ALTER TABLE `loginlog` ADD INDEX ( `ip` ( 15 ) )
+ALTER TABLE `loginlog` CHANGE `ip` `ip` CHAR( 15 ) NOT NULL;
+ALTER TABLE `loginlog` ADD INDEX ( `ip` ( 15 ) );

+ 8 - 5
src/map/battle.c

@@ -3147,6 +3147,9 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target,
 			
 	wd = battle_calc_weapon_attack(src,target, 0, 0,0);
 
+	if (sd && sd->state.arrow_atk) //Consume arrow.
+		battle_consume_ammo(sd, 0, 0);
+	
 	damage = wd.damage + wd.damage2;
 	if (damage > 0 && src != target) {
 		rdamage = battle_calc_return_damage(target, &damage, wd.flag);
@@ -4156,15 +4159,15 @@ void battle_set_defaults() {
 // eAthena additions
 	battle_config.item_rate_mvp=100;
 	battle_config.item_rate_common = 100;
-	battle_config.item_rate_common_boss = battle_config.item_rate_common;	// [Reddozen]
+	battle_config.item_rate_common_boss = 100;	// [Reddozen]
 	battle_config.item_rate_equip = 100;
-	battle_config.item_rate_equip_boss = battle_config.item_rate_equip;	// [Reddozen]
+	battle_config.item_rate_equip_boss = 100;	// [Reddozen]
 	battle_config.item_rate_card = 100;
-	battle_config.item_rate_card_boss = battle_config.item_rate_card;	// [Reddozen]
+	battle_config.item_rate_card_boss = 100;	// [Reddozen]
 	battle_config.item_rate_heal = 100;		// Added by Valaris
-	battle_config.item_rate_heal_boss = battle_config.item_rate_heal;	// [Reddozen]
+	battle_config.item_rate_heal_boss = 100;	// [Reddozen]
 	battle_config.item_rate_use = 100;		// End
-	battle_config.item_rate_use_boss = battle_config.item_rate_use;	// [Reddozen]
+	battle_config.item_rate_use_boss = 100;	// [Reddozen]
 	battle_config.item_rate_adddrop = 100;
 	battle_config.item_rate_treasure = 100;
 	battle_config.logarithmic_drops = 0;