Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2003, 02:26 PM
Krayz
Fire Beetle
 
Join Date: May 2003
Posts: 20
Default Need help with this code

Ok, I can't get this code to work. What I have I done wrong. I have tried it both ways below.

Code:
EVENT_SAY { 
if ($1-=~ "Hail") { say("Hello $name . welcome to the Kunark translocation area. Do you wish to journey to [kunark]?") } 
if ($1-=~ "kunark") { say("Very well, watch") cast($userid,2709) } 
}
Code:
EVENT_SAY { 
if ($1-=~ "Hail") { say("Hello $name . welcome to the Kunark translocation area. Do you wish to journey to [kunark]?") } 
if ($1-=~ "kunark") { say("Very well, watch out") castspell($userid,2709) } 
}
Any suggestions?
Reply With Quote
  #2  
Old 06-29-2003, 02:52 PM
IANumtin
Hill Giant
 
Join Date: Apr 2003
Location: EQEmu
Posts: 121
Default

This should be in the quest area but anyways, you have:

cast($userid,2709)

Should be this:

castspell("$userid","2709")

Remember to put anything that's suppose to be an action by the npc in quotations. Hope this helps.
__________________
They say baldness is in the genes but I have hair in my jeans :>)
Reply With Quote
  #3  
Old 06-29-2003, 03:29 PM
Krayz
Fire Beetle
 
Join Date: May 2003
Posts: 20
Default

Sweet. Thanks a ton.
Reply With Quote
  #4  
Old 06-30-2003, 06:21 PM
Krayz
Fire Beetle
 
Join Date: May 2003
Posts: 20
Default

Someone might add this little fact to the FAQ's until I posted it here I never saw it anywhere on the boards that you needed the " " part.

Just FYI
Reply With Quote
  #5  
Old 06-30-2003, 10:33 PM
IANumtin
Hill Giant
 
Join Date: Apr 2003
Location: EQEmu
Posts: 121
Default

Oh, it's out there. Where do you think I got it
__________________
They say baldness is in the genes but I have hair in my jeans :>)
Reply With Quote
Reply


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