summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-02-21 14:31:26 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-02-21 14:31:26 +0530
commit47ff8ed7fa7603974a6f5e41b5290e5e24916317 (patch)
treea8679537119b2b240d998fb7fcece48b234b581d
parent0421800dd6451e0dd74dff70bcdaede55cf6a606 (diff)
downloadhercules-47ff8ed7fa7603974a6f5e41b5290e5e24916317.tar.gz
hercules-47ff8ed7fa7603974a6f5e41b5290e5e24916317.tar.bz2
hercules-47ff8ed7fa7603974a6f5e41b5290e5e24916317.tar.xz
hercules-47ff8ed7fa7603974a6f5e41b5290e5e24916317.zip
Teleport Cat now warps properly, Issue#8541
-rw-r--r--npc/re/quests/quests_eclage.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/npc/re/quests/quests_eclage.txt b/npc/re/quests/quests_eclage.txt
index 4e75f8943..ab8651c92 100644
--- a/npc/re/quests/quests_eclage.txt
+++ b/npc/re/quests/quests_eclage.txt
@@ -44,25 +44,24 @@ ecl_fild01,118,311,4 script Teleport Cat No.1#1 4_M_BOSSCAT,{
mes "I'll see you later then";
close;
}
+ .@i = (.@menu/2)-1;
if (.@menu%2){
- .@menu = (.@menu/2)-1;
- if (Zeny < (.price[.@pindex[.@menu]]*1000)){
+ if (Zeny < (.price[.@pindex[.@i]]*1000)){
mes "[Teleport Cat]";
mes "I'm afraid it's not enough. Sorry, but it can't be done for free~";
close;
}
- Zeny -= .price[.@pindex[.@menu]]*1000;
+ Zeny -= .price[.@pindex[.@i]]*1000;
}
else{
- .@menu = (.@menu/2)-1;
- if (countitem(Malang_Sp_Can) < .price[.@pindex[(.@menu/2)]] ){
+ if (countitem(Malang_Sp_Can) < .price[.@pindex[.@i]] ){
mes "[Teleport Cat]";
mes "I'm afraid it's not enough. Sorry, but it can't be done for free~";
close;
}
- delitem Malang_Sp_Can,.price[.@pindex[(.@menu/2)]];
+ delitem Malang_Sp_Can,.price[.@pindex[.@i]];
}
- warp .maps$[.@mindex],.x[.@mindex],.y[.@mindex];
+ warp .maps$[.@mindex[.@i]],.x[.@mindex[.@i]],.y[.@mindex[.@i]];
end;
OnInit: