diff options
author | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2022-11-19 10:11:04 +0000 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2022-11-19 10:11:04 +0000 |
commit | b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e (patch) | |
tree | f6f8e5189c711b0eadbfc2d0af53fc183af16de2 /world/map/npc/items | |
parent | d48928c3e87c18ea11447117e307cf06f33829f6 (diff) | |
download | serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.gz serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.bz2 serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.xz serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.zip |
WIP: v2022.11.11 Update
Diffstat (limited to 'world/map/npc/items')
-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; +} + |