summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/evil_obelisk.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/world/map/npc/functions/evil_obelisk.txt b/world/map/npc/functions/evil_obelisk.txt
index dbfede0d..a5fe6e55 100644
--- a/world/map/npc/functions/evil_obelisk.txt
+++ b/world/map/npc/functions/evil_obelisk.txt
@@ -9,6 +9,7 @@ function|script|EvilObelisk
set @cost_gy2, 3000;
set @cost_skull, 2800;
set @cost_snake, 2500;
+ set @cost_keshlam, 10000;
menu
"Don't pay it anything.", L_Close,
@@ -16,7 +17,8 @@ function|script|EvilObelisk
"Pay it " + @cost_gy1 + " gold.", L_GRAVEYARD1,
"Pay it " + @cost_gy2 + " gold.", L_GRAVEYARD2,
"Pay it " + @cost_skull + " gold.", L_SKULL,
- "Pay it " + @cost_snake + " gold.", L_SNAKE;
+ "Pay it " + @cost_snake + " gold.", L_SNAKE,
+ "Pay it " + @cost_keshlam + " gold.", L_KESHLAM;
L_JACKO:
if (Zeny < @cost_jacko)
@@ -78,6 +80,20 @@ L_SNAKE:
set Zeny, Zeny - @cost_snake;
goto L_Summon;
+L_KESHLAM:
+ if (Zeny < @cost_keshlam)
+ goto L_NotEnough;
+ set @temp, rand(3);
+ if(@temp == 0)
+ set @mob_id, 1140; // Tengu
+ if(@temp == 1)
+ set @mob_id, 1141; // Sasquatch
+ if(@temp == 2)
+ set @mob_id, 1143; // Mana Slayer
+ set @mob_count, rand(1,3);
+ set Zeny, Zeny - @cost_keshlam;
+ goto L_Summon;
+
L_Summon:
areamonster @map$, @x0, @y0, @x1, @y1, "", @mob_id, @mob_count;
goto L_Close;
@@ -92,6 +108,7 @@ L_Close:
set @cost_gy2, 0;
set @cost_skull, 0;
set @cost_snake, 0;
+ set @cost_keshlam, 0;
return;
}