Cloze
August 19, 2012, 4:01pm
1
hi
as you see in the title i want to make a npc that is the multi vendor
you can see what i mean here :
i found the script in here : http://www.ac-web.org/forums/showthread.php?t=138815
but there is a lot of core editing and i think it made some problems as the SSL problems .
i try’d it before . it crap !
pretend that you have a npc and when you click on it you have this gossips
One hand weapon
two hand weapon
range weapon
when you click on one hand weapon you see all the one hand weapon that you added to the vendor in someway
you click on two hand you see the two hands that you added before
and more .
i appreciated any guide or help .
thanks .
Athena
August 20, 2012, 12:40pm
3
This should go to custom code. Not in help and support.
Also, do a little search on the foruns. I think there’s already a custom npc that do that… you only have to add the tree of items to it.
Cloze
August 20, 2012, 1:34pm
4
i search all the forums , here , ac web and more more more
the only one is that i mentioned in the first post is what i want . ( but its broken )
if you know somewhere i really glad to have link .
thanks .
Athena
August 20, 2012, 6:29pm
5
Maybe it needs updating to work with the actual revisions, but here is it!
Cloze
August 21, 2012, 6:43am
6
i saw that npc before , its not what i want
actually i wrote one of those by my self .
but at the end i hove no idea about multi vendor npc .
for example :
i think the best idea is create 3 sub npc and 1 master npc
the master npc have 3 gossip that when you click on it , it shows the vendor of the 3 other npcs.
for example for glyphs :
npc1 : Rogue Glyphs
npc2 : Mage Glyphs
npc3 : Priest Glyphs
MasterNpc Gossip Menu :
1- Rogue Glyph
2- Mage Glyph
3- Priest Glyph
and when you click on the gossips it shows the vendor of one of the npc’s .
i tryed this before , but as the
player->GetSession()->SendListInventory(m_creature->GetGUID());
need the npc guid for showing the vendor , i got failed
Athena
August 21, 2012, 6:40pm
7
The link i showed you can do what you want (and also many other things), just see how it works and make it happen.
Cloze
August 23, 2012, 9:58am
8
srsly i read that script 3 times and i cant find where is that vendor
it just mentioned in the titles special vendor !
but there is nothing about the vendor in that script .
currect me if im wrong
thanks .
Cloze
August 27, 2012, 3:37pm
9
still stuck in this thing
I’m working on getting that older Multi Vendor Gossip NPC script to work, but I just can’t figure it out, and it’s out dated. Is there a more simple solution to code a NPC that has list of options, example below:
Example:
WEAPONS NPC:
Once you click on the NPC you have a list of weapon types such as:
1H Swords
1H Axes
2H Swords
2H Axes
Daggers
ect…
and when you click on one of those options it opens up a Vendor in that spot that is already made.
If I could get some help on this or even a script that does it already that is working with TrinityCore. I would really appreciate it,
Thanks!
Cloze
October 3, 2012, 3:22pm
11
thats what i wanted before /emoticons/default_smile.png
Did you ever get it working or find a working more updated script Cloze?
Cloze
October 4, 2012, 9:04am
13
as i mentioned in the first post , there is only one option for doing this , but its ***** up the core … !
lot of changes in the core .
it must be the easier way to do this .
as i mentioned in the first post , there is only one option for doing this , but its ***** up the core … !
lot of changes in the core .
it must be the easier way to do this .
I’m sure there is an easier way to do this. I would work on one if I knew more C++, I’m learning quickly, but I still have a long ways to go.
Sorry haven’t read the whole thread.
What is the problem exactly ?
Multiple vendors should be fairly easy to do inside a single gossip it does require another creature though.
You could make said creature (vendor) invisible then have the gossip get that creatures guid then send the inventory list.
Creature * npc_Multi_vendor = player->FindNearestCreature(10000, 10.0f, true);
if(!npc_Multi_vendor)
return true;
player->GetSession()->SendListInventory(npc_Multi_vendor ->GetGUID());
Cloze
October 6, 2012, 6:28pm
17
Sorry haven’t read the whole thread.
What is the problem exactly ?
Multiple vendors should be fairly easy to do inside a single gossip it does require another creature though.
You could make said creature (vendor) invisible then have the gossip get that creatures guid then send the inventory list.
Creature * npc_Multi_vendor = player->FindNearestCreature(10000, 10.0f, true);
if(!npc_Multi_vendor)
return;
player->GetSession()->SendListInventory(npc_Multi_vendor ->GetGUID());
thats the idea , but not the solution /emoticons/default_smile.png
Its a work around for sure, can’t really think of another way.