viniciusturko
New Member
Hello everybody !
I'm new in this forum, and I think you down't know me, but I'm scripter, and I will guive you a piece of my work =D...
This function maybe work in all TFS version, but if in your case it don't work well, post here, I'll help you ^^...
Well, this system work how a Raid, but has some differences... You have to config a real hour that you want to something happens, for example, "you want to appear a dragon in that position at 22:00 o'clock(real time)" You can ! =D
The instructions are in the script =D :
Xml line :
See ya ! =D
I'm new in this forum, and I think you down't know me, but I'm scripter, and I will guive you a piece of my work =D...
This function maybe work in all TFS version, but if in your case it don't work well, post here, I'll help you ^^...
Well, this system work how a Raid, but has some differences... You have to config a real hour that you want to something happens, for example, "you want to appear a dragon in that position at 22:00 o'clock(real time)" You can ! =D
The instructions are in the script =D :
Lua:
--Script by Viniciusturko
local pos = {x= 1032,y= 1039,z= 7} -- Positions where the monsters will appear.
local hora = function()
local rawdate = os.date("%H:%M")
local hours, minutes = rawdate:match("(%d+) : (%d+)")
return tonumber(hours), tonumber(minutes)
end
onThink = function()
local hours, minutes = hora()
if not (hours == 20 and minutes == 00) then -- hora(real) em que o(s) monstro(s) aparecerá(ão), no caso 08 horas da noite.
doCreateMonster("Dragon", pos, 1) -- Monster that will be created in the position.
doBroadcastMessage("When night falls, shadowy creatures come to attack", 22) -- Message in the time.
return true
end
return true
end
XML:
<globalevent name="name" interval="60" script="scriptname.lua"/>
See ya ! =D