its work thanks
its work thanks
have a question,
when I reloaded scripts
stops the messenger npc and not start automatically
can I insert some like a autorefresh?
when yes how ?
i dont think there is but you can always restart your server. there has always been issues i have had when doing reloads.
no no problems when I reboot.
but imagine 200 + player online then redes times restart ??
not good ^^
do you understand
the problem is , is that your using an `on reset` creature event hook. that doesn't occur during `reload eluna` . and if you want it to apply to ALL creatures of xx id. maybe try `movement in Line Of Site` event `27 or 28 . (the script would need some re-adjusting for this ,,if its possible)
now if its only 1 creature that this script applies to then you could write it so you just select the creature then command it to restart the timed event.
if your using only 1 creature for this then it can be done .. but multiple spawns of 1 creature dunno.....
if your using only 1 spawned creature for this the all you have to do is select the creature then type `load talker` and poof it will start its timer again.
theres just no event hook for creature on eluna reload.(dunno if there is really a demand for it)
Code:-- by Rochet2 of EmuDevs local npcid = 3100 -- 10000 local delay = 1*60*1000 -- 60 seconds/1 minute local cycles = 1 local function TimedSay(eventId, delay, repeats, creature) creature:SendUnitSay("Hey !! Pay attention to me !! BENDER !!", 0) creature:RemoveEvents() creature:RegisterEvent(TimedSay, delay, cycles) end local function OnReset(event, creature) creature:RegisterEvent(TimedSay, delay, cycles) end RegisterCreatureEvent(npcid, 23, OnReset) function ReloadTalker(event, player, msg) -- select creature and type `load talker` local message = "load talker" if(msg)then if((msg:lower() == message)and(player:GetGMRank() >= 3))then if(player:GetSelection():GetEntry() == npcid)then player:GetSelection():RegisterEvent(TimedSay, delay, cycles) else end else end else end end RegisterPlayerEvent(18, ReloadTalker)
There are currently 1 users browsing this thread. (0 members and 1 guests)