EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=634)
-   -   Selling your soul to the devil (https://www.eqemulator.org/forums/showthread.php?t=19535)

rickjames1234 10-10-2005 08:35 AM

Selling your soul to the devil
 
This is just a little quest i thought of, not sure if i'm going to use it atm...i was just wondering should i have used seperate events for each class? or maybe seperate npcs? just learning perl so there might be a few errors.

****thanks****

Code:

sub EVENT_SAY
{
if($text=~/hail/i)
{ quest::say("What are you tired of your current proffession? We'll i can [help] change that for you. All that I ask in return, is your soul."); }

{
if($text=~/help/i)
{ quest::say("Now tell me what class do you wish to become? [Warrior], [Cleric], [Paladin], [Ranger], [ShadowKnight], [Druid], [Monk], [Bard], [Rogue], [Shaman], [Necromancer], [Wizard], [Magician], [Enchanter], [Beastlord], or [Berserker]?"); }

{
if($text=~/Warrior/i)
{
quest::permaclass(1);
quest::rain(1);
quest::emote("Beams a smile at you!");
}


{
if($text=~/Cleric/i)
{
quest::permaclass(2);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}


{
if($text=~/Paladin/i)
{
quest::permaclass(3);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Ranger/i)
{
quest::permaclass(4);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Shadowknight/i)
{
quest::permaclass(5);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Druid/i)
{
quest::permaclass(6);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Monk/i)
{
quest::permaclass(7);
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Bard/i)
{
quest::permaclass(8);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Rouge/i)
{
quest::permaclass(9);
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Shaman/i)
{
quest::permaclass(10);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Necromancer/i)
{
quest::permaclass(11);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Wizard/i)
{
quest::permaclass(12);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Magician/i)
{
quest::permaclass(13);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Enchanter/i)
{
quest::permaclass(14);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Beastlord/i)
{
quest::permaclass(15);
quest::scribespells();
quest::rain(1);
quest::emote("Beams a smile at you!");
}

{
if($text=~/Berserker/i)
{
quest::permaclass(16);
quest::rain(1);
quest::emote("Beams a smile at you!");
}
}


sdabbs65 10-12-2005 04:29 AM

error
 
quest::scribespells();

Im pretty sure this needs a value in it.

like this: quest::scribespells(70);

that results in scribeing to level 70.

Belfedia 10-12-2005 06:55 AM

Command #scribespell need an argument like #scribespell (70)
But command for quest can work without. it have a number by default.

sdabbs65 10-13-2005 02:49 AM

?
 
Quote:

Originally Posted by Belfedia
Command #scribespell need an argument like #scribespell (70)
But command for quest can work without. it have a number by default.

oh i didnt know that hehe I been putting in a value all this time lol.


All times are GMT -4. The time now is 10:44 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.