summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-25 05:22:15 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-25 05:22:15 +0000
commit60431a600d821466849c0a277dec56980477aa03 (patch)
treeb66deb971fefad91c769d82c3b939e34e0cf28a8 /src/map/skill.c
parente34faf2b5aadc6b7c5d96e865f1aa40fca04bd67 (diff)
downloadhercules-60431a600d821466849c0a277dec56980477aa03.tar.gz
hercules-60431a600d821466849c0a277dec56980477aa03.tar.bz2
hercules-60431a600d821466849c0a277dec56980477aa03.tar.xz
hercules-60431a600d821466849c0a277dec56980477aa03.zip
Updated Weapon Repair, Aura Blade
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@357 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2be4cab6e..bc087fbb3 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3708,9 +3708,30 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
break;
case BS_REPAIRWEAPON: /* 武器修理 */
- if(sd)
+ if(sd) { //Temporary Weapon Repair code [DracoRPG]
//動作しないのでとりあえずコメントアウト
// clif_item_repair_list(sd);
+ int i,r=0;
+ if (pc_search_inventory(sd, 999) <= 0 ) {
+ clif_skill_fail(sd,sd->skillid,0,0);
+ map_freeblock_unlock();
+ return 1;
+ }
+ for(i=0; i<MAX_INVENTORY; i++) {
+ if(sd->status.inventory[i].attribute == 1){
+ sd->status.inventory[i].attribute = 0;
+ pc_delitem(sd, pc_search_inventory(sd, 999), 1, 0);
+ clif_equiplist(sd);
+ clif_produceeffect(sd, 0, sd->status.inventory[i].nameid);
+ clif_misceffect(&sd->bl, 3);
+ clif_displaymessage(sd->fd,"Item has been repaired.");
+ r++;
+ break;
+ }
+ }
+ if(!r)
+ clif_skill_fail(sd,sd->skillid,0,0);
+ }
break;
case MC_VENDING: /* 露店開設 */