Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2012, 12:58 AM
helman
Sarnak
 
Join Date: Apr 2010
Location: Texas, Sweetwater
Posts: 69
Default

Ok i'm having a hard time adding responses. Like with below. After you hail him and say Information to hear more. This is my code. I have it like that and set in the right zone folder. but with it like that when i hail him My npc Says nothing to me. So how do i fix it so he will say things and work right? (talking to someone with no c++ experience.

Code:
sub EVENT_SAY {
    if($text=~/Hail/i) {
    quest::say("Welcom to The Forgotten Halls, %T. Please Let me Know if you want Some (information) about the halls.");
    
	sub EVENT_SAY {
	if($test=~/Information/i) {
	quest::say("These Halls use to be used by Taelosian pilgrims studing magic and the control granite. After a while it was open to adventures, Raiders, And Informents looking for a place to rest and continue there journeys or give information. 
	Because it was a grathing for adventures, Raiders, And Informents any evil people like Cazic Thul Wanted it Distoryed. Cause so The Taelosian Elders Had it sealed off. But that was years ago.
	This place was left behind in time, Untill The Rifts showed up all over Norath. I and my assistent was sent into one to see wher it led. We came out here, a place sealed by the elders. 
	We started to look around to see if we could find the source of the rifts. We did just that. We found a Huge Strang Crystal That was never recorded in our history books. 
	We did research and came to a conclusion. This stone was the sorce of the Rifts, and it dosn't seem to cause any harm to us. We also found out that only those that have a perpous to come here can pas through the Rifts and inter here.
	Ever one asks the same question, Yes this place is safe. Please Let me know if you want (locations) of the Merchants here and osther stuff.");
	
	sub EVENT_SAY {
	if($text=!/locations/i) {
	quest::say("this will come soon");
}

but with the following code he dose. The only problem is i can't get him to say my name not his. So is there a in-game command for geting a npc to target a player and say its name like %T.
Code:
sub EVENT_SAY {
    if($text=~/Hail/i) {
    quest::say("Welcom to The Forgotten Halls, %T. Please Let me Know if you want Some (information) about the halls.");
    }
}

Edit I got it working XDD. I just looked at a .pl for a npc from a other zone and used it as a reference.
Reply With Quote
  #2  
Old 01-16-2012, 01:55 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

This is completely untested but try this
Code:
sub EVENT_SAY {
	if($text=~/Hail/i) {
		quest::say("Welcome to The Forgotten Halls, $name. Please Let me Know if you want Some (information) about the halls.");
	}
	if($text=~/information/i) {
		quest::say("These Halls use to be used by Taelosian pilgrims studing magic and the control granite. After a while it was open to adventures, Raiders, And Informents looking for a place to rest and continue there journeys or give information. Because it was a grathing for adventures, Raiders, And Informents any evil people like Cazic Thul Wanted it Distoryed. Cause so The Taelosian Elders Had it sealed off. But that was years ago. This place was left behind in time, Untill The Rifts showed up all over Norath. I and my assistent was sent into one to see wher it led. We came out here, a place sealed by the elders. We started to look around to see if we could find the source of the rifts. We did just that. We found a Huge Strang Crystal That was never recorded in our history books. We did research and came to a conclusion. This stone was the sorce of the Rifts, and it dosn't seem to cause any harm to us.");
		quest::say("We also found out that only those that have a perpous to come here can pas through the Rifts and inter here. Everyone asks the same question, Yes this place is safe. Please Let me know if you want (locations) of the Merchants here and osther stuff.");
	}
	if($text=~/locations/i) {
		quest::say("this will come soon");
	}
}
Here are a few links that may help you with quest writing.
Code:
http://www.eqemulator.net/wiki/wikka.php?wakka=QuestTutorial

http://www.eqemulator.net/wiki/wikka.php?wakka=QuestObjects
Reply With Quote
Reply

Thread Tools
Display Modes

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:59 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3