View Single Post
  #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