1
Scripting Chat / move gumps or just have them open where i want um to
« on: March 03, 2009, 11:40:54 AM »
i need to eather drag a craft gump or have it open just off my play window and i have no clue how to do it
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.
;;---------------------------------------------------------
;finditem QRF_NRF_MQF_PRF_LQF_OQF_RPG_RGP ;find any instrument
;set #LOBJECTID #findid
;set %currentInstrument #findid
;event macro 17 ;use object
;wait 5
;loop1:
; gosub hidestartup
; gosub DoHide
; goto loop1
;;-------------------------------------------------
;sub hidestartup
; finditem PBG C_ , #backpackid
; if #findkind <> -1
; {
; set #lobjectid #findid
; while #contsize <> 530_437
; event macro 17 0
; gosub ClickNWait 30 90 #TRUE
; gosub ClickNWait 235 70 #TRUE
; }
; else
; {
; display ok Need an inscription pen to work properly, exiting.
; stop
; }
;return
;;-----------------------------------------------
;sub DoHide
; gosub ClickNWait 285 410 #FALSE ; don't wait for gumpski
; event macro 13 9 ;peacemaking
; target
; event macro 23 0 ;target self
; click %clickx %clicky
; gosub GumpAndSizeWait generic_gump 530_437
; if #RESULT = #TRUE
; gosub hidestartup
;return
;;-----------------------------------------------
;sub ClickNWait
; set %clickx #contposx + %1
; set %clicky #contposy + %2
; click %clickx %clicky
; if %3 <> #TRUE
; return
; gosub GumpAndSizeWait generic_gump 530_437
; if #RESULT = #TRUE
; gosub hidestartup
;return
;;----------end hiding-------------------
;;-------------------------------------------------------------------------------
;; %1 = Gumpname
;; %2 = Size
;sub GumpAndSizeWait
; set %timedelay #SCNT
; GumpWait_loop1:
; if #CONTNAME = %1 && #CONTSIZE = %2
; return #FALSE ; no error
; if #SCNT > %timedelay + 7
; return #TRUE ; error, timeout
; goto GumpWait_loop1
;return #TRUE ; should never get here.