This was a test to get 5 shops that sells the same thing but with different prices, but when testing, all of them have the same sell value (but the chat room is different).
Is there a way to make each duplicate have a different item list? Thanks in advance.
Hello everybody,
While doing some tests with the trader npc, I noticed that when I duplicate my trader, if I change the item list of one, all of them are affected.
For example:
- trader MyNpc#id -1,{OnInit: .@i = 400 + rand(0,10); sellitem Red_Potion, .@i; waitingroom "id: " + strnpcinfo(2) + " ; " + .@i, 0;end;}prontera,164,170,4 duplicate(MyNpc#id) MyNpc#1 101prontera,164,168,4 duplicate(MyNpc#id) MyNpc#2 101prontera,164,166,4 duplicate(MyNpc#id) MyNpc#3 101prontera,164,164,4 duplicate(MyNpc#id) MyNpc#4 101prontera,164,162,4 duplicate(MyNpc#id) MyNpc#5 101This was a test to get 5 shops that sells the same thing but with different prices, but when testing, all of them have the same sell value (but the chat room is different).
Is there a way to make each duplicate have a different item list? Thanks in advance.
Share this post
Link to post
Share on other sites