diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-01 05:27:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-01 05:27:45 -0300 |
commit | eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d (patch) | |
tree | 212686b4d22d9bd38d383fe952e22935440aca10 /npc/042-11 | |
parent | e98e1c9a8baf3e8f7602437405568ff5caae0a79 (diff) | |
download | serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.gz serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.bz2 serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.xz serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.zip |
Sketches for Kamelot Main Caves and Boss Chamber
The magic logic is still not here, only the warps logic
Diffstat (limited to 'npc/042-11')
-rw-r--r-- | npc/042-11/_import.txt | 2 | ||||
-rw-r--r-- | npc/042-11/_warps.txt | 6 | ||||
-rw-r--r-- | npc/042-11/boss.txt | 45 |
3 files changed, 46 insertions, 7 deletions
diff --git a/npc/042-11/_import.txt b/npc/042-11/_import.txt index 3e3d6ffb6..fde2ef7f7 100644 --- a/npc/042-11/_import.txt +++ b/npc/042-11/_import.txt @@ -1,3 +1,3 @@ // Map 042-11: Camelot Sewer West Path // This file is generated automatically. All manually added changes will be removed when running the Converter. -"npc/042-11/_warps.txt", +"npc/042-11/boss.txt", diff --git a/npc/042-11/_warps.txt b/npc/042-11/_warps.txt deleted file mode 100644 index c5ffd25ac..000000000 --- a/npc/042-11/_warps.txt +++ /dev/null @@ -1,6 +0,0 @@ -// This file is generated automatically. All manually added changes will be removed when running the Converter. -// Map 042-11: Boss Chamber warps -// This file is generated automatically. All manually added changes will be removed when running the Converter. -// Map 042-11: Camelot Sewer West Path warps -042-11,41,57,0 warp #042-11_41_57 4,0,042-10,143,21 -042-11,20,28,0 warp #042-11_20_28 0,2,042-0,46,25 diff --git a/npc/042-11/boss.txt b/npc/042-11/boss.txt new file mode 100644 index 000000000..76ddac08f --- /dev/null +++ b/npc/042-11/boss.txt @@ -0,0 +1,45 @@ +// TMW 2 Script +// Author: +// Jesusalva +// Micksha +// Description: +// Controls the showdown +042-11,41,57,0 script #KDoor04211a NPC_HIDDEN,4,0,{ + end; + +OnTouch: + .@g=getcharid(2); + if (.@g < 1) percentheal -100, -100; + if (!($KAMELOT_QUEST[.@g] & 64)) goto L_NoAccess; + warp "042-10@"+.@g, 143, 21; + end; + +L_NoAccess: + dispbottom l("Can't leave right now."); + end; +} + +042-11,20,28,0 script #KDoor04211b NPC_HIDDEN,0,2,{ + end; + +OnTouch: + .@g=getcharid(2); + if (.@g < 1) percentheal -100, -100; + if (!($KAMELOT_QUEST[.@g] & 64)) goto L_NoAccess; + mes l("Are you sure you want leave?"); + mesc l("You wont be able to go back!"); + next; + if (askyesno() == ASK_YES) + warp "042-0@"+.@g, 46, 25; + close; + +L_NoAccess: + dispbottom l("Can't leave right now."); + end; +} + +// TODO: Boss Showdown +// TODO: Spawn GMGiftBox and Treasure Chests upon end + + + |