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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-11-2004, 01:46 PM
8ball
Fire Beetle
 
Join Date: Sep 2004
Posts: 12
Default review my work?

was wondering if someone could review my work. ive been testing out a few things.
please respond with any errors i have.

Code:
#practice script

sub EVENT_SAY
{
	if($text=~/hail/i)
	{
		quest::say("Greetings $name. I can perform multiple [tasks] for you.");
	}
	if($text=~/what tasks/i)
	{
		quest::say("I can raise your [level] to whatever you wish, I can [save] your
			progress, and summon a [weapon] for you");
	}
	if($text=~/level/i)
	{
		quest::say("State the level you wish to be.");
	}
	$level = $level;
		if($text=~/$level/i)
		{
			quest::level($level);
			quest::say("You have been leveled");
		}
	if($text=~/save/i)
	{
		quest::save();
		quest::say("You have been saved");
	}
	if($text=~/what weapon/i)
	{
		quest::say("I can summon a random magical weapon for you. Decide now whether you want
			it or not.");
	}
	if($text=~/yes/i)
	{
		$random = int(rand(55261,24773,25989,22982,26031,54065,43148,7823));
			quest::summonitem($random);
			quest::say("Your weapon has been summoned.");
	}
}

sub EVENT_ITEM
{
	{
		quest::say("I do not require payment of any kind.");
	if($item1 > 0){quest::summonitem("$item1");} 
	if($item2 > 0){quest::summonitem("$item2");} 
	if($item3 > 0){quest::summonitem("$item3");} 
	if($item4 > 0){quest::summonitem("$item4");}
	if($platinum != 0 || $gold !=0 || $silver != 0 || $copper != 0) {
		quest::givecash($platinum, $gold, $silver, $copper);}
	}
}
also, so im not accused of stealing, the return items/cash piece at the end i got from sotonin. saw it in one of his quests and decided to use it since it is really useful thanks sotonin
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 04:18 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3