From a2cc4b71ff4c3004c5a701866f7cde0d7e59d233 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 8 Aug 2018 02:41:58 -0300 Subject: Optimize arpan script, I can actually guess when the timer is enabled with a simple trick. Also, change second timer to 1m30s - are you even reading what I'm writing? %%e --- npc/002-1/arpan.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/npc/002-1/arpan.txt b/npc/002-1/arpan.txt index 8171cef8a..e0ff3f255 100644 --- a/npc/002-1/arpan.txt +++ b/npc/002-1/arpan.txt @@ -96,18 +96,17 @@ L_EquipDone: .@q = getq(ShipQuests_Arpan); .@q_julia = getq(ShipQuests_Julia); if (.@q == 2 && getequipid(equip_torso) == 1300 && getequipid(equip_legs) == 2200) goto L_EquipDone; - if (gettimer(0, getcharid(3), "Magic Arpan::OnSlow")) - deltimer("Magic Arpan::OnSlow"); OnTalk: showavatar NPC_MAGIC_ARPAN; mesn; if (.@q > 0) goto L_Menu; + setq ShipQuests_Arpan, 1; + deltimer("Magic Arpan::OnSlow"); mesq lg("Yeye, you are really lucky to be alive. You are in good enough shape for walking, do you remember what happened?"); next; - setq ShipQuests_Arpan, 1; menu lg("I only remember I was rescued by you."), L_Story, @@ -272,7 +271,7 @@ OnSlow: next; mesn; mesc l("Here, come talk to me, the Magic Arpan! I'll help you get dressed."), 1; - addtimer(45000,"Magic Arpan::OnSlow"); + addtimer(90000,"Magic Arpan::OnSlow"); close; OnInit: -- cgit v1.2.3-60-g2f50