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

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 10-20-2008, 02:31 AM
Sophoket
Fire Beetle
 
Join Date: Apr 2007
Posts: 2
Default

Would it not be easier to just let the player be set to any level instead of having a really long list of if statements for a range of levels?

For example:

Code:
sub EVENT_SAY {

if(($text=~/hail/i)&&($ulevel == 70)){
quest::say("I can set you to any level you like, just let me know.");
 }

if($text!= "Hail, $mName") {
$levelVar = $text;
quest::say("Ok, You are now level $levelVar");
quest::summonitem(12941);
quest::level($levelVar);
}
}

sub EVENT_ITEM
{
 if ($item1 == 12941){
quest::say("Looks like you took good care of it!  Here are your levels back.");
quest::emote("casts a spell and you instantly feel more powerful!  Like you could take on anything in battle!");
quest::level(70);
}
    else {
        plugin::return_items(\% itemcount);
       quest::say("I have no use for this item, $name.  Take it back.");
   } 
}
Reply With Quote
 

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 09: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