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

Effect if certain item drops

Cloow

Active Member
Joined
May 10, 2010
Messages
1,086
Reaction score
35
Hello, anyone know how a script should look like if a certain item drops there is gonna be a effect over the corpse.

Rep++++
 
Loop through the corpse container!

Use onDeath if it's a single monster type or if you don't mind adding lines to each monster script you want this to execute for, otherwise use the onKill event for players.
 
Something like this ?

Code:
local t = {
name = "Demon, Hydra, Dragon, Dragon lord"
itemid = "5121, 5125,2155,2112"
}
function onKill(cid, target, damage, flags)
  getCreatureByName(t.name)
      getItemNameById(t.itemid)
 doSendMagicEffect([COLOR="red"]getPlayerPos[/COLOR], 22[, [COLOR="red"]player?????[/COLOR]])
return TRUE
end
end

Now... I sux, but should the script look something like that?
 
Back
Top