Waypoint script for switching channel on event (memento)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
jackalone
Posts: 3
Joined: Sun Jul 25, 2010 3:33 pm

Waypoint script for switching channel on event (memento)

#1 Post 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 :))
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Waypoint script for switching channel on event (memento)

#2 Post by rock5 »

How do you do those events? How do you know what to do?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
jackalone
Posts: 3
Joined: Sun Jul 25, 2010 3:33 pm

Re: Waypoint script for switching channel on event (memento)

#3 Post 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 :))
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Waypoint script for switching channel on event (memento)

#4 Post 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?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
jackalone
Posts: 3
Joined: Sun Jul 25, 2010 3:33 pm

Re: Waypoint script for switching channel on event (memento)

#5 Post 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...
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Waypoint script for switching channel on event (memento)

#6 Post 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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Waypoint script for switching channel on event (memento)

#7 Post 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 :lol:
swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: Waypoint script for switching channel on event (memento)

#8 Post 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?
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Waypoint script for switching channel on event (memento)

#9 Post 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. :oops: 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.
Post Reply