Error when I launch minigames
Error when I launch minigames
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,
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,
Re: Error when I launch minigames
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
Re: Error when I launch minigames
No, i Don't have this userfunction.
Re: Error when I launch minigames
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 thisto this
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);')
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
Re: Error when I launch minigames
Thx for your help.
I''ll post results tommorow
I''ll post results tommorow

Re: Error when I launch minigames
That is purely for travelling using NPC's like Snoop, you get partyleader to target a NPC and then do this in party chatrock5 wrote:I'm looking at party.lua and I'm not sure what popup it is expecting
Code: Select all
npc"silverspring"
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

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Error when I launch minigames
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:That is purely for travelling using NPC's like Snoop, you get partyleader to target a NPC and then do this in party chat

Ah, yes. I should have seen that. I guess he can apply my fix to his wp file then.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.
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
Re: Error when I launch minigames
Maybe something like this
AcceptPopup() -- Accepts first available popup. Prints the name of the popup being accepted.
AcceptPopup(popupname) -- Accepts only the popup specified ignoring other popups.
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(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
Re: Error when I launch minigames
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 .
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 .
Re: Error when I launch minigames
Oops. It's supposed to belolilol wrote:this line : sendMacro('} if StaticPopup1 then StaticPopup_OnClick(StaticPopup1, 1) end a={')
doesn't works.
Code: Select all
sendMacro('} if StaticPopup1:IsVisible() then StaticPopup_OnClick(StaticPopup1, 1) end a={')
Well, it's a bot function. You could make it into a userfunction but I was considering adding it to the bot.lolilol wrote:Your function AcceptPopup(popupName) is a userfunction? or Ingamefunction?
- 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
Re: Error when I launch minigames
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
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest