diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-11-09 02:50:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-11-09 02:50:23 +0300 |
commit | 4739a02ab2367b219fb9d44740d751f7caaeb921 (patch) | |
tree | 10f035d4662f93a523e6eeaa86e1e7faed7bf1cc /npc | |
parent | 907559c3af240e3dc1ce49b8363c3c6c79b3e418 (diff) | |
download | serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.gz serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.bz2 serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.tar.xz serverdata-4739a02ab2367b219fb9d44740d751f7caaeb921.zip |
Add basic equipment code to npc1 in test map.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/test/npc1.txt | 29 |
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; |