Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2005, 01:29 PM
steelrat
Sarnak
 
Join Date: Dec 2004
Location: Gloucester UK
Posts: 32
Default A perl problem.. need a little guidance :)

My quest simply refuses to run..and I can't for the life of me figure out why, I have searched..but to no avail..any help would be appreciated..
the code is in the text file..

Thanks in advance

SR
Attached Files
File Type: txt Soulcatcher_Brian.txt (866 Bytes, 52 views)
__________________
SteelRat..
Server Owner "ElseWhen"
Reply With Quote
  #2  
Old 05-15-2005, 04:46 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default Here you go, fixed and compiling.

ignore this, i'm not sure how to delete it :(
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
Reply With Quote
  #3  
Old 05-15-2005, 04:46 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default Here you go, fixed and compiling.

Code:
sub EVENT_SAY  
{  
  if ($text=~ /Hail/i)
  {
  quest::text ("Hail $name, of the $race race, you come to me because you have lost your soul.. ");  
  if($ulevel <= 15 )
  	     {
   	     quest::text ("you are but a novice, $name, I shall not charge you for this");
   	     quest::summonitem ( 17355);
  	     quest::text ( "place this into your inventory.. tell me yes when you have done");
  	     }
  }
  elsif($ulevel >= 16)
  {
  		quest::text ( "you are a seasoned adventurer, $name, 200pp shall be my price");
  		quest::summonitem(17355);
  		quest::text ("place this into your inventory.. say yes when ready");
  }

  if ($text=~ /yes/i && $ulevel <= 15)
   {
   quest::selfcast (3);
   }

   if ($text=~ /yes/i && $ulevel >= 16)
      {
      quest::text ( "and the little matter of 200pp, if you please");
      if($platinum eq 200 )
      		   {
   		   quest::selfcast (3);
   		   }
       }
}
# end of file
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
Reply With Quote
  #4  
Old 05-16-2005, 04:21 AM
steelrat
Sarnak
 
Join Date: Dec 2004
Location: Gloucester UK
Posts: 32
Smile Thanks a huge bunch!!!

Thats a wonderful fix, thanks for your help.. you've really done me a good turn.!!!

SR
Reply With Quote
  #5  
Old 05-16-2005, 11:39 AM
steelrat
Sarnak
 
Join Date: Dec 2004
Location: Gloucester UK
Posts: 32
Default MWMDragon.. Help again!!! please!

Quote:
Originally Posted by mwmdragon
Code:
sub EVENT_SAY  
{  
  if ($text=~ /Hail/i)
  {
  quest::text ("Hail $name, of the $race race, you come to me because you have lost your soul.. ");  
  if($ulevel <= 15 )
  	     {
   	     quest::text ("you are but a novice, $name, I shall not charge you for this");
   	     quest::summonitem ( 17355);
  	     quest::text ( "place this into your inventory.. tell me yes when you have done");
  	     }
  }
  elsif($ulevel >= 16)
  {
  		quest::text ( "you are a seasoned adventurer, $name, 200pp shall be my price");
  		quest::summonitem(17355);
  		quest::text ("place this into your inventory.. say yes when ready");
  }

  if ($text=~ /yes/i && $ulevel <= 15)
   {
   quest::selfcast (3);
   }

   if ($text=~ /yes/i && $ulevel >= 16)
      {
      quest::text ( "and the little matter of 200pp, if you please");
      if($platinum eq 200 )
      		   {
   		   quest::selfcast (3);
   		   }
       }
}
# end of file
This script works FINE up until the line if($platinum eq 200 ) it doesn't get past this line, it's like the npc doesn't know the plat is given???
any ideas?
__________________
SteelRat..
Server Owner "ElseWhen"
Reply With Quote
  #6  
Old 05-16-2005, 01:45 PM
Sarepean
Discordant
 
Join Date: Sep 2004
Posts: 253
Default

I believe that line should be under the sub EVENT_ITEM{} rather than EVENT_SAY{}.

Try this:


sub EVENT_SAY
{
if ($text=~ /Hail/i)
{
quest::text ("Hail $name, of the $race race, you come to me because you have lost your soul.. ");
if($ulevel <= 15 )
{
quest::text ("you are but a novice, $name, I shall not charge you for this");
quest::summonitem ( 17355);
quest::text ( "place this into your inventory.. tell me yes when you have done");
}
}
elsif($ulevel >= 16)
{
quest::text ( "you are a seasoned adventurer, $name, 200pp shall be my price");
quest::summonitem(17355);
quest::text ("place this into your inventory.. say yes when ready");
}

if ($text=~ /yes/i && $ulevel <= 15)
{
quest::selfcast (3);
}

if ($text=~ /yes/i && $ulevel >= 16)
{
quest::text ( "and the little matter of 200pp, if you please");
}
}

sub EVENT_ITEM{
if($platinum eq 200 )
{
quest::selfcast (3);
}
}
# end of file
Reply With Quote
Reply


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 03:58 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3