summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-13 10:12:04 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-13 10:12:04 -0200
commitf40153c93a300bdb1d9ed3b2b91f7c53ecaced49 (patch)
tree2914d77c729ad3b5fc20b5ae26e666b58d845060
parentc34ee3ffc06d612c05eaece202de84244716d0bb (diff)
downloadserverdata-f40153c93a300bdb1d9ed3b2b91f7c53ecaced49.tar.gz
serverdata-f40153c93a300bdb1d9ed3b2b91f7c53ecaced49.tar.bz2
serverdata-f40153c93a300bdb1d9ed3b2b91f7c53ecaced49.tar.xz
serverdata-f40153c93a300bdb1d9ed3b2b91f7c53ecaced49.zip
Lua, at Tulimshar's townhall, give GMs their sets. (Also fixes itemdb)
-rw-r--r--db/re/item_db.conf12
-rw-r--r--npc/003-2/_import.txt1
-rw-r--r--npc/003-2/estard.txt2
-rw-r--r--npc/003-2/lua.txt47
4 files changed, 59 insertions, 3 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 1a9ce761f..504fe6418 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -8164,7 +8164,11 @@ item_db: (
Refine: false
ViewSprite: 1322
BindOnEquip: false
- BuyingStore: true
+ BuyingStore: false
+ Trade: {
+ nodrop: true
+ noselltonpc: true
+ }
Delay: 0
Sprite: 0
},
@@ -10408,7 +10412,11 @@ item_db: (
Refine: false
ViewSprite: 2933
BindOnEquip: false
- BuyingStore: true
+ BuyingStore: false
+ Trade: {
+ nodrop: true
+ noselltonpc: true
+ }
Delay: 0
Sprite: 0
},
diff --git a/npc/003-2/_import.txt b/npc/003-2/_import.txt
index d92ef5d5d..00c39635c 100644
--- a/npc/003-2/_import.txt
+++ b/npc/003-2/_import.txt
@@ -2,4 +2,5 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/003-2/_warps.txt",
"npc/003-2/estard.txt",
+"npc/003-2/lua.txt",
"npc/003-2/mapflags.txt",
diff --git a/npc/003-2/estard.txt b/npc/003-2/estard.txt
index 6e668282c..ebaf9d81d 100644
--- a/npc/003-2/estard.txt
+++ b/npc/003-2/estard.txt
@@ -120,6 +120,6 @@
OnInit:
.sex = G_MALE;
- .distance = 3;
+ .distance = 4;
end;
}
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;
+}