Code:
function Pulse( eventID, timer )
player = ObjectManager.GetActivePlayer();
entryCount = ObjectManager.GetObjectListEntryCount();
for i=1, entryCount do
object = ObjectManager.GetObjectListEntry( i );
local Type = object:GetType();
if (Type == 3 or Type == 4) then
if Plus.IsKeyPressed(0x31) then
Player.CastSpell("Arcane Shot", object)
end;
end
end
end
Hello, I was wondering if anyone could tell me what was wrong with my code. I know I should learn LUA the right way and read all the stuff about it but i'm a pretty lazy guy so maybe you guys can help me ^^ . This script is for WoWPlus ofc. And what it's suppose to be doing is getting the objects around me, then casting Arcane shot at them if I'm holding down "1". Simple enough, but for some reason I can't get it to work. It's just casting arcane shot at the target im targeting
################################################# # - Pastebin.com -- LUA documentation