summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-30 10:28:37 -0200
committerJesusaves <cpntb1@ymail.com>2018-10-30 10:28:37 -0200
commit6fcde890b64bba6c9fd02af397154b3e18a05cda (patch)
tree5974e4f4f33284bac6a3abab8d8d0fba49a02e8d /npc
parent75c7556551fbdae958dadfd4ef0f8fba546c1f02 (diff)
downloadserverdata-6fcde890b64bba6c9fd02af397154b3e18a05cda.tar.gz
serverdata-6fcde890b64bba6c9fd02af397154b3e18a05cda.tar.bz2
serverdata-6fcde890b64bba6c9fd02af397154b3e18a05cda.tar.xz
serverdata-6fcde890b64bba6c9fd02af397154b3e18a05cda.zip
Rewards for Andrei Sakar Quizz
Diffstat (limited to 'npc')
-rw-r--r--npc/012-1/andrei.txt36
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;