function onKill(cid, target, lastHit)
local monster = 'Orshabaal'
if getCreatureName(target):lower() == monster:lower() then
doBroadcastMessage("".. getPlayerName(cid) .." has killed a Orshabaal!", TALKTYPE_RED)
end
return true
end
<event type="kill" name="orshabaal" event="script" value="orshabaal.lua"/>
<script>
<event name="orshabaal"/>
</script>
great thx! reppCreaturescripts -> Scripts -> Create a orshabaal.lua
Code:function onKill(cid, target, lastHit) local monster = 'Orshabaal' if getCreatureName(target):lower() == monster:lower() then doBroadcastMessage("".. getPlayerName(cid) .." has killed a Orshabaal!", TALKTYPE_RED) end return true end
Put this into Creaturescripts.xml
Code:<event type="kill" name="orshabaal" event="script" value="orshabaal.lua"/>
Put this into orshabaal.xml
Code:<script> <event name="orshabaal"/> </script>
post the error you gotcan anyone post the script for tfs 0.4 ive tried this but doesnt work