Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-25-2017, 12:10 AM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

The above has syntax errors and doesn't look complete, sorta like you copy/pasted only what you felt was relevant. Which is ok mind you, however; the below may not do all you wanted it to do as a result:

Code:
sub EVENT_SPAWN {
	plugin::SetProx(20,20);
}

sub EVENT_ENTER {
	quest::say("How are you enjoying your ".quest::varlink(1111)."?") if plugin::check_hasitem($client, 1111);
}

sub EVENT_SAY {
	if($text=~/hail/i) {
		if (plugin::check_hasitem($client, 1111)) {
			quest::say ("You already have a ".quest::varlink(1111)."!");
		} else {
			quest::say ("Oh, hello $name, so have you come to claim your ".quest::varlink(1111)."?");
		}
	}
}

sub EVENT_ITEM {
	if (!plugin::check_hasitem($client, 1111) && plugin::check_handin(\%item1, 2222 => 1)) {
		quest::say ("Congratulations $name! Enjoy your ".quest::varlink(1111)."!");
		quest::summonitem(1111);
	} else {
		plugin::returnitems(\%itemcount);
	}
}
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 08:29 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