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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-06-2014, 09:03 AM
Trubles
Sarnak
 
Join Date: May 2014
Posts: 80
Default

Quote:
Originally Posted by warkid View Post
im wanting to know if its possible to create a NPC that gives rewards upon hails BUT its limited to on hail/reward per charater
Here is an example of qglobals being used to limit people from setting skills and wiping out any skill over 100.

Code:
sub EVENT_SAY
{
my $skill = quest::saylink("skills");
if($text=~/hail/i)
{
plugin::Whisper("Welcome to the tombs $name. You have access to a few commands to help you through your journey type #help to see them. Read the MOTD I can also give you [$skill] and spells (say links are broken, will fix in AM)");

}
if($text=~/skills/i && $qglobals{skills} == 0)
{
quest::setallskill(100);
quest::scribespells(65);
quest::traindisc(65);
quest::setglobal("skills",1,7,'f');
}
elsif($text=~/skills/i && $qglobals{skills}>= 1)
{
plugin::Whisper("You're trained");
}
}
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 01:14 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