diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-28 14:08:03 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-28 14:08:03 -0300 |
commit | 558be6e0a9a4dc6dd8510cd7475ebb44629297a4 (patch) | |
tree | de49b418c683d32625c556f5314c050e37161238 /npc/042-2 | |
parent | c61232ef7d40aa683946dc03b44c4bd89ee99db8 (diff) | |
download | serverdata-558be6e0a9a4dc6dd8510cd7475ebb44629297a4.tar.gz serverdata-558be6e0a9a4dc6dd8510cd7475ebb44629297a4.tar.bz2 serverdata-558be6e0a9a4dc6dd8510cd7475ebb44629297a4.tar.xz serverdata-558be6e0a9a4dc6dd8510cd7475ebb44629297a4.zip |
More sketches
Diffstat (limited to 'npc/042-2')
-rw-r--r-- | npc/042-2/_import.txt | 1 | ||||
-rw-r--r-- | npc/042-2/door.txt | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/npc/042-2/_import.txt b/npc/042-2/_import.txt index b40dc76b0..0c54c05af 100644 --- a/npc/042-2/_import.txt +++ b/npc/042-2/_import.txt @@ -1,3 +1,4 @@ // Map 042-2: Camelot - Basement // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/042-2/_warps.txt", +"npc/042-2/door.txt", diff --git a/npc/042-2/door.txt b/npc/042-2/door.txt new file mode 100644 index 000000000..d663a063b --- /dev/null +++ b/npc/042-2/door.txt @@ -0,0 +1,38 @@ +// TMW 2 Script +// Author: +// Jesusalva +// Micksha +// Description: +// Controls Weapons Room basement door + +042-1,51,23,0 script #KWRDoor NPC_HIDDEN,0,0,{ + end; + +OnTouch: + .@g=getcharid(2); + if ($KAMELOT_KEYMASK[.@g] & 16) { + warp "042-3@"+.@g, 44, 59; + } else { + dispbottom l("This door is locked."); + } + end; + +OnKillBoss: + .@g=getcharid(2); + dispbottom l("You found a key."); + getitem TreasureKey, 1; + $KAMELOT_KEYMASK[.@g]=$KAMELOT_KEYMASK[.@g]|16; + getitem GuildCoin, 1; // Reward for completing this stage + $GUILD_BANK[.@g]+=500; + .@gxp=$KAMELOT_MX[.@g]*5; + guildgetexp(.@gxp); // 5xp per player average level (max 500/750) + mapannounce getmap(), strcharinfo(0)+" has found the key for the door!", 0; + .@gm$=getguildmaster(.@g); + if (!getcharid(3, .@gm$)) end; + .@gma=getcharid(3, .@gm$); + .@gmb=getcharid(0, .@gm$); + if (!isloggedin(.@gma, .@gmb)) end; + message .@gm$, strcharinfo(0)+" found the key: Guild GP +500 Guild XP +"+.@gxp; + end; +} + |