Page 1 of 1
Zone Event
Posted: Thu Dec 10, 2015 12:48 am
by Buh
Hey guys.
Can someone tell me, if its possible to get the Zone event time or/and the current points (xxxx/6000)?
What i mean is the event every 20 minutes where you can get these points of justice.
I need a fast answer pls, thanks
Greetings buh
Re: Zone Event
Posted: Thu Dec 10, 2015 1:58 am
by beanybabe
I do not have link to the original post but here is someones code to get the messages to find one for just that one timer search for like way points.
This may have been lisa code function scanevent.xml
Re: Zone Event
Posted: Thu Dec 10, 2015 2:43 am
by Buh
Hey, thanks for fast answer.
Which content in this code includes the values of a "started" zone event or of the time of the zone event?
And where will i find the current points, if event started?
Greetings
Re: Zone Event
Posted: Fri Dec 11, 2015 12:17 am
by beanybabe
Lisa may know I found this in another thread but after they moved my post I cannot find the original thread that told how to use it. May need to msg lisa. Im trying to figure how I made it work also. You might just search eoj there are some existing wp.
But just a warning do not go afk.
Re: Zone Event
Posted: Fri Dec 11, 2015 1:11 am
by lisa
Yeah quite a few discussions on the event (Eoj) timer.
check this 1 out
viewtopic.php?f=27&t=6026&hilit=eoj+time
Re: Zone Event
Posted: Fri Dec 11, 2015 9:00 am
by Buh
HEy, thanks for your comments!
It wont work, but i need one working program now and i easierly wrote this code:
local mTime = os.time()
local elapsedTime = 0
local time = os.date("*t")
print("Compare time. Time is: " ..time.min)
if time.min == 23 or time.min == 30 or time.min == 50 then
while 210 > elapsedTime do
print("Event start, during event")
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:harvest(123369) --Klick Gelbe Flüssigkeit
player:harvest(123368) --Klick Fläschchen
player:harvest(123508) --Klick Trübe Flüssigkeit
player:target_NPC(123561) --Jenn Shadoli (Abgabe)
elapsedTime = os.time() - mTime
print(elapsedTime)
end
if RoMScript("GetCurrentParallelID()") == 1 or RoMScript("GetCurrentParallelID()") == 3 then
sendMacro("ChangeParallelID(2)")
break
elseif RoMScript("GetCurrentParallelID()") == 2 then
sendMacro("ChangeParallelID(1)")
break
end
yrest(25500)
local mTime = os.time()
local elapsedTime = 0
while 210 > elapsedTime do
print("Event start, during event")
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:harvest(123369) --Klick Gelbe Flüssigkeit
player:harvest(123368) --Klick Fläschchen
player:harvest(123508) --Klick Trübe Flüssigkeit
player:target_NPC(123561) --Jenn Shadoli (Abgabe)
elapsedTime = os.time() - mTime
print(elapsedTime)
end
end
print("Stop, time is: " ..time.min)
can someone take a look to this and say, what i have done wrong? so it must be a little mistake, but i dont see it
Thanks for ur help
Re: Zone Event
Posted: Sat Dec 12, 2015 6:28 am
by beanybabe
I use luaedit it has a syntax check under Debug tool. You can get it free here
http://luaedit.sourceforge.net/
I use notepad++ to edit and add indents so code is easy to follow. you can get a copy of it here
https://notepad-plus-plus.org/
Code: Select all
local mTime = os.time()
local elapsedTime = 0
local time = os.date("*t")
print("Compare time. Time is: " ..time.min)
if time.min == 23 or time.min == 30 or time.min == 50 then
while 210 > elapsedTime do
print("Event start, during event")
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:harvest(123369) --Klick Gelbe Flüssigkeit
player:harvest(123368) --Klick Fläschchen
player:harvest(123508) --Klick Trübe Flüssigkeit
player:target_NPC(123561) --Jenn Shadoli (Abgabe)
elapsedTime = os.time() - mTime
print(elapsedTime)
end
if RoMScript("GetCurrentParallelID()") == 1 or RoMScript("GetCurrentParallelID()") == 3 then
sendMacro("ChangeParallelID(2)")
-- break -- this is causing error
elseif RoMScript("GetCurrentParallelID()") == 2 then
sendMacro("ChangeParallelID(1)")
-- break -- this is causing error
end
yrest(25500)
local mTime = os.time()
local elapsedTime = 0
while 210 > elapsedTime do
print("Event start, during event")
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:target_NPC(123561) --Jenn Shadoli (Annahme)
player:harvest(123369) --Klick Gelbe Flüssigkeit
player:harvest(123368) --Klick Fläschchen
player:harvest(123508) --Klick Trübe Flüssigkeit
player:target_NPC(123561) --Jenn Shadoli (Abgabe)
elapsedTime = os.time() - mTime
print(elapsedTime)
end
end
print("Stop, time is: " ..time.min)
Re: Zone Event
Posted: Mon Dec 14, 2015 12:24 pm
by Buh
Hey, thank yyou very much.
Could you also help my at changing the time to when the event starts and when it ends?
THere is code from a user here but i really dont understand it. Also because the time is sometimes not visible
Greetings
Re: Zone Event
Posted: Mon Dec 14, 2015 6:12 pm
by beanybabe
Sorry I don't know that part of the code well. e oj is bad place to try this. Never go afk if you do.