From b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e Mon Sep 17 00:00:00 2001 From: Jesusalva Jesusalva Date: Sat, 19 Nov 2022 10:11:04 +0000 Subject: WIP: v2022.11.11 Update --- world/map/npc/items/check_wand.txt | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'world/map/npc/items') 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; +} + -- cgit v1.2.3-60-g2f50