zysus First post yay
Posts: 1 Join date: 2008-05-24
 | Subject: 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") |
|
|
Darhan Admin

Posts: 63 Join date: 2008-04-23
 | Subject: 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) |
|