• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[Trinity] How to edit npc_text

Synth

Exalted Member
Hello Emudevs,today i'm going to share how to edit your npc_text made by xXDeathXx.

Tutorial info:
Step 1:
●Create your NPC that you will use. (If you have one made, skip this step) - Don't have an NPC Creator? NPC Creator - Mediafire

●I've made one for this guide for you to use:
-- NPC Creature
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (987658, 0, 0, 0, 0, 0, 25338, 0, 0, 0, 'Text Creature', 'Emudevs', '', 0, 1, 1, 0, 35, 35, 129, 1, 1.14286, 0.4, 1, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, '', 1);

Step 2:
●After your NPC is created you will noticed that the npc_text is set to:
Greetings, $N. ($N is the targets name)
●The reason it is displaying that is by default. You can modify the gossip ID during the creation of the NPC, but for this tutorial i didn't.

●Open your database via Hedisql / Navicat
●Navigate to World < Creature_template

Step 3:
●Locate your Npc's ID, if you used mine it would be 987658.
●Locate Gossip_menu_id which is located in column 14. Once you find the correct column you should see the value = 0. For this tutorial I will be making the Gossip_menu_Id 63144, you may use your own ID if you want, but the most important thing is to remember what id you put for the value, because you will be needing it in the next step.

Step 4:
●Navigate to World < Gossip_Menu
●Once you've located Gossip_menu click the
scaled.php
to create a new row. A new row should appear with 2 non-valued columns which are Entry & Text-ID Inside the Entry column put your Gossip_menu_id you entered on your npc, for this tutorial I used 63144 as mine. For Text_Id you will put an Id of your choosing, for this tutorial I'm going to use 631445.

Step 5:
●Navigate to World < NPC_Text
●Once you've located NPC_Text click the
scaled.php
to create a new row. A new row should appear with 82 columns. For this tutorial we will only be editing 2 columns. The columns you will be editing are ID & Text0_1. Inside the ID column put the Id you entered for your gossip_menu Text ID, for this tutorial I used 631445. Inside the Text0_1 column put the text you would like the NPC to display instead of:
Greetings, $N.

●For this tutorial I'm going to put "Welcome to My world $n. Please be wear of yourself around these beasts."
●After you're done writing your own message, CTR + Enter to save, and then Restart your World server.
●Also, make sure you delete your WoW Cache before the server is back. If not you will not see the new message in your NPC.

Step 6: (Symbols Explanations)
●$N - Name of player
●$C - Class of player
●$R - Race of player
●$G - Gender of player (Man/Woman)

If you have any questions feel free to ask me.

Thank you!
Best regards,
Synth !
 
Last edited:

Rochet2

Moderator / Eluna Dev
Could add all the $n $r $c etc explanations. Also mention what the other npc_text fields mean.
;3
 

Synth

Exalted Member
Also mention what the other npc_text fields mean.
;3
They can google it i'm just telling how to edit the npc_text. not what colums mean on npc_text...

Explanations of Symbols Updated.
 
Last edited:

kris23

Enthusiast
awesome guide, I was wondering how would I go about creating multiple lines for a gossip? say I want him to say an opening line which then you click and it opens to another menu with another option?

Ive been trying all day/night to get it to work, I can create a single gossip line, like your guide showed and I got it to work, but when it comes down to going further then that im stuck, i tried gossip_menu_option and created a line in there but it is not showing up in-game, any suggestions?
 

Tommy

Founder
Are you talking about multiple menu options or different, dynamic 'npc_text' when going to different menus?
 

kris23

Enthusiast
Are you talking about multiple menu options or different, dynamic 'npc_text' when going to different menus?

Dynamic 'npc_text' when clicking to the next menu, example, like he says what are you looking at? and you click and he goes onto saying something else in the menu,

idk if its possible but is he able to say something at the top of the page and then you have like two options to click and when you click it moves you to the next menu?
 

Tommy

Founder
It actually explains that here: http://collab.kpsn.org/display/tc/Gossip+menu+option+tc2

menu_id is the ID from gossip_menu that is associated with an npc_text entry. So, changing the 'menu_id' to an entry inside of gossip_menu would change that for you.

Example:

menu_id 421 is being used in gossip_menu_option:

nl8k.png


'entry' 421 is being taken from gossip_menu and that links to 918 which will display "Which profession trainer are you looking for?" at the top of the gossip window. So, linking your 'menu_id' to an entry in gossip_menu will change that for you.
 
Top