Level check on buff ?
I've been trying to get this buff bot script (idea from Trevius) to check
for level and not cast the spell if character is not meeting $ulevel. The script works good, as long as the character is grouped, but if not, (in the "else"), it doesn't check for level and casts the spell anyways. My intentions (for example) is not letting the character get a buff like KEI, when it is less than level 45. sub EVENT_SAY { if (($text =~/hail/i)&&{$ulevel=>45}) { my $Group = $client->GetGroup(); if($Group) { $Group->CastGroupSpell($npc, 2570) } else { my $GetPlayerID = $client->GetID(); quest::selfcast(2570); } quest::say("Incoming KEI for $name"); } } |
You had multiple syntax issues going on. This should work fine:
Code:
sub EVENT_SAY { |
Quote:
very good at what you do (smirk) THANK YOU, it works like I wanted it too now, lol |
All times are GMT -4. The time now is 08:18 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.