• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

When someone die he will turn to a sprit effect! Rep!

pokeot

New Member
Joined
Oct 8, 2010
Messages
69
Reaction score
1
When someone die he will turn to a sprit effect! instead be a body on the floor!
Rep! please comment if you dont understand!
 
i dont know, i want when someone die instead a body fall on the ground a spirit effect come out. but if someone could do it more awesome please do it :)
 
You can do it like World of Warcraft. Then you'll wake up on a graveyard and require to walk back to your corpse.

Custom sprites will do the trick.
 
ok but could someone fix the creaturescript when someone die a spirit effect will come instead a body!
 
So, you no longer want the body to appear? Or what are you asking exactly? There's a difference between making a spirit which would be an effect as it seems you are requesting, and making it so you actually turn into said spirit, which do you actually want?
 
i think its more cleaner than have on a war server 100000 dead bodys on the ground.
 
He probably want something simple as this I guess, but with a different effect but this was the only one I had in my head...

Should there be no corpse at all or should just the effect appear and the body disappear?
LUA:
doSendMagicEffect(pos, CONST_ME_MAGIC_RED)
 
You'll have to edit the source to not have a corpse appear. For your ghost animation, you can use this (I think this is what you're looking for).

Code:
function onPrepareDeath(cid, deathList)
	doSendMagicEffect(pos, CONST_ME_YALAHARIGHOST)
	return true
end

Red
 
yes perfect, i gone add it on creaturescript or lib? please give me then the creaturescript.xml!
 
yes perfect, i gone add it on creaturescript or lib? please give me then the creaturescript.xml!

It's a creaturescript. Add it in XML like this:

Code:
<event type="preparedeath" name="Spirit" event="script" value="spirit.lua"/>

Be sure to add it inside login.lua

Code:
registerCreatureEvent(cid, "Spirit")

Red
 
effect.lua
LUA:
local effect = 32
local effect = 32
function onDeath(cid, corpse, killer)
	local pos = getThingPos(cid)
	doRemoveItem(corpse.uid)
	doSendMagicEffect(pos, effect)
	return true
end


creaturescripts.xml
XML:
<event type="death" name="Effect" event="script" value="effect.lua"/>

login.lua
LUA:
registerCreatureEvent(cid, "Effect")
 
Back
Top