View Single Post
  #9  
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