Page 1 of 1

Vendor NPC with menu

Posted: Tue Jun 06, 2017 3:02 am
by kirionet
Hi, i wanted to create a vendor npc to sell the af to players.
Because there are too much items, i was trying to make a "menu" like the points seller.
I can't find a way.. someone can help me?
Thank you so much

Re: Vendor NPC with menu

Posted: Tue Jun 06, 2017 6:28 pm
by whasf

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 5:50 am
by kirionet
Thank you for that link, but don't explain how to make a "menu"
i already made a AF1 and AF2 vendor, and another that converts your af2 to af2+1
i just wanted to separate the various job

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 7:38 am
by whasf
Look at a NPC script that does it already! :)

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 10:51 am
by kirionet
Yeah of course was the 1st thing i did! :D

Usually any Cruor, Bayld, CP Vendor start a "event" or recall some variables from conquest.lua etc...

i passed many time wandering around ffxi looking for a working Vendor NPC with a menu not related to the points... but i don't have found it..

PS.
i inserted any artifact armor in a vendor but seems there's a limit to item it can sell.

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 11:12 am
by whasf
What about the vendors in Port Bastok, or Windurst Walls? Plenty of NPCs around that sell stuff, maps, etc.
If you can't sell the item (in a normal shop fashion), make the player trade something to the NPC for it (gil, item, etc).

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 12:11 pm
by kirionet
Ok probably i didn't explained myself as well :D

I already created a vendor and i placed on it all Relic Armor https://ibb.co/bPDvJF
The relic armor are too much for a vendor and the list is truncated.

So i wanted to create a sub-menu to split the armor set like in the Conquest NPC like this: https://ibb.co/ei6nXa

Any NPC with a "menu" is related to external and complex script.
I found 2 NPC with a menu but they just have startEvent(0x...)

So i really don't know how to split the list in 2 pages or in sub-menu

Someone know how to do that??

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 2:58 pm
by whasf
kirionet wrote:Ok probably i didn't explained myself as well :D

I already created a vendor and i placed on it all Relic Armor https://ibb.co/bPDvJF
The relic armor are too much for a vendor and the list is truncated.

So i wanted to create a sub-menu to split the armor set like in the Conquest NPC like this: https://ibb.co/ei6nXa

Any NPC with a "menu" is related to external and complex script.
I found 2 NPC with a menu but they just have startEvent(0x...)

So i really don't know how to split the list in 2 pages or in sub-menu

Someone know how to do that??
You can't create a NPC like that because the menu is handled client side. The server just tells the client what to populate it with. You would have to modify an existing NPC, or split the list between multiple NPCs

Re: Vendor NPC with menu

Posted: Wed Jun 07, 2017 3:37 pm
by kirionet
oh ok i see..
There's nothing to do to sell more items in a simple vendor??
Like change page?