summaryrefslogtreecommitdiff
path: root/npc/003-1/eistein.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-04-30 07:16:40 +0000
committerSaulc <lucashelaine14@gmail.com>2018-04-30 07:16:40 +0000
commit30e46a524467153a148e7bf1150d63521c27dcf6 (patch)
treee61100b78a3261da96a3c0d8f19d40a50279301c /npc/003-1/eistein.txt
parent4ff65ca2aa4181457e3126044de01f553a96d73f (diff)
downloadserverdata-30e46a524467153a148e7bf1150d63521c27dcf6.tar.gz
serverdata-30e46a524467153a148e7bf1150d63521c27dcf6.tar.bz2
serverdata-30e46a524467153a148e7bf1150d63521c27dcf6.tar.xz
serverdata-30e46a524467153a148e7bf1150d63521c27dcf6.zip
idk if it work. i will test it on test server
Diffstat (limited to 'npc/003-1/eistein.txt')
-rw-r--r--npc/003-1/eistein.txt93
1 files changed, 93 insertions, 0 deletions
diff --git a/npc/003-1/eistein.txt b/npc/003-1/eistein.txt
new file mode 100644
index 000000000..fc8765571
--- /dev/null
+++ b/npc/003-1/eistein.txt
@@ -0,0 +1,93 @@
+// TMW2 scripts.
+// Author:
+// Saulc
+// Variables:
+// 0 CandorQuest_Eistein
+// Values:
+// Eistein reward for free player over level 50 by a graduation cap,
+
+
+
+
+003-1,91,144,0 script Eistein NPC_FEMALE,{
+
+ .reward = GraduationCap;
+
+ function quest_completed{
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("I hope you are proud of your @@ ",getitemlink(.reward));
+ close;
+ }
+
+ function quest_open {
+ if(BaseLevel >= 40)
+ {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Congrats you passed the cap of the level 50! Here is your @@, you deserve it.",getitemlink(.reward));
+ getitem .reward,1;
+ setq TulimsharQuest_Eistein, 1;
+ close;
+ }
+ else
+ {
+ speech S_FIRST_BLANK_LINE,
+ l("i can't reward a weak adventurer like you, Come back later.");
+ close;
+ }
+ }
+
+ function quest_started {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Oh, Welcome then.");
+ speech S_LAST_NEXT,
+ l("I'm Eistein, I reward brave adventurers.");
+ do
+ {
+ select
+ l("Interessing can I be rewarded for my help?"),
+ menuaction(l("Quit"));
+
+ switch (@menu)
+ {
+ case 1:
+ quest_open;
+ break;
+ }
+ } while (@menu != 2);
+ }
+
+ do
+ {
+ .@chest = getq(TulimsharQuest_Eistein);
+ if (.@chest == 1)
+ goto quest_completed;
+ select
+ rif(.@chest == 0,
+ l("Hello, can I be rewarded for my help?")),
+ menuaction(l("Quit"));
+
+ switch (@menu)
+ {
+ case 1:
+ quest_started;
+ break;
+ }
+ } while (@menu != 2);
+
+ closedialog;
+ goodbye;
+ close;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TerraniteArmor);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, RaidTrousers);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
+ setunitdata(.@npcId, UDT_WEAPON, CandorBoots); // Boots
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 19);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 16);
+
+ .sex = G_FEMALE;
+ .distance = 5;
+ end;
+}