From 47ff8ed7fa7603974a6f5e41b5290e5e24916317 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Sat, 21 Feb 2015 14:31:26 +0530 Subject: Teleport Cat now warps properly, Issue#8541 --- npc/re/quests/quests_eclage.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'npc') 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: -- cgit v1.2.3-70-g09d2