Page 1 of 1
Waypoint script for switching channel on event (memento)
Posted: Sun Jul 25, 2010 4:02 pm
by jackalone
Hello guys i'd like to know if it's possible to create a waypoint script that, on such events like the ones in thunderhoff or Southern janos forest , identify the start and the end of that event (mementos farming) and swithches the channel so that it's possible to repeat the event.
I know the command for switching channel ... /run ChangeParallelID(3-GetCurrentParallelID());
but I don't know how to make the script to find out the start (trigger for starting the bot) or the end (trigger for stopping the bot and switching the channel).
Any help would be really appreciated
Thank you

)
Re: Waypoint script for switching channel on event (memento)
Posted: Sun Jul 25, 2010 9:47 pm
by rock5
How do you do those events? How do you know what to do?
Re: Waypoint script for switching channel on event (memento)
Posted: Mon Jul 26, 2010 9:05 pm
by jackalone
rock5 wrote:How do you do those events? How do you know what to do?
Basically when you enter the event zone a new menu will appear on the screen with a title like 'Explore the zone', clear the area, kill 100 mobs, your score (because every 100 points u get a memento). Every time an event is finished a system message will appear on the screen (not in the chat) and a timer will run from 60 min to 0 .
At 0 a new Event will start, a system message will appear on the screen (not in the chat ).
At the end of every Event you'll get a memento for every 100 points u scored killing the mobs. A message will appear on the chat system saying something like 'You obtained 6 Mementos'.
Every time an Event is finished you need to wait an hour to restart...and to finish it you have no time limit.
Normally there are 2 channels (instances) in the zone so if at the end of an event you swap the channel you can start the other one doubling the farming.
Maybe would be easier to use the sentence 'You got .. mementos' as a trigger to swap channel and start the new Event in the other channel.
So after making the waypoint script for killing the mobs and increase the score and get the mementos (easy part) I need you Rock5 to make the trigger for swapping the channel (instance) if it's possible

)
Re: Waypoint script for switching channel on event (memento)
Posted: Tue Jul 27, 2010 12:33 am
by rock5
jackalone wrote:
Basically when you enter the event zone a new menu will appear on the screen with a title like 'Explore the zone', clear the area, kill 100 mobs, your score (because every 100 points u get a memento). Every time an event is finished a system message will appear on the screen (not in the chat) and a timer will run from 60 min to 0 .
At 0 a new Event will start, a system message will appear on the screen (not in the chat ).
At the end of every Event you'll get a memento for every 100 points u scored killing the mobs. A message will appear on the chat system saying something like 'You obtained 6 Mementos'.
Every time an Event is finished you need to wait an hour to restart...and to finish it you have no time limit.
Normally there are 2 channels (instances) in the zone so if at the end of an event you swap the channel you can start the other one doubling the farming.
Maybe would be easier to use the sentence 'You got .. mementos' as a trigger to swap channel and start the new Event in the other channel.
So after making the waypoint script for killing the mobs and increase the score and get the mementos (easy part) I need you Rock5 to make the trigger for swapping the channel (instance) if it's possible

)
Thx. I was confused before because I saw the timer and killed some Rhanka but I didn't get a score. Now I know the event has to start first, lol. I just watched a group do the Rh'anka event, interesting.
Anyway, rombot has no way to monitor chat or system messages so you will need to find another trigger. I noticed the last mob looked like an elite leader. Maybe you can use killing him as a trigger?
Re: Waypoint script for switching channel on event (memento)
Posted: Tue Jul 27, 2010 7:07 am
by jackalone
rock5 wrote:
Thx. I was confused before because I saw the timer and killed some Rhanka but I didn't get a score. Now I know the event has to start first, lol. I just watched a group do the Rh'anka event, interesting.
Anyway, rombot has no way to monitor chat or system messages so you will need to find another trigger. I noticed the last mob looked like an elite leader. Maybe you can use killing him as a trigger?
Dammit maybe this addon would be useful to monitor messages (
http://rom.curse.com/downloads/rom-addo ... nager.aspx ) but still I dunno how to manage it for the trigger...
Re: Waypoint script for switching channel on event (memento)
Posted: Tue Jul 27, 2010 8:51 am
by rock5
jackalone wrote:rock5 wrote:
Thx. I was confused before because I saw the timer and killed some Rhanka but I didn't get a score. Now I know the event has to start first, lol. I just watched a group do the Rh'anka event, interesting.
Anyway, rombot has no way to monitor chat or system messages so you will need to find another trigger. I noticed the last mob looked like an elite leader. Maybe you can use killing him as a trigger?
Dammit maybe this addon would be useful to monitor messages (
http://rom.curse.com/downloads/rom-addo ... nager.aspx ) but still I dunno how to manage it for the trigger...
Sometimes I think it would be nice to have a chat monitor as part of the ingamefunctions as there have been a few posts with requests for functions that involve chat but I don't think it's practical. The script would have to re-act to the ingame message trigger which wouldn't be easy to code.
Re: Waypoint script for switching channel on event (memento)
Posted: Sun Aug 01, 2010 4:00 am
by MiesterMan
rock5 wrote:jackalone wrote:rock5 wrote:
Thx. I was confused before because I saw the timer and killed some Rhanka but I didn't get a score. Now I know the event has to start first, lol. I just watched a group do the Rh'anka event, interesting.
Anyway, rombot has no way to monitor chat or system messages so you will need to find another trigger. I noticed the last mob looked like an elite leader. Maybe you can use killing him as a trigger?
Dammit maybe this addon would be useful to monitor messages (
http://rom.curse.com/downloads/rom-addo ... nager.aspx ) but still I dunno how to manage it for the trigger...
Sometimes I think it would be nice to have a chat monitor as part of the ingamefunctions as there have been a few posts with requests for functions that involve chat but I don't think it's practical. The script would have to re-act to the ingame message trigger which wouldn't be easy to code.
This is a longshot of an idea but since rombot already uses macros by memory maybe it can use macroslot 3 as a data cache of true/false bits for conditions set in the bot. The triggers for the would be set in their own XML file and used in order for the bit ids.
Parsing chat via add-on is already existant so you'd make a generic function in IGF that accept a trigger line and sets it creates the parse per a sendmacro.
Using the parsing the bits would be set by the ids assigned by rombot and then rombot would be able to decode the line of bits as true/false for say OnLeaveCombat checks and the users can reset the bits using rombot in their if statements.
I say this but I don't know the general parts of most of it so I'll have to add some functions later if you haven't beat me to it (you may have noticed I'm terrible at following through).
This implies of course that a macro can be edited using script.
Edit: I mean this requires that it can be done

Re: Waypoint script for switching channel on event (memento)
Posted: Thu Aug 05, 2010 8:44 am
by swietlowka
Isn't it like you can kill just some ammount of those bugs for memento?
maybe switch after some time or some kills?
Re: Waypoint script for switching channel on event (memento)
Posted: Fri Aug 06, 2010 2:10 am
by MiesterMan
I've half-way worked through an addon to make the macro for data. I was always so bad at string manipulation though I can't figure out how to itterate the characters in the string.

On top of that I been busy as can be.
I figured out the command to make the macros from scratch, to pull the macro info, and to alter the macros as need be but the working of itterating the characters or commands to change single characters are giving me trouble. Wish I wasn't so imperceptive of these things so I could help you guys more.
Here's the half-baked work I've got:
Code: Select all
MAddon.setStatus = function(_index,_status)
if not HasMacro(3) then
EditMacro(3, "Status", 15, "")
end
statusIndex, statusName, statusBody = GetMacroInfo(3)
if _index > statusBody:len then
local charStatusIndex = 0
for i = 0, _index do
if
end
end
end
while
EditMacro(3, "Status", 15, statusBody)
end
I can't even verify if what I have is logically correct sorry.
Edit: I'm not sure what happened but seemed as if my brain stopped working right at this point.