diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-21 18:33:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-21 18:33:27 -0300 |
commit | b66202f0462e1bc91b21310e215cd3e5d862224a (patch) | |
tree | ede0bbeaea5d9f6c13d6d2a3d2f9fb197be11c51 /npc | |
parent | a2711950e670940e22ca2e1994d0e08ff066b4b4 (diff) | |
download | serverdata-b66202f0462e1bc91b21310e215cd3e5d862224a.tar.gz serverdata-b66202f0462e1bc91b21310e215cd3e5d862224a.tar.bz2 serverdata-b66202f0462e1bc91b21310e215cd3e5d862224a.tar.xz serverdata-b66202f0462e1bc91b21310e215cd3e5d862224a.zip |
Attempt with OnTouch
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-1/hasan.txt | 36 |
1 files 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; |