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 08-13-2012, 08:56 PM
Reynin89
Sarnak
 
Join Date: Apr 2010
Posts: 71
Default

Jolig that is working thanks a lot! What was wrong with it?

bad_captain, I see I had 4 starting brackets and 2 ending, but where would the other 2 brackets have gone?
Reply With Quote
  #2  
Old 08-13-2012, 09:41 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

There's a reason people format code, because it is much more obvious when things are wrong. Compare your code to this:

Code:
Sub EVENT_TIMER 
{
	if ($timer == DT) 
	{
		quest::shout("TEST");
		
	if ($timer == Slow) 
	{
		quest::shout("TEST");
		
	if ($timer == Nuke) 
	{
		quest::shout("TEST");
	}
}
Much more obvious where the problem is isn't it? I don't know what you edit with, but there are a ton of editors out there that do things like brace highlighting and matching that help to avoid these simple mistakes.
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:38 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3