function Start()
hero = GetAttackerHero
UnitCastGlobalSpell(hero, 54)
end
пишет в панели "wrong type of argument 1 when calling function UnitGlobalCast" , что не так?
Впервые здесь? Я Роха — провести быструю экскурсию?
Добавлено через 8 минут
function Start()
hero = GetAttackerHero
UnitCastGlobalSpell(hero, 54)
end
пишет в панели "wrong type of argument 1 when calling function UnitGlobalCast" , что не так?
function rndcast()
while 1 do
SetGameVar('spell', random(5))
local index = GetLastSavedCombatIndex()
while index == GetLastSavedCombatIndex() do
sleep(10)
end
end
end
startThread(rndcast)А в боевом скрипте строчкойда, кстати, нехватка маны тоже, проверил =)
А сделать заклинания бесплатными при этом автокасте возможно?