diff options
-rw-r--r-- | npc/012-1/andrei.txt | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/npc/012-1/andrei.txt b/npc/012-1/andrei.txt index de7bd0ad0..4b00516e9 100644 --- a/npc/012-1/andrei.txt +++ b/npc/012-1/andrei.txt @@ -64,8 +64,42 @@ L_Quizz: mesn; - mesq l("Rewards still weren't defined, sorry."); .@q=getq3(Q_NivalisLibday); + // You cannot go above 100 points. + if (.@q > 100) { + mesq l("...More bugs."); + mesc l("A bug was found. Aborting script."), 1; + close; + } else if (.@q == 100) { + mesq l("Congratulations. You really know about the world lore."); + getitem HastePotion, 2; + getitem StrengthPotion, 2; + getitem Bread, 5; + } else if (.@q > 90) { + mesq l("Outstanding. Congratulations."); + getitem HastePotion, 2; + getitem StrengthPotion, 2; + getitem Bread, 4; + } else if (.@q > 75) { + mesq l("Good, knowing the world lore is important."); + getitem HastePotion, 1; + getitem StrengthPotion, 1; + getitem Bread, 4; + } else if (.@q > 50) { + mesq l("Good job."); + getitem HastePotion, 1; + getitem StrengthPotion, 1; + getitem Bread, 2; + } else if (.@q > 25) { + mesq l("Well, that was bad, but at least you know a bit from story."); + getitem Bread, 2; + } else if (.@q > 0) { + mesq l("Terrible. You know almost nothing from world lore..."); + getitem Bread, 1; + } else { + mesq l("You really should read the dialogs."); + } + // If you got a negative value, this will default to 1. getexp .@q*BaseLevel, .@q*JobLevel; setq3 Q_NivalisLibday, 9999; close; |