diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-22 01:04:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-22 01:04:02 +0300 |
commit | 46008a8737f7138952d15263522db3685ec092a7 (patch) | |
tree | 11c7c6549953e1ee88f2bd961037e04ecb0758a2 /npc/test | |
parent | cb0f6a606a0799a4276f19786d62a274fe033280 (diff) | |
download | serverdata-46008a8737f7138952d15263522db3685ec092a7.tar.gz serverdata-46008a8737f7138952d15263522db3685ec092a7.tar.bz2 serverdata-46008a8737f7138952d15263522db3685ec092a7.tar.xz serverdata-46008a8737f7138952d15263522db3685ec092a7.zip |
Add refine demo code on test map.
Diffstat (limited to 'npc/test')
-rw-r--r-- | npc/test/npc1.txt | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/npc/test/npc1.txt b/npc/test/npc1.txt index f2471a63..34569330 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")) + switch (select("show area:map:pc:change npc direction:quest test:cart:refine")) { case 1: areatest; @@ -119,6 +119,27 @@ L_Start: } } break; + case 7: + .@item = -1; + while(1) + { + switch (select("set item:refine +1:refine -1:refine fail")) + { + case 1: + requestitemindex .@item; + mes "Item index selected: " + str(.@item); + break; + case 2: + successrefindex .@item, 1; + break; + case 3: + downrefindex .@item, 1; + break; + case 4: + failedrefindex .@item; + break; + } + } } close; |