• 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!

CreatureEvent DEATH SYSTEM CAST TFS 0.4,OTX 2X ALL VERSIONS

adric21

Well-Known Member
Joined
Apr 26, 2016
Messages
275
Solutions
1
Reaction score
71
GO TO DATA/CREATURESCRIPTS/SCRIPTS

AND CREATE A FILE "DeathSystem.LUA"

ADD THIS CODE :
Lua:
function onDeath(cid, corpse, killer)

local pos = getCreaturePosition(cid)
local monster = 'a morte'
local timer = 3 -- tIME

   function removeMonster()
     for _, pid in ipairs(getCreatureSummons(killer[1])) do
       doRemoveCreature(pid)
     end
   return true
   end

if isPlayer(cid) and isPlayer(killer[1]) then
   doConvinceCreature(killer[1], doCreateMonster(monster, pos))
   doSendAnimatedText(getThingPos(cid), "DEATH", 19) -- O "death" WORDS ON THE BODY
   doSendMagicEffect(getThingPos(cid), 65)
   addEvent(removeMonster, timer*1000)
end

return true
end

AND ADD IN CREATURESCRIPTS.XML
THIS TAG;
XML:
<event type="death" name="DeathSystem" event="script" value="DeathSystem.lua"/>
 
Last edited by a moderator:
IF ANYONE GOT BUGS PLS REPORT I WILL GIVE SUPORT IN MY SCRIPT
 
Work like brodcast when the payer X kill player Y and monsters too its a new system
 
how does it work ?
When a player die, it summon for 3 sec a monster called "a morte" and send the animatedtext "DEATH" inside
its like a effect of The Death taking the soul of the player who die xd
 
I think it doesen't do much, It can just make your server more buggy and less stable.
 
When a player die, it summon for 3 sec a monster called "a morte" and send the animatedtext "DEATH" inside
its like a effect of The Death taking the soul of the player who die xd
he took from a br forum and is saying "MY SCRIPT" and he doesn't even know what does xD
 
Back
Top