From b66202f0462e1bc91b21310e215cd3e5d862224a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 21 May 2018 18:33:27 -0300 Subject: Attempt with OnTouch --- npc/003-1/hasan.txt | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/npc/003-1/hasan.txt b/npc/003-1/hasan.txt index 6de6ad19b..41f96f64a 100644 --- a/npc/003-1/hasan.txt +++ b/npc/003-1/hasan.txt @@ -23,23 +23,6 @@ // Temporary sprite 003-1,62,148,0 script Hasan NPC_ELVEN_MAN_RED,2,2,{ - if (Zeny > 15) goto L_Steal; - end; - -L_Steal: - npctalk3("*whistle*"); - if (getq(TulimsharQuest_Hasan) == 0) goto L_DoSteal; - if (getq(TulimsharQuest_Hasan) <= 4 && rand(0,100) < 20) goto L_DoSteal; - end; - -L_DoSteal: - Zeny=Zeny-rand(3,12); - if (getq(TulimsharQuest_Hasan) == 0) - setq TulimsharQuest_Hasan, 1; - dispbottom l("##BYou were stolen##b by an evil NPC."); - end; - -OnTalk: if (getq(TulimsharQuest_Hasan) == 0) goto L_Safe; //if (getq(TulimsharQuest_Hasan) == 4) goto L_Finish; //if (getq(TulimsharQuest_Hasan) == 5) goto L_Complete; @@ -72,6 +55,25 @@ L_Print: mesq l("If you go to Lieutenant Dausen, he'll say that you used Gimp. Just give up."); close; + + +OnTouch: + if (Zeny > 15) goto L_Steal; + end; + +L_Steal: + npctalk3("*whistle*"); + if (getq(TulimsharQuest_Hasan) == 0) goto L_DoSteal; + if (getq(TulimsharQuest_Hasan) <= 4 && rand(0,100) < 20) goto L_DoSteal; + end; + +L_DoSteal: + Zeny=Zeny-rand(3,12); + if (getq(TulimsharQuest_Hasan) == 0) + setq TulimsharQuest_Hasan, 1; + dispbottom l("##BYou were stolen##b by an evil NPC."); + end; + OnInit: .sex = G_MALE; .distance = 5; -- cgit v1.2.3-70-g09d2