diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-04 22:42:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-04 22:42:21 -0300 |
commit | 3cba54478158221f7c62c567f8de321384abed48 (patch) | |
tree | eeca2cc2f8fb536e427a6e84ed51d00906c8f86c /npc | |
parent | 61c6c5cc4839bd4504f16e133249049596650ef8 (diff) | |
download | serverdata-3cba54478158221f7c62c567f8de321384abed48.tar.gz serverdata-3cba54478158221f7c62c567f8de321384abed48.tar.bz2 serverdata-3cba54478158221f7c62c567f8de321384abed48.tar.xz serverdata-3cba54478158221f7c62c567f8de321384abed48.zip |
Paxel and Stranger - Connect both.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/017-1/paxel.txt | 9 | ||||
-rw-r--r-- | npc/017-1/stranger.txt | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/npc/017-1/paxel.txt b/npc/017-1/paxel.txt index f71d16d77..8b66cee38 100644 --- a/npc/017-1/paxel.txt +++ b/npc/017-1/paxel.txt @@ -9,6 +9,11 @@ // He probably used the nice furnace NPC too... We will need another NPC to use that... 017-1,131,22,0 script Paxel NPC_PLAYER,0,0,{ + function maybeTowel; + if (maybeTowel()) + npctalk3 l("I hope that strange towel man doesn't bother me again..."); + else if (rand2(10) == 4) + npctalk3 l("I'm glad there's no annoying towel man. He keeps coming back to annoy me!"); .@q=getq(SQuest_Paxel); if(.@q == 2) goto L_Done; if (season() != SPRING && !$@GM_OVERRIDE) goto L_OutOfSeason; @@ -244,6 +249,10 @@ OnOmattizator4: percentheal -100, -100; end; +function maybeTowel { + return (gettime(GETTIME_MONTH) % 3 == 2 && gettime(GETTIME_DAYOFMONTH) >= 18 && gettime(GETTIME_DAYOFMONTH) <= 25) +} + OnInit: .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, PrsmHelmet); diff --git a/npc/017-1/stranger.txt b/npc/017-1/stranger.txt index 2a2ddccae..c60e98844 100644 --- a/npc/017-1/stranger.txt +++ b/npc/017-1/stranger.txt @@ -159,6 +159,11 @@ L_Reward: L_Complete: mesn; mesq l("I have a lot of work to do now."); + if (rand2(3) == 2) { + next; + mesn; + mesq l("Annoying Paxel, for example %%o"); + } close; // Proccessing Core |