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

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2021, 06:46 PM
Bytebait
Sarnak
 
Join Date: Oct 2014
Location: Colorado
Posts: 74
Default Item Script to AoE items to all Ally Players

From an Item script I would like to give an Item in all players within x distance of the caster. I've seen client methods for groups but not players outside the group like an MGB.

I'm sure you know what I'm trying to say but for example, the following script but to all players in X distance from caster.

Code:
sub EVENT_ITEM_CLICK {
    #:: Match item 57816 - Bag of Ebon Crystals
    if ($itemid == 57816) {
        #:: Give 40902 - Ebon Crystal x100 to the client who triggered the event
        $client->AddCrystals(0, 100);
    }
}
Reply With Quote
  #2  
Old 03-01-2021, 06:56 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Take a look through the quest script a_jester_of_bristlebane (in quests/global folder). It might give you some insight on what you're looking for. He used to cast spells on random players and give out bread ?
__________________
Hanging out at Antonica.World
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 05:32 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