Vendor NPC with menu

Post Reply
kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Vendor NPC with menu

Post by kirionet » Tue Jun 06, 2017 3:02 am

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

User avatar
whasf
Site Admin
Posts: 1294
Joined: Thu Jul 19, 2012 9:11 pm

Re: Vendor NPC with menu

Post by whasf » Tue Jun 06, 2017 6:28 pm

-- Whasf

kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Re: Vendor NPC with menu

Post by kirionet » Wed Jun 07, 2017 5:50 am

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

User avatar
whasf
Site Admin
Posts: 1294
Joined: Thu Jul 19, 2012 9:11 pm

Re: Vendor NPC with menu

Post by whasf » Wed Jun 07, 2017 7:38 am

Look at a NPC script that does it already! :)
-- Whasf

kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Re: Vendor NPC with menu

Post by kirionet » Wed Jun 07, 2017 10:51 am

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.

User avatar
whasf
Site Admin
Posts: 1294
Joined: Thu Jul 19, 2012 9:11 pm

Re: Vendor NPC with menu

Post by whasf » Wed Jun 07, 2017 11:12 am

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).
-- Whasf

kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Re: Vendor NPC with menu

Post by kirionet » Wed Jun 07, 2017 12:11 pm

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??

User avatar
whasf
Site Admin
Posts: 1294
Joined: Thu Jul 19, 2012 9:11 pm

Re: Vendor NPC with menu

Post by whasf » Wed Jun 07, 2017 2:58 pm

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
-- Whasf

kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Re: Vendor NPC with menu

Post by kirionet » Wed Jun 07, 2017 3:37 pm

oh ok i see..
There's nothing to do to sell more items in a simple vendor??
Like change page?

Post Reply