106
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 25, 2019, 01:15:51 PM »
Nicely done Ghost. But typo in your numbers is reason cancel not working... replace cancel coordinates with 225 260 not 255 260.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
At the risk of sounding simple ....
I also have the buff bar and icons spinning crazy ...
I have all 3 items/files in the same dir - euo.exe - scanbuffbar.txt - ScanBuffBar-Subs.txt
I have read most this 18page thread ... and now I give up and ask for help, cause Im truly stuck.
call scanbuffbar.txt
display ok these are the %Buffbariconsfound icons that are on the buffbar: %Buffbariconnames
So I have this working ATMCode: [Select]call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
gosub Waitingformygump contname generic_gump contize %SummarySize 50
gosub offsetclick 130 460
Wait 20
gosub offsetclick 130 460
wait 20
return
call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result Questlog Accept
call %ENs_Subs_Gumps EN_Gump_WaitForContinue #Result Questlog
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result Questlog Accept
wait 20 ; because you have it in your code above :)
Return
call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result Questlog Continue ; If quest gump found click on Refuse button
call %ENs_Subs_Gumps EN_Gump_WaitForContinue #Result Questlog 10 ; if successful btn click wait for gump to reappear
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result Questlog Accept ; if gump reappears click on Accept button
call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
if #result = #true
call %ENs_Subs_Gumps EN_Gump_PressButton Questlog Continue ; If quest gump found click on Refuse button
if #result = #true
call %ENs_Subs_Gumps EN_Gump_WaitFor Questlog 10 ; if successful btn click wait for gump to reappear
if #result = #true
call %ENs_Subs_Gumps EN_Gump_PressButton Questlog Accept ; if gump reappears click on Accept button
; ------ Setup ENs Scripting Librarys for direct access
set %EN_SubScriptPath C:\EASYUO\EUO , #spc , Scripts\ENs-Script , #spc , Library
set %ENs_Subs_Gumps %EN_SubScriptPath , \ENs-Subs-Gumps.Txt ; setup path of gump library
; ------ END OF ENs SCRIPT LIBRARY SETUP
call %ENs_Subs_Gumps EN_Gump_SetTop MoonGate ; Find Moongate Gump
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Trammel
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Felucca
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Ilshenar
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Malas
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Tokuno
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate TerMur
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Tokuno
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Malas
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Ilshenar
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Felucca
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate Trammel
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City1
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City2
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City3
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City4
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City5
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City6
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City7
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City8
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City9
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City9
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City8
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City7
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City6
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City5
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City4
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City3
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City2
call %ENs_Subs_Gumps EN_Gump_PressButtonContinue #Result MoonGate City1
gosub EN_Gump_FindAndSetTop generic_gump 507 496 ; quest log - contname sizex sizey
if #result
display ok found the gump and set it to top.
if ! #result
display ok Boohoo didnt find the gump... wtf back to the drawing board.
halt
sub EN_Gump_FindAndSetTop ; Contname contsizex contsizey
set !ENGumpLPC #LPC
set #lpc 1000
set !GumpCount 0
Repeat
set !thiscontposx #Contposx
set !thiscontposy #Contposy
set !thiscontsizex #Contsizex
set !thiscontsizey #Contsizey
set !thiscontkind #Contkind
set !thiscontname #Contname
set !thiscontid #Contid
set !thisconttype #Conttype
set !thisconthp #Conthp
event conttop !GumpCount
set !GumpTheSame ( !thiscontposx = #Contposx && !thiscontposy = #Contposy && !thiscontsizex = #Contsizex && !thiscontsizey = #Contsizey && !thiscontkind = #Contkind && !thiscontname = #Contname && !thiscontid = #Contid && !thisconttype = #Conttype && !thisconthp = #Conthp ) && !GumpCount <> 0
set !GumpCount !GumpCount + 1
until ( #contname = %1 && #Contsizex = %2 && #Contsizey = %3 ) || !GumpTheSame ; || !GumpCount = 100
set #lpc !ENGumpLPC
return ( #contname = %1 && #Contsizex = %2 && #Contsizey = %3 ) ; result = did we find it
Thx En's
I have tested the call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
And it work like I charm for my application.
Thx alot
call %ENs_Subs_Gumps EN_Gump_SetTop QuestLog ; Find quest gump
call %ENs_Subs_Gumps EN_Gump_PressButton Questlog Accept ; Accept the quest.