summaryrefslogtreecommitdiff
path: root/world/map/npc/items/magic_gm_top_hat.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/items/magic_gm_top_hat.txt')
-rw-r--r--world/map/npc/items/magic_gm_top_hat.txt17
1 files changed, 17 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;
+}