diff options
author | HoraK-FDF <horak-fdf@web.de> | 2023-11-11 02:43:58 +0100 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2023-11-11 02:43:58 +0100 |
commit | 0c2c5fad59c0ebdc6cbe5bedc051fd4ea593dfe2 (patch) | |
tree | 6c0038e07e3e21be523e51e0c4b91e53056b20f7 /world/map/npc | |
parent | 2918fccc4872637ee76663f9d754a66f1c0cef78 (diff) | |
download | serverdata-0c2c5fad59c0ebdc6cbe5bedc051fd4ea593dfe2.tar.gz serverdata-0c2c5fad59c0ebdc6cbe5bedc051fd4ea593dfe2.tar.bz2 serverdata-0c2c5fad59c0ebdc6cbe5bedc051fd4ea593dfe2.tar.xz serverdata-0c2c5fad59c0ebdc6cbe5bedc051fd4ea593dfe2.zip |
fluffy event sweettooth function
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/items/check_wand.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/world/map/npc/items/check_wand.txt b/world/map/npc/items/check_wand.txt index 93993c53..5284b3ac 100644 --- a/world/map/npc/items/check_wand.txt +++ b/world/map/npc/items/check_wand.txt @@ -1,2 +1,21 @@ // Wands -// Author: Wushin +// Author: Jesusalva + +function|script|SweetTooth +{ + if (getequipid(equip_hand1) != SweetTooth) goto L_Return; + set Sp, min(MaxSp, Sp + MaxSp / 20); // Restore up to 5% MP + if (strcharinfo(1) == "follow the white rabbit") + goto L_Cake; + return; + +L_Cake: + if (@sweetooth > gettimetick(2)) goto L_Return; + message strcharinfo(0), "The @@1170|@@ gave you cake. It was delicious! Your mana was restored."; + set @sweetooth, gettimetick(2) + 160; + return; + +L_Return: + return; +} + |