diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-14 23:14:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-14 23:14:31 -0300 |
commit | e5b6ad4fb852abe69577d1077e6a21faf392e80b (patch) | |
tree | 10f4c729ccd71ac567cf7e4e8262454c5ba915fb /npc/003-1/well.txt | |
parent | c314b5b5268fc59cd8c74bce12073d58c79e9e8c (diff) | |
download | serverdata-e5b6ad4fb852abe69577d1077e6a21faf392e80b.tar.gz serverdata-e5b6ad4fb852abe69577d1077e6a21faf392e80b.tar.bz2 serverdata-e5b6ad4fb852abe69577d1077e6a21faf392e80b.tar.xz serverdata-e5b6ad4fb852abe69577d1077e6a21faf392e80b.zip |
Well well well. Hopefully make well more well.
Diffstat (limited to 'npc/003-1/well.txt')
-rw-r--r-- | npc/003-1/well.txt | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/npc/003-1/well.txt b/npc/003-1/well.txt index b7962e0d7..db5fc313e 100644 --- a/npc/003-1/well.txt +++ b/npc/003-1/well.txt @@ -5,7 +5,55 @@ 003-1,45,80,0 script Well#003-1 NPC_NO_SPRITE,{ - mes l("This well is too deep and you don't have a bucket."); + mes col("This well is too deep and you don't have a bucket.", 9); + if (!Zeny) + close; + mes col("Throw a coin?", 9); + if (askyesno() != ASK_YES) + close; + + mes ""; + Zeny=Zeny-1; + mes col("You throw a coin on the well.", 9); + + .@n=rand(0, 10000); + if (.@n <= 10) { + getitem StrangeCoin, 1; + mes l("##9Hey wait... Your coin turned on a @@!", getitemlink(StrangeCoin)); + } else if (.@n <= 50) { + getitem CasinoCoin, 1; + mes l("##9Hey wait... Your coin turned on a @@!", getitemlink(CasinoCoin)); + } else if (.@n <= 100) { + Zeny=Zeny+2; + mes col("Hey wait... You found 2 GP!", 9); + } else if (.@n <= 250) { + percentheal 100, 100; + mes col("Hey wait... You're enveloped by a bright light and fully healed!", 9); + } else if (.@n <= 300) { + getexp rand(1,BaseLevel), rand(1,BaseLevel); + mes col("Hey wait... You're enveloped by a bright light and gain experience!", 9); + } else if (.@n > 9900) { + mes col("Hey wait... A monster!! Run for your life!!", 9); + getmapxy(.@m$, .@x, .@y); + .@mobGID = monster(.@m$, .@x, .@y, "Croc", Croc, 1); + unitattack(.@mobGID, getcharid(CHAR_ID_ACCOUNT)); // Order the summoned monster to engage!! + } else if (.@n > 9850) { + mes col("Hey wait... A monster!! Run for your life!!", 9); + getmapxy(.@m$, .@x, .@y); + .@mobGID = monster(.@m$, .@x, .@y, "Blub", Blub, 1); + unitattack(.@mobGID, getcharid(CHAR_ID_ACCOUNT)); // Order the summoned monster to engage!! + } else if (.@n > 9750) { + mes col("Hey wait... A monster!! Run for your life!!", 9); + getmapxy(.@m$, .@x, .@y); + .@mobGID = monster(.@m$, .@x, .@y, "Red Scorpion", RedScorpion, 1); + unitattack(.@mobGID, getcharid(CHAR_ID_ACCOUNT)); // Order the summoned monster to engage!! + } + } else if (.@n > 9700) { + mes col("Hey wait... A monster!! Run for your life!!", 9); + getmapxy(.@m$, .@x, .@y); + .@mobGID = monster(.@m$, .@x, .@y, "Bat", Bat, 1); + unitattack(.@mobGID, getcharid(CHAR_ID_ACCOUNT)); // Order the summoned monster to engage!! + } close; OnInit: |