Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Tutorials/Howto's

Archive::Tutorials/Howto's Archive area for Tutorials/Howto's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-07-2004, 03:49 PM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

might wanna add fully enclose the quest actions in { }

example:
Code:
sub EVENT_SAY
{
 if($text=~/Hail/i){quest::say("Well met $name.");}
}
the whole "meat" under EVENT_SAY is enclosed in { } and quest actions are also enclosed in { }. however if there are multiple quest actions after an if statement you can enclose them all in one pair of { }.
like so:
Code:
sub EVENT_ITEM
{
 if($itemcount{xx} == 1){quest::say("Well done! You have retrieved my knife!");
                                         quest::summonitem("xx");}
}
notice how in the above both quest actions are in the same set of { } AND the entire "meat" is enclosed it a set of { }.

PS: great guide tho!
PSS: meat is a funny word eh?
Reply With Quote
 


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 12:32 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