Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2020, 04:07 PM
Bytebait
Sarnak
 
Join Date: Oct 2014
Location: Colorado
Posts: 74
Default Where do some Merch conversations come from?

Tratlan Matrick in PoK for example when interacted with says "Hello there, Bytebait. How about a nice Fuzzy Fashion?"

Tratlan_Matrick.lua
Code:
-- poknowledge\Tratlan_Matrick.lua NPCID 202095 

function event_say(e)
		if(e.message:findi("hail")) then
			e.self:Say("Greetings, traveler! There are many wonderful discoveries to be made and sights to be seen here in the city of New Tanaan. I myself am a tailor by trade and have seen some wonderful new tailored products during my stay here. If you are an aspiring tailor feel free to browse my wares for any purchases you may with to make.'");
		end
end
Where is the conversation coming from if it's not from his lua script?
Reply With Quote
  #2  
Old 05-06-2020, 07:00 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,447
Default

The handler for the merchant request in the source code. It sends one of these greetings if the merchant has items for sale via Message_StringID, which references predefined client strings in eqstr_us.txt:

1145 Hello there, %3. How about a nice %4?
1146 Greetings, %3. You look like you could use a %4.
1147 Hi there %3, just browsing? Have you seen the %4 I just got in?
1148 Welcome to my shop, %3. You would probably find a %4 handy.

If the merchant is empty, it just says:
1144 Welcome to my shop, %3.

https://github.com/EQEmu/Server/blob...ocess.cpp#L917
Reply With Quote
  #3  
Old 05-07-2020, 12:17 AM
Bytebait
Sarnak
 
Join Date: Oct 2014
Location: Colorado
Posts: 74
Default

Perfect. Thank you!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:22 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3