Show Posts

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.


Messages - Endless Night

Pages: 1 ... 6 7 [8] 9 10 ... 260
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.

107
UO News / Re: [UO.com]Macroers and Houses
« on: November 25, 2019, 08:14:30 AM »
Reaction to people using houses as banks as free accounts must equal massive amount of resource bots.    Their probably is more resource bots now than actual players.

108
New member introductions / Re: Introduction To Maveth
« on: November 25, 2019, 08:09:32 AM »
welcome welcome welcome....

109
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 18, 2019, 05:15:51 PM »
Version 4

Additional gumps recognized : DaviesLocker, LoyaltyRatings,  TitlesMenu, BulkOrderBook, ABulkOrder, Purchase, VendorTeleport, HousePlacementToolSmall, HousePlacementToolLarge,  RedeemXferToken, PolymorphSelection, CleanupPointExchange, CityStone, CleanUpBritannia, HolidayReward, AuctionSafe, AuctionSafeInfo, HousePlaque, ShipPlacement, ScollsOfTranscendencebook, RecipeBook, VendorSearch, VendorSearching, VendorSearchResults, MapPlotCourse, AlacrityScrollBook, PowerScrollBook, TextEntry, Journal, ThiefDisguiseKit, undefined

Gumps Identified: 134

110
New member introductions / Re: Jander's Intro
« on: November 16, 2019, 11:51:36 AM »
welcome to scriptuo.

111
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.


Remember folks this is a helper script,  you call it from within your existing script ..  YOU DO NOT , I repeat YOU DO NOT,  run this script directly.  You don't even need to open it,  just save it in the same directory as euox.exe and forget about it.   Then in your script you call scanbuffbar.txt  and it sets %BuffBarIconNames  with a list of the icons on the buffbar that is it.

in your script do...
Code: [Select]
call scanbuffbar.txt
display ok these are the %Buffbariconsfound icons that are on the buffbar: %Buffbariconnames


DO NOT OPEN ScanBuffBar.txt or  ScanBuffBar-Subs.txt IN EUOX and RUN IT.

112
Misc. Scripts / Re: Freddy's Deed Stocker
« on: November 15, 2019, 09:00:16 PM »
Congratulations your Script has been moved to the Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.

113
Item Evaluation / Re: Freddy's item stats
« on: November 15, 2019, 08:58:10 PM »
Congratulations your Script has been moved to the Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.

114
Resource Farming / Re: Garden Bed Gathering
« on: November 15, 2019, 08:53:48 PM »
Congratulations your Script has been moved to the Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.

115
Congratulations your Script has been moved to the Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.

116
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 15, 2019, 06:31:34 PM »
So  I have this working ATM

Code: [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

Looking at your above code you click in position 130 460 twice...   looking at my button definitions  that equals Accept button
    Gosub EN_Gump_DefineButtons QuestLog                 Accept 130 461 Continue 318 438 Refuse 346 463 Previous 170 441 Close 352 465

So try below:  (Note you must wait for gump to reload after each button press, probably why your first attempt 2 posts back failed, it clicked too fast...)
Code: [Select]
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

117
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 15, 2019, 04:37:06 PM »
Well you are pressing two different buttons.  CONTINUE then ACCEPT.   The button names are the same as on the gump for the most part look at the subs script and look at the button definitions to find exact names.   Right now you cannot daisy chain button presses on a single line although maybe a potential addition, and you must wait to reload gumps that close after pressing button and reopen like the quest gump even if its a split second.

Code: [Select]
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

The difference between the _PressButton and _PressButtonContinue subs is the the _PressButtonContinue sub takes as its first parameter a Var with Value of True Or False, if the value is false the sub does nothing.    So the above code example is the same as this code below but much shorter

Code: [Select]
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



118
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 15, 2019, 12:56:52 PM »
Version 3

- Some code corrections and speedup of some functions
- Addition of new sub: EN_Gump_FindAndSetTop   (a sub that can be used without the library code)
- New gump detections VendorBuySell, Moongate, PopupMenu
   (note popup menu detects context menu popups this not 100% complete as they come in tons of sizes)


Some new example code... open moongate and then...
Code: [Select]
; ------ 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

119
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 15, 2019, 09:57:49 AM »
Or Ghost if you don't want the complexity of  CALLing  subs,  go ahead and slot the below sub right into your code.  It will perform the same function without all the bells and whistles.  And it is actually faster, so I may change some of the other code.. ummm

Code: [Select]
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



120
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: November 15, 2019, 09:25:13 AM »
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

Did you try:
Code: [Select]
call %ENs_Subs_Gumps  EN_Gump_SetTop        QuestLog             ; Find quest gump
call %ENs_Subs_Gumps  EN_Gump_PressButton   Questlog  Accept     ; Accept the quest.

Pages: 1 ... 6 7 [8] 9 10 ... 260