summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorSinSloth <SinSloth@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-10 15:17:32 +0000
committerSinSloth <SinSloth@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-10 15:17:32 +0000
commit7eb8ad1d42c967adfafd30c13e37ab2ca26574cc (patch)
tree16d6d898c2afb4157056c43bc163f2b405d67326 /npc
parent5d99e857efcfc798439b22fd55d6b142548dba6c (diff)
downloadhercules-7eb8ad1d42c967adfafd30c13e37ab2ca26574cc.tar.gz
hercules-7eb8ad1d42c967adfafd30c13e37ab2ca26574cc.tar.bz2
hercules-7eb8ad1d42c967adfafd30c13e37ab2ca26574cc.tar.xz
hercules-7eb8ad1d42c967adfafd30c13e37ab2ca26574cc.zip
* Updated hack check and added a weight check to Umbala Elemental Dismantler.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10523 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/Changelog.txt1
-rw-r--r--npc/quests/quests_umbala.txt12
2 files changed, 11 insertions, 2 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt
index 9a2f3f04d..e16c8656e 100644
--- a/npc/Changelog.txt
+++ b/npc/Changelog.txt
@@ -1,6 +1,7 @@
Date Added
======
2007/05/11
+ * Updated hack check and added a weight check to Umbala Elemental Dismantler. [SinSloth]
* Made Veins spawns slightly more mobby [Playtester]
* Players can now dismantle more than one elemental stone at once from Umbala Shaman. [SinSloth]
* Alchemists are now able to purchase up to 2000 Medicine Bowl. [SinSloth]
diff --git a/npc/quests/quests_umbala.txt b/npc/quests/quests_umbala.txt
index c0d827751..85084f6fc 100644
--- a/npc/quests/quests_umbala.txt
+++ b/npc/quests/quests_umbala.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= sabernet09 & eAthena Team
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= eAthena 7.15 +
//===== Description: =========================================
@@ -29,6 +29,7 @@
//= 1.8 Added official chance of failure to Create Essence/Dismantle Stone [Lupus]
//= 1.9 Added functionality to allow players to dismantle more
//= than a stone at once, up to 10. [SinSloth]
+//= 2.0 Updated hack check and added a weight check to dismantling. [SinSloth]
//============================================================
@@ -948,7 +949,7 @@ L_Dismantle:
mes "Onbaruzu Zan Kata! Unba Ka!";
next;
mes "[Putsuchiritan]";
- if(countitem(.@need)<1){
+ if(countitem(.@need)<.@delete){
mes "You're An Amba HacK0R!";
mes "I'm clearing your mind!";
//we reset the whole quest for the hacker
@@ -956,6 +957,13 @@ L_Dismantle:
emotion e_swt,1;
close;
}
+ if(checkweight(.@gain,.@result) != 1)
+ {
+ mes "You are overweight.";
+ mes "Please clear your inventory";
+ mes "or make some empty slots.";
+ close;
+ }
delitem .@need,.@delete;
getitem .@gain,.@result;
mes "The elemental stone has been";