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);
}
}