Ver código fonte

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://svn.code.sf.net/p/rathena/svn/trunk@14244 54d463be-8e91-2dee-dedb-b68131a5f0ec

ultramage 15 anos atrás
pai
commit
df78683650
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      npc/custom/eAAC_Scripts/banker.txt

+ 1 - 1
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;