Offical forum of LASP, a project to script all the areas in wow via LUA
HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­Donate!  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 because it does not work?

View previous topic View next topic Go down 
AuthorMessage
zysus
First post yay


Posts: 1
Join date: 2008-05-24

PostSubject: because it does not work?   Thu May 29, 2008 5:59 pm

and created small scrip of test, but the boos do not attack anybody, to lie down the same skill, some solution?

Code:
--kobol vermin
function md_OnCombat(Unit, Event)
Unit:RegisterEvent("md_Spellname", 6000, 0)
end

function md_Spellname(pUnit, Event)
pUnit:CastSpellOnTarget(133, pUnit:GetClosestPlayer())
end

function md_OnDied(Unit, Event)
Unit:RemoveEvents()
end

function md_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end

RegisterUnitEvent(6, 1, "md_OnCombat")
RegisterUnitEvent(6, 2, "md_OnLeaveCombat")
RegisterUnitEvent(6, 4, "md_OnDied")
Back to top Go down
View user profile
Darhan
Admin
Admin


Posts: 63
Join date: 2008-04-23

PostSubject: Re: because it does not work?   Mon Jun 02, 2008 10:09 pm

I don't see any errors in the script tho, could you explain the problem better?

The spell itself could be bugged tho, so try another spellid (133 in your script)
Back to top Go down
View user profile
 

because it does not work?

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
LUA Area Scripting Project :: General :: Support! If you want to ask anything, do it here-
Post new topic   Reply to topic