diff options
author | Wombat <hpwombat@yahoo.com> | 2010-08-17 19:39:46 -0400 |
---|---|---|
committer | Wombat <hpwombat@yahoo.com> | 2010-08-17 19:42:55 -0400 |
commit | a751aa75d5ee9e4d4c3b7216073520593be1ba07 (patch) | |
tree | 8773f02516d741049a09cd44e7afae6c303f7d51 /npc/027-1_Graveyard | |
parent | 6f895bf0370c3d80ef2a2847ec233b5a0d1006b8 (diff) | |
download | serverdata-a751aa75d5ee9e4d4c3b7216073520593be1ba07.tar.gz serverdata-a751aa75d5ee9e4d4c3b7216073520593be1ba07.tar.bz2 serverdata-a751aa75d5ee9e4d4c3b7216073520593be1ba07.tar.xz serverdata-a751aa75d5ee9e4d4c3b7216073520593be1ba07.zip |
fix on inn sink npc to avoid overflow
zeny sink graveyard npc fixed to avoid overflow hacking
Diffstat (limited to 'npc/027-1_Graveyard')
-rw-r--r-- | npc/027-1_Graveyard/golbenez.txt | 59 |
1 files changed, 12 insertions, 47 deletions
diff --git a/npc/027-1_Graveyard/golbenez.txt b/npc/027-1_Graveyard/golbenez.txt index 2b87f83d..c74c9827 100644 --- a/npc/027-1_Graveyard/golbenez.txt +++ b/npc/027-1_Graveyard/golbenez.txt @@ -1,8 +1,8 @@ // 027-1.gat,68,89,0 script #Golbenez#_M 204,{ - if ($Golbenez_Inn_Cost >= 500000000) goto Golbenez_Inn_Enough; + mes "[Voice]"; mes "\"Mortal! I am Golbenez! I have broken through the barriers of space and time!\""; next; @@ -11,62 +11,27 @@ mes "\"It is difficult to create portals from my realm to yours. It is also difficult to create dimensions isolated from the threats that may seek to do you harm. For this reason I demand a hefty fee. For 500 million of your gold pieces I will create this place. This need not come just from you, but it must be delivered from the people of your world to me.\""; next; mes "\"So far, you have brought me " + Golbenez_Inn_Cost + " gold pieces. The people of your world have brought me " + $Golbenez_Inn_Cost + " gold pieces. How much would you like to give?\""; + + set @mult, 1; menu "I'd like to give a little.", Golbenez_Little, "I'd like to give thousands.", Golbenez_Thousands, - "I'd like to give tens of thousands.", Golbenez_10s_of_Thousands, - "I'd like to give hundreds of thousands.", Golbenez_100s_of_Thousands, - "I'd like to give millions.", Golbenez_Millions, "Nevermind.", Golbenez_Nevermind; -Golbenez_Little: - input @Give_Zeny; - - if (@Give_Zeny == 0) close; - if (zeny < @Give_Zeny) goto Golbenez_Inn_NotEnoughZeny; - set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give_Zeny; - set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give_Zeny; - set zeny, zeny - @Give_Zeny; - close; Golbenez_Thousands: - input @Give_Zeny_Thousands; - - if (@Give_Zeny_Thousands == 0) close; - if (zeny < @Give_Zeny_Thousands * 1000) goto Golbenez_Inn_NotEnoughZeny; - set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give_Zeny_Thousands * 1000; - set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give_Zeny_Thousands * 1000; - set zeny, zeny - @Give_Zeny_Thousands * 1000; - close; - -Golbenez_10s_of_Thousands: - input @Give_Zeny_10s_of_Thousands; - - if (@Give_Zeny_10s_of_Thousands == 0) close; - if (zeny < @Give_Zeny_10s_of_Thousands * 10000) goto Golbenez_Inn_NotEnoughZeny; - set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give_Zeny_10s_of_Thousands * 10000; - set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give_Zeny_10s_of_Thousands * 10000; - set zeny, zeny - @Give_Zeny_10s_of_Thousands * 10000; - close; + set @mult, 1000; -Golbenez_100s_of_Thousands: - input @Give_Zeny_100s_of_Thousands; - - if (@Give_Zeny_100s_of_Thousands == 0) close; - if (zeny < @Give_Zeny_100s_of_Thousands * 100000) goto Golbenez_Inn_NotEnoughZeny; - set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give_Zeny_100s_of_Thousands * 100000; - set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give_Zeny_100s_of_Thousands * 100000; - set zeny, zeny - @Give_Zeny_100s_of_Thousands * 100000; - close; +Golbenez_Little: + input @Give; -Golbenez_Millions: - input @Give_Zeny_Millions; + set @Give, @Give * @mult; - if (@Give_Zeny_Millions == 0) close; - if (zeny < @Give_Zeny_Millions * 1000000) goto Golbenez_Inn_NotEnoughZeny; - set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give_Zeny_Millions * 1000000; - set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give_Zeny_Millions * 1000000; - set zeny, zeny - @Give_Zeny_Millions * 1000000; + if (@Give <= 0) close; + if (zeny < @Give) goto Golbenez_Inn_NotEnoughZeny; + set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give; + set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give; + set zeny, zeny - @Give; close; Golbenez_Inn_NotEnoughZeny: |