diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-10-28 12:27:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-10-28 12:27:45 -0300 |
commit | 12dfaec67aa879dece8e36e2e4e1f77797100c33 (patch) | |
tree | 42767b5eeaf874900c0f54d55ea40736c2b098b6 | |
parent | 0266a154728fe9549fed0d7ab8e49977e078faae (diff) | |
download | serverdata-12dfaec67aa879dece8e36e2e4e1f77797100c33.tar.gz serverdata-12dfaec67aa879dece8e36e2e4e1f77797100c33.tar.bz2 serverdata-12dfaec67aa879dece8e36e2e4e1f77797100c33.tar.xz serverdata-12dfaec67aa879dece8e36e2e4e1f77797100c33.zip |
Strengthen a bit two suspicious NPCs code
-rw-r--r-- | npc/012-1/andrei.txt | 2 | ||||
-rw-r--r-- | npc/012-1/guards.txt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/npc/012-1/andrei.txt b/npc/012-1/andrei.txt index 0f984f79e..daa1b7b2b 100644 --- a/npc/012-1/andrei.txt +++ b/npc/012-1/andrei.txt @@ -41,7 +41,7 @@ mes ""; addtimer(30000, "Andrei Sakar::OnTooLong"); .@q=getq3(Q_NivalisLibday); - setq3 Q_NivalisLibday, .@q-7; + setq3 Q_NivalisLibday, max(0, .@q-7); mesn; mesq $@NLIBqs$[@qid]; menuint diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index d36cc5b4a..e4c5f0486 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -147,8 +147,8 @@ L_Assign: mesq l("You currently have @@, so if you accept and come back later with @@ Mob Points, I'll mark the bounty as complete.", Mobpt, Mobpt+@rq); next; mesc l("Accept quest?"); - if (askyesno() == ASK_YES) { - setq HurnscaldQuest_Lieutenant, @fc-1, Mobpt; + if (askyesno() == ASK_YES && @fc) { + setq HurnscaldQuest_Lieutenant, max(0, @fc-1), Mobpt; } } // Resume quest |