summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-09 02:50:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-09 02:50:23 +0300
commit4739a02ab2367b219fb9d44740d751f7caaeb921 (patch)
tree10f035d4662f93a523e6eeaa86e1e7faed7bf1cc
parent907559c3af240e3dc1ce49b8363c3c6c79b3e418 (diff)
downloadserverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.gz
serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.bz2
serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.xz
serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.zip
Add basic equipment code to npc1 in test map.
-rw-r--r--npc/test/npc1.txt29
1 files changed, 28 insertions, 1 deletions
diff --git a/npc/test/npc1.txt b/npc/test/npc1.txt
index aedbe634..a9d15958 100644
--- a/npc/test/npc1.txt
+++ b/npc/test/npc1.txt
@@ -27,7 +27,7 @@ test,10,10,0 script npc1 NPC_TEST1,3,3,{
}
L_Start:
- switch (select("show area", "map", "pc", "change npc direction", "quest test", "cart", "items", "chat", "wall", "craft", "hashtable", "instance", "mercenary"))
+ switch (select("show area", "map", "pc", "change npc direction", "quest test", "cart", "items", "chat", "wall", "craft", "hashtable", "instance", "mercenary", "npc"))
{
case 1:
areatest;
@@ -600,6 +600,33 @@ L_Start:
}
}
break;
+ case 14:
+ while(1)
+ {
+ switch (select("set hair 1", "set hair 0", "equip vneck", "unequip vneck", "back"))
+ {
+ case 1:
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 5);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 17);
+ break;
+ case 2:
+ .@npcId = getnpcid(0, "npc4");
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 0);
+ break;
+ case 3:
+ .@npcId = getnpcid(0, "npc4");
+ setunitdata(.@npcId, UDT_HEADTOP, 1301);
+ break;
+ case 4:
+ .@npcId = getnpcid(0, "npc4");
+ setunitdata(.@npcId, UDT_HEADTOP, 0);
+ break;
+ case 5:
+ goto L_Start;
+ break;
+ }
+ }
+ break;
}
close;