JawS Posted October 13, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 37 Reputation: 2 Joined: 07/20/12 Last Seen: April 20, 2016 Share Posted October 13, 2012 Вообщем в этой теме http://rathena.org/board/topic/64394-%E2%9C%B0-euphys-scripts-%E2%9C%B0/ нашел скрипт "Квест магазин", но никак не получается сделать дубликат, то есть при создании еще одного такого нпц все вещи что были у первого есть и у второго, типа они взаимосвязаны. Почитав дальше тему, нашел якобы решение Then at the beginning of each script, delete this section: if(.Shops$ != "") set .@i,1; else { set .@menu$,""; for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) set .@menu$, .@menu$+.Shops$[.@i]+":"; set .@i, select(.@menu$); } dispbottom "Select one item at a time."; callshop "qshop"+.@i,1; npcshopattach "qshop"+.@i; And write something like... callshop "<qshop1, qshop2, etc. (in order)>",1; npcshopattach "<same>" Но все равно безуспешно (или я что не так сделал), вообщем покажите как должно выглядеть начало скрипта, именно по верхнему способу. Заранее спасибо. Quote Link to comment Share on other sites More sharing options...
Benefaktor Posted October 13, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 72 Reputation: 0 Joined: 07/19/12 Last Seen: November 8, 2012 Share Posted October 13, 2012 Начало: - script CustomShop -1,{ Конец prontera,163,187,4 duplicate(CustomShop) CustomShop#1 811 rachel,135,116,4 duplicate(CustomShop) CustomShop#2 811 alberta,28,240,4 duplicate(CustomShop) CustomShop#3 811 Quote Link to comment Share on other sites More sharing options...
JawS Posted October 13, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 37 Reputation: 2 Joined: 07/20/12 Last Seen: April 20, 2016 Author Share Posted October 13, 2012 (edited) Вы видимо не поняли, вообщем вот сам скрипт http://pastebin.com/raw.php?i=xADBcWR7 но при создании дубликата ассортимент 1 нпц есть и у 2 и наоборот. В теме этого скрипта, автор скрипта говорит чтобы, сделать дубликат не зависящий друг от друга надо удалить if(.Shops$ != "") set .@i,1; else { set .@menu$,""; for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) set .@menu$, .@menu$+.Shops$[.@i]+":"; set .@i, select(.@menu$); } dispbottom "Select one item at a time."; callshop "qshop"+.@i,1; npcshopattach "qshop"+.@i; и добавить что то вроде callshop "<qshop1, qshop2, etc. (in order)>",1; npcshopattach "<same>" Но как именно сделать я не понял. Edited October 13, 2012 by KupuJLJL25 Quote Link to comment Share on other sites More sharing options...
Benefaktor Posted October 13, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 72 Reputation: 0 Joined: 07/19/12 Last Seen: November 8, 2012 Share Posted October 13, 2012 Хм,неизвестный мне скрипт...я советую сделать 5+ блокнотов с магазинами и расставить там разные названия и айд шмоток. Quote Link to comment Share on other sites More sharing options...
JawS Posted October 13, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 37 Reputation: 2 Joined: 07/20/12 Last Seen: April 20, 2016 Author Share Posted October 13, 2012 Проблему решил) Quote Link to comment Share on other sites More sharing options...
Krivedkin Posted October 14, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 89 Reputation: 1 Joined: 01/09/12 Last Seen: November 29, 2022 Share Posted October 14, 2012 Проблему решил) Решил - пиши, ты не один. Quote Link to comment Share on other sites More sharing options...
JawS Posted October 14, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 37 Reputation: 2 Joined: 07/20/12 Last Seen: April 20, 2016 Author Share Posted October 14, 2012 Okay))) Вообщем открываете сам скрипт и ищете "qshop" и все меняете например на qqhop. Так же где сами магазины (В самом низу) указать qqhop1 qqhop2 qqhop3 Тем самым создаются нпц не зависящие друг от друга. Вот и все:DD Quote Link to comment Share on other sites More sharing options...
Benefaktor Posted October 16, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 72 Reputation: 0 Joined: 07/19/12 Last Seen: November 8, 2012 Share Posted October 16, 2012 Так я же в 1 примере так и указал. Quote Link to comment Share on other sites More sharing options...
JawS Posted October 16, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 37 Reputation: 2 Joined: 07/20/12 Last Seen: April 20, 2016 Author Share Posted October 16, 2012 Там не только в дубликатах и начале Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.