Error when I launch minigames

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Error when I launch minigames

#1 Post by lolilol » Sun Feb 24, 2013 8:05 am

Hi,


I use two computers, when I want launch micromacro for my mini games on one on them, it's said that it's successfully open dialogue but it is false. Nothing is open.
There is a screenshot enclose with the error .


Thx for help,

Best regards,
Attachments
erreur.png

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#2 Post by rock5 » Sun Feb 24, 2013 9:24 am

Do you still have the QuestByName userfunctions installed? If so remove it.
  • 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

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Error when I launch minigames

#3 Post by lolilol » Sun Feb 24, 2013 12:02 pm

No, i Don't have this userfunction.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#4 Post by rock5 » Sun Feb 24, 2013 12:39 pm

Then it might be because StaticPopup1 is nil. It should be checked if ShowStaic1 exists before trying to use that command. It looks like party.lua is the only place in the bot where that is used and it doesn't check, unless it's from a userfunction or waypoint file.

I'm looking at party.lua and I'm not sure what popup it is expecting but we could probably do this the easy way. Do this. In party.lua at around line 346 change this

Code: Select all

					sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
to this

Code: Select all

					sendMacro('} if StaticPopup1 then StaticPopup_OnClick(StaticPopup1, 1) end a={')
  • 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

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Error when I launch minigames

#5 Post by lolilol » Sun Feb 24, 2013 1:12 pm

Thx for your help.
I''ll post results tommorow :)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Error when I launch minigames

#6 Post by lisa » Sun Feb 24, 2013 6:17 pm

rock5 wrote:I'm looking at party.lua and I'm not sure what popup it is expecting
That is purely for travelling using NPC's like Snoop, you get partyleader to target a NPC and then do this in party chat

Code: Select all

npc"silverspring"
it will target your target and then travel to silverspring, so the static popup is to accept the traveling option.
I guess people might use the same command for other things besides traveling, so the check for staticpopup is probably a good idea to allow for that.

Since the path being used in the image isn't a party WP then I doubt it has anything to do with using partychat monitoring.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#7 Post by rock5 » Sun Feb 24, 2013 11:02 pm

lisa wrote:That is purely for travelling using NPC's like Snoop, you get partyleader to target a NPC and then do this in party chat
That's what I thought but I saw that 'npc' was for talking to npcs and the argument is to select the option so I figured it could be used for any choosing of npc options. So maybe the staticpopup could also be for any other static popup that might open besides when traveling via snoop. But even when using it for traveling you wont always get a popup if there is no cost. Yeah, so, I just didn't want to assume. Personally I don't do blind accepts of popups anymore, especially when teleporting via snoop because there are people that hang around teleports and ask for duels just as you are arriving at the snoop and you end up accepting the duel. :(
lisa wrote:Since the path being used in the image isn't a party WP then I doubt it has anything to do with using partychat monitoring.
Ah, yes. I should have seen that. I guess he can apply my fix to his wp file then.

Answering popups properly can be confusing. I wonder if I should make a function for answering popups.
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#8 Post by rock5 » Mon Feb 25, 2013 1:53 am

Maybe something like this

Code: Select all

function AcceptPopup(popupName)
	-- Get the correct popup frame
	local popup
	if popupName == nil then -- look for first visible popup
		for i = 1,4 do
			if RoMScript("StaticPopup"..i..":IsVisible()") then
				popup = "StaticPopup"..i
				break
			end
		end
	else -- look for the named popup
		popup = RoMScript("StaticPopup_Visible('"..popupName.."')")
	end

	-- Accept the popup
	if popup then
		print("Accepting popup "..RoMScript(popup..".which"))
		RoMScript("StaticPopup_EnterPressed("..popup..");") yrest(1000)
		RoMScript(popup..":Hide()")
	else
		print("Popup not found "..(popupName or ""))
	end
end
AcceptPopup() -- Accepts first available popup. Prints the name of the popup being accepted.
AcceptPopup(popupname) -- Accepts only the popup specified ignoring other popups.
  • 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

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Error when I launch minigames

#9 Post by lolilol » Mon Feb 25, 2013 5:06 pm

Well,


this line : sendMacro('} if StaticPopup1 then StaticPopup_OnClick(StaticPopup1, 1) end a={')
doesn't works.
Your function AcceptPopup(popupName) is a userfunction? or Ingamefunction?
thx fou your help :)

Tommorow I will check this function .

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#10 Post by rock5 » Mon Feb 25, 2013 10:52 pm

lolilol wrote:this line : sendMacro('} if StaticPopup1 then StaticPopup_OnClick(StaticPopup1, 1) end a={')
doesn't works.
Oops. It's supposed to be

Code: Select all

sendMacro('} if StaticPopup1:IsVisible() then StaticPopup_OnClick(StaticPopup1, 1) end a={')
lolilol wrote:Your function AcceptPopup(popupName) is a userfunction? or Ingamefunction?
Well, it's a bot function. You could make it into a userfunction but I was considering adding it to the bot.
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when I launch minigames

#11 Post by rock5 » Fri Mar 08, 2013 10:17 am

AcceptPopup has been added to rev 754.
  • 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest