From 6e5cfb6535fa6fddad1df9f313afab6e45a97d19 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 13 Feb 2010 17:06:31 +0000 Subject: Moved the delitem() call in the custom eAAC coin banker, so that the script aborts _before_ giving zeny, not afterwards. This fixes an infinite zeny exploit in the npc (bugreport:4057). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14244 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/custom/eAAC_Scripts/banker.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/custom/eAAC_Scripts') diff --git a/npc/custom/eAAC_Scripts/banker.txt b/npc/custom/eAAC_Scripts/banker.txt index 8ed9cf87b..a51b77206 100644 --- a/npc/custom/eAAC_Scripts/banker.txt +++ b/npc/custom/eAAC_Scripts/banker.txt @@ -161,8 +161,8 @@ prontera,155,188,3 script Zacariath Madhat 872,{ menu "Yes, I want to exchange this much",-,"No, I want to exchange something else",L_CoinZeny,"No, I want to input another number",L_Inputing,"No, I dont want to exchange anything",L_Menu; next; set @price,getarg(1)*@coinamount; - set Zeny,Zeny+@price; delitem getarg(0),@coinamount; + set Zeny,Zeny+@price; mes @npcname$; mes "There we go, here's your money"; next; -- cgit v1.2.3-70-g09d2