summaryrefslogtreecommitdiff
path: root/npc/003-1/swezanne.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-22 11:12:08 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-22 11:12:08 -0300
commite9b61fa762483ad113bfbe821aff171738d02513 (patch)
tree132dc22190e5e20ca6e74a9ea122e870ba9981e3 /npc/003-1/swezanne.txt
parentf80f811680d07c3c95321f5f881708380b314be1 (diff)
downloadserverdata-e9b61fa762483ad113bfbe821aff171738d02513.tar.gz
serverdata-e9b61fa762483ad113bfbe821aff171738d02513.tar.bz2
serverdata-e9b61fa762483ad113bfbe821aff171738d02513.tar.xz
serverdata-e9b61fa762483ad113bfbe821aff171738d02513.zip
Rewrite Lua. Swezanne will be holding the MOST HEROIC person for a while.
I'll rewrite her and add her quest later.
Diffstat (limited to 'npc/003-1/swezanne.txt')
-rw-r--r--npc/003-1/swezanne.txt33
1 files changed, 30 insertions, 3 deletions
diff --git a/npc/003-1/swezanne.txt b/npc/003-1/swezanne.txt
index 84b745531..ca0798c85 100644
--- a/npc/003-1/swezanne.txt
+++ b/npc/003-1/swezanne.txt
@@ -1,13 +1,40 @@
// Author:
-// Saulc
+// Jesusalva
003-1,70,100,0 script Swezanne NPC_FEMALE,{
+ mesn;
+ mesq l("Hi.");
+ if ($MOST_HEROIC$ != "") goto L_Heroics;
+ close;
-hello;
+L_Heroics:
+ next;
+ mesn;
+ .@d=rand(1,6);
+ // This switch loop is temporaly broken.
+ switch (.@d) {
+ case 1:
+ .@deed$="protected our cities!";
+ case 2:
+ .@deed$="did great acts of bravery!";
+ case 3:
+ .@deed$="is just awesome!";
+ case 4:
+ .@deed$="killed a monster army single-handed!";
+ case 5:
+ .@deed$="proved their worth in battlefield!";
+ case 6:
+ .@deed$="impressed even the High Council!";
+ default:
+ .@deed$="is awesome like me!"; // Should be unreachable
+ }
+
+ mesq l("I hope to one day be like @@, who @@", $MOST_HEROIC$, .@deed$);
+ close;
OnInit:
- .@npcId = getnpcid(0, "Swezanne");
+ .@npcId = getnpcid(0, .name$);
//setunitdata(.@npcId, UDT_HEADTOP, 2929);
setunitdata(.@npcId, UDT_HEADMIDDLE, 1307);
setunitdata(.@npcId, UDT_HEADBOTTOM, 2207);