فهرست منبع

- Moved the weapon repair effect to where it belongs (after successfully repairing an item)
- Added atcommand.conf entries for @adjgmlvl and @adjcmdlvl


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

skotlex 18 سال پیش
والد
کامیت
6b77c081e9
4فایلهای تغییر یافته به همراه14 افزوده شده و 3 حذف شده
  1. 2 0
      Changelog-Trunk.txt
  2. 2 0
      conf-tmpl/Changelog.txt
  3. 8 0
      conf-tmpl/atcommand_athena.conf
  4. 2 3
      src/map/skill.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/09/15
+	* Moved the weapon repair effect to where it belongs (after successfully
+	  repairing an item) [Skotlex]
 	* Added config setting "friend_auto_add" (battle/player.conf), if set, when
 	  you accept someone as your friend, both characters will show up on each
 	  other's friend list. [Skotlex]

+ 2 - 0
conf-tmpl/Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2006/09/15
+	* Added atcommand.conf entries for @adjgmlvl and @adjcmdlvl [Skotlex]
 2006/09/14
 	* Adjusted gvg long damage rate to 80%, magic damage rate to 60%
 	  (battle/guild.conf) [Skotlex]

+ 8 - 0
conf-tmpl/atcommand_athena.conf

@@ -708,6 +708,14 @@ reloadpcdb: 99
 // Re-load the Message of the Day (admin command)
 reloadmotd: 99
 
+// Changes the GM level of another character
+// (lasts until reboot, or gm list reload)
+adjgmlvl: 99
+
+// Changes the required GM level of an @ command
+// (effect lasts until restart or command reload)
+adjcmdlvl: 99
+
 // [Un]Disguise All Players (admin command)
 disguiseall: 99
 undisguiseall: 99

+ 2 - 3
src/map/skill.c

@@ -4308,10 +4308,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 		break;
 
 	case BS_REPAIRWEAPON:
-		if(sd && dstsd) {
-			clif_skill_nodamage(src,bl,skillid,skilllv,1);
+		if(sd && dstsd)
 			clif_item_repair_list(sd,dstsd);
-		}
 		break;
 
 	case MC_IDENTIFY:
@@ -8817,6 +8815,7 @@ void skill_repairweapon (struct map_session_data *sd, int idx)
 		clif_skill_fail(sd,sd->menuskill_id,0,0);
 		return;
 	}
+	clif_skill_nodamage(&sd->bl,&target_sd->bl,sd->menuskill_id,1,1);
 	item->attribute=0;
 	clif_equiplist(target_sd);
 	pc_delitem(sd,pc_search_inventory(sd,material),1,0);