• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Kill broadcast

matti450

Member
Joined
Apr 13, 2008
Messages
507
Reaction score
24
Hello i am looking for kill broadcast like Otland killed orshabaal, im using version 0.3.6
 
Creaturescripts -> 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>
 
Creaturescripts -> 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>
great thx! repp
 
Back
Top