Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-02-2017, 10:30 PM
Sturm
Hill Giant
 
Join Date: Dec 2015
Posts: 116
Default

Save file in quests/global/items folder as:
script_1000.pl
Code:
sub EVENT_ITEM_CLICK {

   if ($itemid == 999999 && $ulevel <= 10 && !defined $qglobals{"Defiant10"}) {
        $client->NukeItem(999999);
		quest::setglobal("Defiant10", 1, 5, "F"); #prevent player from using item again
		quest::summonitem(123456); #whatever your defiant armor item ID is you want to add
		$client->Message(18, "You've summoned Defiant Armor!");
    } else {
        $client->Message(15, "Nice try, you're too powerful to use this.");
    }
}
Add the number of the script file to the item in the "Script File ID:" in this case it would be "1000". Add in any extra perl you want to suit your needs into the code and TADA! Item that uses a script on click.

Edit: I didn't check this for syntax or to see if it works, it should but just pointing you in the right direction here. Good luck!
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 09:13 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