summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-10 10:41:14 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-10 10:41:14 +0000
commit586060188338f7a09c700961520b7e35007f9b28 (patch)
tree1540f73b37bd88d686c1f3ea8b7f06333a797acf
parent4cbba75bb9534466c2d3a06a532f819bb38e5e8c (diff)
downloadhercules-586060188338f7a09c700961520b7e35007f9b28.tar.gz
hercules-586060188338f7a09c700961520b7e35007f9b28.tar.bz2
hercules-586060188338f7a09c700961520b7e35007f9b28.tar.xz
hercules-586060188338f7a09c700961520b7e35007f9b28.zip
fixed refiner items check
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5975 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--npc/Changelog.txt2
-rw-r--r--npc/merchants/refine.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt
index 21cd65eea..6fff2811c 100644
--- a/npc/Changelog.txt
+++ b/npc/Changelog.txt
@@ -27,6 +27,8 @@ Nexon
Date Added
======
+04/10
+ * Updated refiner, thx2 Coltaro [Lupus]
04/08
* Fixed lighthalzen mobster a bit? [Vicious]
* Fixed job changer? [Vicious]
diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt
index 218ddfa09..712bc1aa1 100644
--- a/npc/merchants/refine.txt
+++ b/npc/merchants/refine.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= Syrus22 (1.1) dafide18 (1.4) Skotlex (1.5)
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= Any Freya Version
//===== Description: =========================================
@@ -34,6 +34,7 @@
//= 1.8 - Added Lighthalzen Refiners (Custom names again ^^;) [Poki#3]
//= 1.8a - Fixed wrong indication thanks to NeoSaro [Lupus]
//= 1.9 - Rewrote repairman, removed the Steel from repair cost [DracoRPG]
+//= 2.0 - Fixed missed equppment presence check. Thx2 Coltaro [Lupus]
//============================================================
@@ -517,6 +518,8 @@ L_refinesafe:
// SubFunction: Refine
L_refinenumber:
+ if (getequipisequiped(@part) == 0) goto LNoItem; // hacker has removed the item (no changed, why?)
+ if (getequipid(@part) != @refineitemid) goto LNoFake; // hacker has changed the item
mes "Clang, clang!!!";
if (getequippercentrefinery(@part)<=rand(100)) goto Lfail_number;
successrefitem @part;