summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-02-11 23:01:59 +0100
committerVincent Petithory <vincent.petithory@gmail.com>2013-02-21 17:30:55 +0100
commitf108bb5759733eb0b7a9ee3396f41a3e989c802e (patch)
tree5e687b80af97375719f9592c2e6594a5c47ab7cf /world/map/npc
parent82bfc47429c57cdd214d7cf411cb517c467e0a35 (diff)
downloadserverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.gz
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.bz2
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.xz
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.zip
Add GM Killing Event materials:
* MagicGMTopHat: The hat to give powers to a gm * Add #pullrabbit spell associated to the magic gm top hat. Requires ./build-magic.sh * Add Murderer Crown (prize)
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/items/magic_gm_top_hat.txt17
-rw-r--r--world/map/npc/scripts.conf1
2 files changed, 18 insertions, 0 deletions
diff --git a/world/map/npc/items/magic_gm_top_hat.txt b/world/map/npc/items/magic_gm_top_hat.txt
new file mode 100644
index 00000000..cd9a0302
--- /dev/null
+++ b/world/map/npc/items/magic_gm_top_hat.txt
@@ -0,0 +1,17 @@
+function|script|ActivateMagicGMTophat|{
+ if (getgmlevel() < 60) return;
+ getinventorylist;
+ if ((checkweight("MurdererCrown", 1) == 0) || (@inventorylist_count == 100))
+ goto L_Inventory;
+ // Get the current reward of the event. This may be changed later
+ getitem "MurdererCrown", 1;
+ // Display an effect
+ misceffect FX_CHANNELLING_CAST, strcharinfo(0);
+ // Log the usage of this spell
+ gmcommand "@l "+strcharinfo(0)+" used the Magic GM Top Hat.";
+ return;
+
+L_Inventory:
+ message strcharinfo(0), "You cannot create this item. You're too heavy or you don't have a free slot.";
+ return;
+}
diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf
index 48712aca..26a0b0b4 100644
--- a/world/map/npc/scripts.conf
+++ b/world/map/npc/scripts.conf
@@ -21,6 +21,7 @@ npc: npc/functions/debug.txt
npc: npc/functions/lockpicking.txt
// Item Functions
+npc: npc/items/magic_gm_top_hat.txt
npc: npc/items/purification_potion.txt
npc: npc/items/scissors.txt
npc: npc/items/shock_sweet.txt