Page 1 of 1

Change items to vendor NPC

Posted: Mon Aug 22, 2016 12:27 pm
by kirionet
Hi guys,
i just started a private server for me and my friends.
Because we are a low number of chars on the server i added some equip to the standard vendor NPC.
Almost all NPC's worked well but just one in Sand'oria i got a problem.

The script if this:
local stock = {0x4047,4309,1, --Baselard
0x4094,16934,1, --Gladius
0x40a1,21067,1, --Broadsword
0x40c0,35769,1, --Hunting Sword
0x408c,13406,1, --Fleuret

0x4001,129,2, --Cesti
0x4042,1827,2, --Dagger
0x4098,7128,2, --Iron Sword
0x40b6,8294,2, --Longsword

0x4040,140,3, --Bronze Dagger
0x4041,837,3, --Brass Dagger
0x4093,3523,3, --Brass Xiphos
0x4097,241,3, --Bronze Sword
0x40b5,1674,3} --Spatha
0x40b5, is the Hex code of a weapon/armor
1674, is the price
What exactly is the last number?? The NPC's in Sand'oria are the only having the last number different, then i don't know how to set it.
The other npc's have the same final number in any item in the list.

Thank you so much

Re: Change items to vendor NPC

Posted: Mon Aug 22, 2016 3:28 pm
by nasomi
That vendor changes their stock based on the nation rankings. If the nation is in 1st place, they will have items 1, 2, 3. If they're in 2nd, they'll only have items 2, 3. And 3rd, naturally, htey'll only have items with 3 at the end.

Re: Change items to vendor NPC

Posted: Mon Aug 22, 2016 4:42 pm
by kirionet
Oh nice!
Thank you so much!