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

Request, CREATURE EVENT

silveralol

Advanced OT User
Joined
Mar 16, 2010
Messages
1,484
Solutions
9
Reaction score
217
Hello, I want one script that do it:
When Monster X die, send broadcast msg for all players
5 min later remove one item that have in MAP...
and send other msg in broadcast within 5 minutes
can you do?
thanks



ps: sorry for my english
 
What TFS are you using?

If 0.4 try this:

PHP:
function onKill(cid, target, lastHit)
local pos = {x = 1000, y = 1000,  z = 7}
   if (getCreatureName(target) == "Demon") then
     doBroadcastMessage("message")
   addEvent(doBroadcastMessage("message after 5 minutes"), 300) -- i don 't know it is in seconds or miliseconds (try to change if not works)
   addEvent(doCleanTile(pos, false), 300)
   end
end
 
Last edited:
Back
Top