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 06-17-2008, 11:44 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

try this one...
Code:
sub EVENT_SAY
{
	if ($text=~/hail/i)
	{
		quest::say("Hail to you, lesser being!");
	}
	if ($text=~/Set/i)
	{
		quest::say("Setting your stupid var human !");
		if (!defined $qgobals{AVAR})
		{
			quest::delglobal("AVAR");
			quest::setglobal("AVAR", 1, 7, "Y50");
		}
	}
	if ($text=~/Get/i)
	{
		my $avar = $qglobals{AVAR};
		quest::say("Here is your results $avar");
	}
}
PS: not sure if that red semicolon should go there or not.. thats why i made it red.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #2  
Old 06-17-2008, 12:06 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default No luck

Tried your code, same problem. Its set perfectly in the mysql file but it will just not display it in the text when retrieved. Semicolon was needed btw.

I understand the code so it just doesn't make sense why it isn't working. Seems simple enough.

Kayen
Reply With Quote
  #3  
Old 06-17-2008, 03:06 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

using your original code, try this:

Code:
sub EVENT_SAY {
    if ($text=~/hail/i) {
        quest::say("Hail to you, lesser being!");
    }
    elsif ($text=~/Set/i) {
        quest::say("Setting your stupid var human !");
        quest::delglobal("AVAR");
        quest::setglobal("AVAR", 1, 7, "Y50");
    }
    elsif ($text=~/Get/i) {
        quest::say("Here is your results $AVAR");
    }
}
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 06:26 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