Quest Problem
Hey guys, I got a quest problem. The NPC Responds up to test3, wont work after that...
Code:
sub EVENT_SAY { Code:
sub EVENT_SIGNAL |
Put quotes around your echo
|
thanks, that fixed it
|
Also, not sure this is giving you a problem or not, but you don't need to close every single line with a bracer.
sub EVENT_SAY { if($text =~/Hail/i){ quest::say("Test"); if($text =~/Test/i){ quest::say("Test1"); if($text =~/Test1/i){ quest::say("Test2"); if($text =~/Test2/i){ quest::say("Test3"); if($text =~/Test3/i){ quest::say("Test4"); quest::setguild (12 , 0); quest::surname (Test); quest::signal(2093); quest::signal(2034); quest::signal(2066); quest::echo(TestTestTest);} <-- quest::echo(TestTestTest) shouldn't need quotes } Only the last function needs to get closed out, not every single one in between. |
Quote:
|
Aye, just caught that... probably because that's a sort of messy way to write a quest =]
sub EVENT_SAY { if($text =~/Hail/i){ quest::say("Test"); } if($text =~/Test/i){ quest::say("Test1"); } if($text =~/Test1/i){ quest::say("Test2"); } if($text =~/Test2/i){ quest::say("Test3"); } if($text =~/Test3/i){ quest::say("Test4"); quest::setguild (12 , 0); quest::surname (Test); quest::signal(2093); quest::signal(2034); quest::signal(2066); quest::echo(TestTestTest);} <-- quest::echo(TestTestTest) shouldn't need quotes } This is how I'd typically write a quest, so it's easy to tell what is doing what. Smooshing everything in one line has always messed me up. Thanks for correcting me. |
All times are GMT -4. The time now is 12:55 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.