elkingahmed
New Member
- Joined
- May 31, 2012
- Messages
- 116
- Reaction score
- 2
TFS 1.1
why do i get this error ?
ERROR
Script
why do i get this error ?
ERROR
[Warning - Events::load] Can not load script: creature.lua
data/events/scripts/creature.lua:33: '<eof>' expected near 'end'
Script
LUA:
function Creature:onChangeOutfit(outfit)
return true
end
function Creature:onAreaCombat(tile, isAggressive)
return true
end
function Creature:onTargetCombat(target)
return stat_onTargetCombat(self, target)
end
if PARTY_PROTECTION ~= 0 then
if self:isPlayer() and target:isPlayer() then
local party = self:getParty()
if party then
local targetParty = target:getParty()
if targetParty and targetParty == party then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
end
if ADVANCED_SECURE_MODE ~= 0 then
if self:isPlayer() and target:isPlayer() then
if self:hasSecureMode() then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
return true
end