Lua Script Error: [Raid Interface] TFS 1.3

Dorianek

Member
Joined
Nov 29, 2018
Messages
206
Reaction score
4
Location
Poland
Lua Script Error: [Raid Interface]
data/raids/scripts/mawhawk.lua:eek:nRaid
data/raids/scripts/mawhawk.lua:4: attempt to call method 'setReward' (a nil value)
stack traceback:
[C]: in function 'setReward'
data/raids/scripts/mawhawk.lua:4: in function <data/raids/scripts/mawhawk.lua:1>


C++:
function onRaid()
    local monster = Game.createMonster("Mawhawk", Position(33704, 32461, 7)) -- 33704" y="32461" z="7"
    if monster then
        monster:setReward(true)
    end
end
 
Top