whitevo
Feeling good, thats what I do.
Still working on my Cyclops.
I want to make it so that if Cyclops dies while he has stone picked up, the Stone will be created on his dead corpse.
Right now with this script item goes under the dead body...
StoneLob.lua (spell)
Creaturescripts.XML
CyclopsStone.lua
(addEvent is not needed, but just showing that even with this, it makes item under corpse)
How to my make item to go on top of dead body?
Can i register Global Scripts? xD (that would also fix it prolly)
Tried with onKill creaturescript too..
But no hope. Only thing what makes sense is somehow be able to add new globalEvent...
Or Maybe somehow force The stone to be on top of everything, even when something else comes on top of it..
Currently seems hopeless cause
I want to make it so that if Cyclops dies while he has stone picked up, the Stone will be created on his dead corpse.
Right now with this script item goes under the dead body...
StoneLob.lua (spell)
Code:
if stonePickedUp == false then
....
Creature(cid):registerEvent("CycStone")
return true
end
else
Creature(cid):unregisterEvent("CycStone")
....
end
Code:
<event type="death" name="CycStone" script="Monsters/CyclopsStone.lua"/>
Code:
function onDeath(cid, target)
local pos = Creature(cid):getPosition()
addEvent(function() return doCreateItem(3666, 0, pos) end, 1000)
return true
end
How to my make item to go on top of dead body?
Can i register Global Scripts? xD (that would also fix it prolly)
Tried with onKill creaturescript too..
But no hope. Only thing what makes sense is somehow be able to add new globalEvent...
Or Maybe somehow force The stone to be on top of everything, even when something else comes on top of it..
Currently seems hopeless cause
Last edited by a moderator: