Forum > Serverside Modding
Trinity core gossip
(1/3) > >>
Steff:
Is there a only DB driven way to creat NPC gossip. I want to integrate chats like in offline RPGs (Skyrim) where you find out more about the world.And for this I want to integrate an gossip editor into my genesis editor.
Garthog:
Yes there is, but you have to code it server side. Nothing too hard, I guess there are already existing example on trinitycore project.
Steff:
I read once that there is an gossip plugin that ust read out DB so you dont need to do scrpiting stuff.
elarose:
Which gossip do you mean steph? Simple click on npc and he has 'talk'? Thats simple. Go to 'gossip menu' in your database, put in a page text and coresponding id. (can be anything unused, aim higher with trinitys constant updates) =)
Now with those 2 little lines done. Go to 'npc_text' and put in whatever you want it to say on 'talking' to him.
Finally just go to creature_template entry and put the id you used in the first field of 'gossip_menu' into the 'gossip_menu_id' of the npc you want to display that.
Now want some 'click me ' options, leading to another page? Simple.
Enter the gossip_menu_option. Simply make the id the same as the above 'gossip_menu' id you made and point the 'action menu id' of it, to the next page you want displayed.
You can hook smart ai in using the 'on gossip function' here also.
Ie:if someone is bored enough to click thru all these options and hit the one I set smartai to summon the lich king upon them..they will die fast and not enjoy the gossip menu i just made
^Easy to just use the same id and text id numbers. (Gossip_menu)
^Here we use the same npc text id as the gossip menu field, and put in the text we want.(npc_text)
^Here we put the gossip menu to the npc. (creature_template)
^Here we use the gossip menu id so the option is on -that menu- but then we point it to the next menu we would want. (gossip menu option)
^sai in use. No need for c++ Sai is to make it so user friendly. Which is it. =)
^What it looks like on npc. And of course the sai options set are self explanatory. (For those who havent done sai. Its set so when the option on the gossip menu is clicked it opens a door.)
=)
Tool in last screenshot is event horizon. A java sai tool which has alot of versatility.
Note:npc will have to be flagged at least 1 (gossip) or a combination of additional flags to display this. And each additional page shall be handled the same way as the first. Using a gossip_menu entry.
Gossip_menu_option is merely the -link too- with of course the text, as to what the clickable option will say.
Also its all purely database.
Want to use this in one of your fab guides? go right on ahead.
Peace- Ela
Steff:
I want to include this in my genesis editor. Thanks will test this out soon.
Navigation
[0] Message Index
[#] Next page
|