From f40153c93a300bdb1d9ed3b2b91f7c53ecaced49 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Tue, 13 Feb 2018 10:12:04 -0200 Subject: Lua, at Tulimshar's townhall, give GMs their sets. (Also fixes itemdb) --- npc/003-2/lua.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 npc/003-2/lua.txt (limited to 'npc/003-2/lua.txt') diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt new file mode 100644 index 000000000..ad8cca5e4 --- /dev/null +++ b/npc/003-2/lua.txt @@ -0,0 +1,47 @@ +// TMW2 Scripts. +// Author: +// Jesusalva + +003-2,38,34,0 script Lua#003-2 NPC_FEMALE,{ + mesn; + mesq l("Hello, I act on the Alliance's behalf."); + mes ""; + if (getgmlevel()) goto L_AdminMenu; + menu + l("Ok, see you later."),L_Close, + l("What alliance?"),-; + mes ""; + mesn; + mesq l("The Alliance which was formed after the war!"); + close; + +L_AdminMenu: + menu + l("I'm done here, thanks."), L_Close, + l("I need a GM set, please!"), L_GMItems; + +L_GMItems: + getnameditem "GMRobe", strcharinfo(0); + getnameditem "GMCap", strcharinfo(0); + mes ""; + mesn; + mesq lg("Here they are, miss.", "Here they are, mister."); + mes ""; + goto L_AdminMenu; + +L_Close: + close; + +OnInit: + .@npcId = getnpcid(0, .name$); + setunitdata(.@npcId, UDT_HEADTOP, 1322); // Dress + setunitdata(.@npcId, UDT_HEADMIDDLE, 2204); // Not needed + setunitdata(.@npcId, UDT_HEADBOTTOM, 1800); // Shoes + setunitdata(.@npcId, UDT_WEAPON, 3501); + setunitdata(.@npcId, UDT_HAIRSTYLE, 12); + setunitdata(.@npcId, UDT_HAIRCOLOR, 5); + + .sex = G_FEMALE; + .distance = 4; + end; +} -- cgit v1.2.3-60-g2f50