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 - Citrus82

Pages: [1]
1
Script Debug / Gating Script
« on: July 30, 2014, 11:05:23 AM »
A while ago i made a gating script, the purpose of the script is to constantly keep a moongate open to my vendor house. The script works as intended flawlessly, but sometimes it will move some of my things around like my backpack or my health bar. Sometimes i will find them off in the bottom corner or elsewhere on the screen, i think the part of the script that opens the runebook and opens a gate does it.

Can someone take a look at it and let me know if there is anything i can do to stop it from moving my backpack or health bar?

 
Code: [Select]
;==================================================
;Slackers Gating Script.
;Setup: Have a runebook with two runes marked to your vendor house.
;The runes must be in the first two runebok spots.
;Name your runebook Gatebook, otherwise it will ask you to target the book.
;Unlikely, but be sure no other books are named Gatebook.
;==================================================
set %current_rune 1
set %moon OTF_KEF
gosub book_director
;==================================================
main:
gosub open_book
gosub open_gate
gosub gate_check
goto main
;==================================================
sub open_book
finditem %gate_book C_ , #BACKPACKID
Set #LOBJECTID #FINDID
event macro 17 0
wait 10
set %xclick #contposx + 136
set %yclick #contposy + 194
click %xclick %yclick
return
;==================================================
sub open_gate
if %current_rune = 1
{
set %xclick #contposx + 137
set %yclick #contposy + 162
click %xclick %yclick
set %current_rune 2
return
}
set %xclick #contposx + 296
set %yclick #contposy + 162
click %xclick %yclick
set %current_rune 1
return
;==================================================
sub gate_check
wait 3s
finditem %moon G_1
if #FINDCNT < 1
{
return
}
wait 29s
return
;==================================================
sub gate_book
display Please target the gate book.
set #lTargetID X
set #targCurs 1
wait 2
Wait_for_book:
if #lTargetID = X
{
goto Wait_for_book
}
set %gate_book #ltargetid
}
return
;==================================================
sub book_detector
repeat
{
finditem %runebook C_ , #BACKPACKID
event property #findid
if Gatebook in #PROPERTY
{
set %gate_book #FINDID
return
}
ignoreitem #FINDID
}
until #FINDCNT = 0
return
;==================================================
sub book_director
set %runebook ZBN
set %gate_book n/a
gosub book_detector
if %gate_book = n/a
{
gosub gate_book
}
return
;==================================================

2
Script Debug / Re: Timer display?
« on: July 15, 2014, 12:43:09 PM »
Code: [Select]
set %timer #SCNT + 1320
repeat
set %Time_Left %Timer - #Scnt
event exmsg #CHARID 0 40 %time_left
wait 20
until #SCNT > %timer

Thanks for the reply, but i screwed up and lost the whole script (forgot to save it) but if i get the urge to re-write it i'll throw this in there.

Lesson learned, save your work every now and then. . . heh.

3
Script Debug / Timer display?
« on: July 15, 2014, 03:36:29 AM »
I made a script that executes and then when it has run through it waits so long and activates again, i was wondering if i could somehow add a wait timer over the top of my characters head that counts down while its waiting.

I could use something like. . .

Code: [Select]
event exmsg #CHARID 0 40 %time_left
My current wait is set up like this, if it helps.

Code: [Select]
set %timer #SCNT + 1320
repeat
until #SCNT > %timer

4
Script Debug / Re: Debugging Craftmatic heartwood script.
« on: July 14, 2014, 12:03:12 AM »
Citrus -

That script went unsupported so long ago that I think you are fine with posting up your version for input.

XII

Oh ok, thanks.

5
Script Debug / Debugging Craftmatic heartwood script.
« on: July 13, 2014, 01:41:19 AM »
I recently returned to UO, and i discovered that the script i used years ago (Craftmatic) for my heartwood quests didn't work, probably because it has been many years since then and i'm now playing on a free-shard.

I went through the script and fixed all the bugs that i could find and i now have it in working order, it will work on any quest in heartwood, well at least on the free-shard i currently play on. I have one problem with it, it's not really a big deal considering i don't afk the script anyways, but when the script is searching for the current quest i'm on it does a "Event Macro 17 0" on the NPC in order to get a new quest to pop up. This causes the NPC's paper doll to also pop up, and the paper doll becomes the current container gump instead of the quest window.

This causes the script to think the gump did not open and it tries over and over again to cycle through the quests, popping up a window telling me that the gump didn't open and it will reset and try again. I added a few lines into the script where in the event a paper doll is the current gump in easyuo it right clicks it away, allowing the quest gump to become the current gump.

Code: [Select]
if #CONTNAME = paperdoll_gump
{
set %xclick #contposx + 37
set %yclick #contposy + 49
click %xclick %yclick r
}

This allows the script to work pretty good but once in a while it messes up and it tells me it needs to reset, all i have to do is click the ok button and it fixes itself when it cycles back through to the code i added above. But i was wondering if anyone has a better way i could go about doing this?

I hope it's not against the rules to post this script, but i don't see how i'm going to get help if people can't see the code i'm trying to fix. Also, this script requires a script called kalocr.exe to be placed in the same directory the euo.exe is in to work.

Code: [Select]
;======================================================================
; Script Name: CraftMatic (Crafters Quest Automater)
; Author: Tazzman
; Version: 2.06
; Client Tested with: 1.5.0B
; EUO version tested with: 1.5 Build 0062
; Shard OSI / FS: OSI
; Revision Date: 15 October 2005
; Public Release: 11 September 2005
; Purpose: To automate the creation & turn-in of the various Crafter Quest Items
; using the minimum resources needed per quest type.
;======================================================================
; Instructions - Just have 10 or so of whatever tool you need in your pack for
; the particular quest you're doing - Tinker Tools, Sewing Kits, Jointing Planes
; or Tongs, along with a couple thousand ingots or pieces of cloth.
;
; FOR THE SCRIPTS THAT REQUIRE BOARDS OR EMPTY BOTTLES, have a packy standing
; next to you With it's pack OPEN (and positioned at the bottom of the screen)
; before starting the script. Stand in the quest area, no more than 8-10 paces
; from the Quest Giver. Pick the Quest, press the "Start" button, sit back
; and watch the satchels roll in. Smile
;
; Quest Detection Routine courtesy of Kal In Ex, with his wonderful
; FAST OCR script (kalocr.txt) Thanks Kal!
;======================================================================

:Setup
gosub KalOCRSetup

Begin:
gosub menuinit
ignoreitem reset
set #menubutton N/A
menu delete EUOLabel3
menu text EUOLabel3 85 148 Status: Paused                  

hotkeyloop:
if #menubutton = Start
goto Start
goto hotkeyloop

;======================================================================

Start:
menu set EUOLabel3 Status: Working...            
gosub QuestType
gosub countem
gosub FindCrafter
gosub GetNewQuest
gosub MarkItems
gosub TurnEmIn
gosub PackStatus

if #Menubutton = Pause1
menu set EUOLabel3 Status: Paused
goto HotKeyLoop

;======================================================================

sub FindCrafter
FindCrafter:
FindItem XU_AV G_12

Event Property #FindID

If %Weaver notin #Property || #FindRep <> 7
{
IgnoreItem #FindID
Goto FindCrafter
}

Set %CrafterID #FindID
Set %CrafterType #FindType
if #menubutton = Pause1
menu set EUOLabel3 Status: Pausing after Cycle
return

;======================================================================

sub GetNewQuest
GetNewQuest:
Set #LObjectID %CrafterID
Set #LObjectType %CrafterType
Event Macro 17 0
wait 5
Paperdoll1:
if #CONTNAME = paperdoll_gump
{
set %xclick #contposx + 37
set %yclick #contposy + 49
click %xclick %yclick r
goto Paperdoll1
}
Gosub OpenGump generic_gump 507_496 999 999
Set %AcceptX ( #ContPosX + 132 )
Set %AcceptY ( #ContPosY + 461 )
Set %RefuseX ( #ContPosX + 344 )
Set %RefuseY ( #contPosY + 461 )
wait 10
call %kalocr GetMLQInfo QuestOffer #contposx #contposy
If %1 <> %QuestPixels
Goto GetNewQuest
else
Click %AcceptX %AcceptY
Wait 20
if #menubutton = Pause1
menu set EUOLabel3 Status: Pausing after Cycle
return

;======================================================================

Sub MarkItems
exevent popup #charid
WaitingForGump:
gosub OpenGump normal_gump
wait 2
set %xclick #contposx + 47
set %yclick #contposy + 92
click %xclick %yclick
wait 10
if %ItemType = JTL
Set %tomark %tomark - 2

Mark:
for %i 1 %tomark
{
 finditem %itemtype C_ , #backpackid
 if #findkind = -1
 {
 wait 10
 Display OK Don't have enough %ItemName! Only had %i
 return
 }
 set #ltargetkind 1
 set #ltargetid #findid
 target 3s
 event macro 22
 ignoreitem #findid
}
wait 10
Key ESC
if #menubutton = Pause1
menu set EUOLabel3 Status: Pausing after Cycle
Return

;======================================================================

Sub TurnEmIn
Set #LObjectID %CrafterID
Set #LObjectType %CrafterType
Event Macro 17 0
wait 5
Paperdoll2:
if #CONTNAME = paperdoll_gump
{
set %xclick #contposx + 37
set %yclick #contposy + 49
click %xclick %yclick r
goto Paperdoll2
}
Gosub OpenGump generic_gump 507_496 999 999
wait 10
Set %AcceptX ( #ContPosX + 129 )
Set %AcceptY ( #ContPosY + 461 )
Click %AcceptX %AcceptY
Gosub OpenGump generic_gump 507_496 999 999
wait 10
Set %AcceptX ( #ContPosX + 129 )
Set %AcceptY ( #ContPosY + 461 )
Click %AcceptX %AcceptY
Wait 20
Return

;======================================================================

Sub OpenGump
Set %Timer ( #SCnt + 6 )

WaitForGumpToOpen:
Wait 1
If %Timer < #Scnt
{
Display OK The Gump Did Not Open.$Script Will Now attempt to restart.$If this happens more than twice in a row, please halt & restart script.
Goto Start
}

If #ContName <> %1 && #ContSize <> %2
Goto WaitForGumpToOpen
Wait 10
if %3 <> 999 && %4 <> 999
{
Set #ContPosX %3
Set #ContPosY %4
}
Return

;======================================================================

Sub CraftGump
Set %Timer ( #SCnt + 6 )

WaitForCraftGump:
Finditem %Tool
if #findkind = -1
return
Wait 1
If %Timer < #Scnt
{
Display OK The Crafting Gump Did Not Open.$Script Will Now Halt.
Halt
}

If #ContName <> %1 && #ContSize <> %2
Goto WaitForCraftGump
Wait 5
if %3 <> 999 && %4 <> 999
{
Set #ContPosX %3
Set #ContPosY %4
}
Return

;======================================================================

sub countem
if %ItemType = WUF ; If Doing Bottle Quest, make sure we have 50 to bypass craft gumps
Gosub CheckInitialMaterial

countem:
 ignoreitem reset
 Finditem %itemtype C_ , #backpackid
 If #FindCnt < %ToMark
 {
 Set %Amount ( %ToMark - #FindCnt )
 gosub MakeItem
 goto countem
 }
return

;======================================================================

Sub MakeItem
gosub CheckInitialMaterial
if %ItemType = WUF
Return

FindTool:
FindItem %ToolID C_ , #backpackid

If #FindKind = -1
{
Display OK You Do Not Have Any %ToolType $ Script Will Now halt.
halt
}
set %Tool #FindID
event property %tool
IF runic IN %tool
{
ignoreitem %tool
goto Findtool
}
 Set #LObjectID #FindID
 Wait 1
 Event Macro 17 0
 Gosub OpenGump generic_gump 530_537 999 999
 Set %OneButtonX ( #ContPosX + %OffsetX1 )
 Set %OneButtonY ( #ContPosY + %OffsetY1 )
 Set %TwoButtonX ( #ContPosX + %OffsetX2 )
 Set %TwoButtonY ( #ContPosY + %OffsetY2 )
 Set %ThreeButtonX ( #ContPosX + %OffsetX3 )
 Set %ThreeButtonY ( #ContPosY + %OffsetY3 )
 Set %MakeLastX ( #ContPosX + 280 )
 Set %MakeLastY ( #ContPosY + 412 )
 Set %ExitButtonX ( #ContPosX + 26 )
 Set %ExitButtonY ( #ContPosY + 412 )
 Click %OneButtonX %OneButtonY
 Gosub CraftGump generic_gump 530_507 999 999
 Click %TwoButtonX %TwoButtonY
 Gosub CraftGump generic_gump 530_507 999 999
 Click %ThreeButtonX %ThreeButtonY
 Gosub CraftGump generic_gump 530_507 999 999

 set %tomake ( %amount - 1 )
 for %t 1 %tomake
 {
 gosub CheckMaterial
 Finditem %Tool
 if #findkind = -1
 Return
 Click %MakeLastX %MakeLastY
 Gosub CraftGump generic_gump 530_507 999 999
 if #menubutton = Pause1
 menu set EUOLabel3 Status: Pausing after Cycle
 }
 Click %ExitButtonX %ExitButtonY
Return

;======================================================================

Sub CheckMaterial
ignoreitem reset
finditem %MaterialType C_ , #backpackid
if #findstack < %MaterialAmount
   {
   set %amounttodrag ( %MaterialAmount - #findstack )
   finditem %MaterialType C_
if #findkind = -1
{
Display OK You do not have enough Materials (Boards/Ingots/Cloth/Bottles).$Please check to ensure your pets backpack is open.$If you're out of raw materials, please restock.
halt
}
   set %MaterialOnPet #Findstack
   set %amounttodrag ( %MaterialAmount - %MaterialOnYou )
if %amounttodrag > %MaterialOnPet
{      
exevent drag #findid %MaterialOnPet
wait 10
exevent dropc #backpackid
wait 10
goto CheckMaterial
}
   exevent drag #findid %amounttodrag
   wait 10
   exevent dropc #backpackid
   wait 10
   ignoreitem reset
   return
   }
return

;======================================================================

sub CheckInitialMaterial
ignoreitem reset
finditem %MaterialType C_ , #backpackid
set %MaterialOnYou #findstack
ignoreitem #findid
wait 10
if %MaterialOnYou < %InitialMaterial
{
finditem %MaterialType C_
   if #findkind = -1
       {
       display OK You do not have enough Materials (Boards/Ingots/Cloth/Bottles).$Please check to ensure your pets backpack is open.$If you're out of raw materials, please restock.
       halt
       }
set %MaterialOnPet #Findstack
set %amounttodrag ( %InitialMaterial - %MaterialOnYou )
  if %amounttodrag > %MaterialOnPet
       {
       exevent drag #findid %MaterialOnPet
       wait 10
       exevent dropc #backpackid
       wait 10
       goto CheckInitialMaterial
       }
exevent drag #findid %amounttodrag
wait 10
exevent dropc #backpackid
wait 10
ignoreitem reset
return
}
return

;======================================================================

sub PackStatus
event property #backpackid
str pos #property Contents:
str del #property 1 #strres
set %var #strres
str pos %var $
if #strres > 1
str del %var #strres 100
set %var #strres
str len %var
set %strlen #strres
set %number1 1
str del %number1 1 1
set %number1 #strres
set %number2 1
str del %number2 1 1
set %number2 #strres
set %numb 1
for %i 1 %strlen
{
   str mid %var %i 1
   if ! ( #strres < 1 || #strres > 0 ) 3
   if %number1 > 0 2
   set %numb 2
   goto skip
   if ( #strres < 1 || #strres > 0 )
   set %number . %numb %number . %numb , #strres
   skip:
}
set %maxitems ( 120 - %tomark )
if %number1 > %maxitems
{
Display OK Your backpack is too full. Please make some room and restart the script.
set #menubutton = N/A
goto Begin
}
Return

;======================================================================

sub KalOCRSetup
set %kalocr kalocr.txt
call %kalocr SetCharFormat NoSpaces
if %1 <> NoSpaces
{
Display OK  Unable to find KALOCR.TXT. Please ensure that it is in the EUOX.EXE directory.
Halt
}
Return

;======================================================================

Sub QuestType
menu get combo

if #menures = 1
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 130 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 130 ; Y-Axis Offset for Category List 2
Set %OffsetX3 233 ; X-Axis Offset for Category List 3
Set %OffsetY3 110 ; Y-Axis Offset for Category List 3
Set %ItemName BarrelTaps ; Yes, we're making Barrel Taps today.
Set %Weaver wine ; Name of the Quest Giver
Set %ItemType IEG ; Barrel Tap ID
Set %MaterialType ENK ; Ingots
Set %MaterialAmount 2
set %InitialMaterial 50
Set %QuestPixels Beer_Goggles ; For the Beer Goggles Quest
Set %ToMark 25 ; How many Barrel Taps do we need?
Set %ToolID JTL_KTL ; Tinker Tool ID
Set %ToolType Tinker_Tools
return
}

;======================================================================

if #menures = 2
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 380 ; X-Axis Offset for Category List 2
Set %OffsetY2 270 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 110 ; Y-Axis Offset for Category List 3
Set %ItemName Garlands ; Flower Garlands
Set %Weaver cloth ; Name of the Quest Giver
Set %ItemType JJN ; Flower Garland ID
Set %MaterialType BUI_CUI ; Cloth
Set %MaterialAmount 5
Set %InitialMaterial 50
Set %QuestPixels Haute_Couture ; For the Haute Couture Quest
Set %ToMark 10 ; How many Garlands do we need?
Set %ToolID HAG ; Sewing Kit
Set %ToolType Sewing_Kits
return
}

;======================================================================

if #menures = 3
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 190 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 190 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 90 ; Y-Axis Offset for Category List 3
Set %ItemName BroadSwords ; BroadSwords
Set %Weaver metal ; Name of the Quest Giver
Set %ItemType ATF ; BroadSword ID
Set %MaterialType ENK ; Ingots
Set %MaterialAmount 10
Set %InitialMaterial 100
Set %QuestPixels Cuts_Both_Ways ; For the Cuts Both Ways Quest
Set %ToMark 10 ; How many Broadswords do we need?
Set %ToolID OBG_TBG_TLH_FBG ; Blacksmith Tools
Set %ToolType Tongs
return
}

;======================================================================

if #menures = 4
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 170 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 170 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 170 ; Y-Axis Offset for Category List 3
Set %ItemName SpyGlasses ; SpyGlasses
Set %Weaver bark ; Name of the Quest Giver
Set %ItemType ZVH ; Spyglass ID
Set %MaterialType ENK ; Ingots
Set %MaterialAmount 4
Set %InitialMaterial 100
Set %QuestPixels The_Far_Eye ; For the Far Eye Quest
Set %ToMark 20 ; How many Spyglasses do we need?
Set %ToolID JTL_KTL ; Tinker Tools
Set %ToolType Tinker_Tools
return
}

;======================================================================

if #menures = 5
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 110 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 110 ; Y-Axis Offset for Category List 3
Set %ItemName FukiyaDarts ; Darts.
Set %Weaver bowcrafter ; Name of the Quest Giver
Set %ItemType SGP ; Fuyika Dart ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 1
Set %InitialMaterial 1
Set %QuestPixels Lethal_Darts ; For the Deadly Darts Quest
Set %ToMark 10 ; How many Darts do we need?
Set %ToolID UFG ; Fletching Tools
Set %ToolType Fletching_Tools
return
}

;======================================================================

if #menures = 6
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 110 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 80 ; Y-Axis Offset for Category List 3
Set %ItemName Footstools ; Footstools.
Set %Weaver trinket ; Name of the Quest Giver
Set %ItemType QFE ; Footstool ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 9
Set %InitialMaterial 90
Set %QuestPixels Arch_Support ; For the Arch Support Quest
Set %ToMark 10 ; How many Footstools do we need?
Set %ToolID IGG_KGG_WFG_AIG_AGG_EGG_BIG_ZHG_CIG_CGG ; Carpentry Tools
Set %ToolType Carp_Tools
return
}

;======================================================================

if #menures = 7
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 110 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 80 ; Y-Axis Offset for Category List 3
Set %ItemName EmptyBottles ; EmptyBottles
Set %Weaver Wine ; Name of the Quest Giver
Set %ItemType WUF ; Empty Bottle ID
Set %MaterialType WUF ; Empty Bottle ID
Set %MaterialAmount 50
Set %InitialMaterial 50
Set %QuestPixels Message_in_a_Bottle ; For the Message In a Bottle Quest
Set %ToMark 1 ; How many Stacks of bottles do we need?
Set %ToolID IGG_KGG_WFG_AIG_AGG_EGG_BIG_ZHG_CIG_CGG ; Irrelevant
Set %ToolType Jointing_Planes ; Irrelevant
return
}

;======================================================================

if #menures = 8
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 130 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 130 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 70 ; Y-Axis Offset for Category List 3
Set %ItemName Bows ; Regular Bows
Set %Weaver bowcrafter ; Name of the Quest Giver
Set %ItemType WOH ; Fuyika Dart ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 7
Set %InitialMaterial 70
Set %QuestPixels A_Simple_Bow ; For the Simple Bow Quest
Set %ToMark 10 ; How many Bows do we need?
Set %ToolID UFG ; Fletching Tools
Set %ToolType Fletching_Tools
return
}

;======================================================================

if #menures = 9
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 110 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 80 ; Y-Axis Offset for Category List 3
Set %ItemName Footstools ; Footstools.
Set %Weaver Ciala ; Name of the Quest Giver
Set %ItemType QFE ; Footstool ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 9
Set %InitialMaterial 90
Set %QuestPixels Arch_Support ; For the Arch Support Quest
Set %ToMark 10 ; How many Footstools do we need?
Set %ToolID IGG_KGG_WFG_AIG_AGG_EGG_BIG_ZHG_CIG_CGG ; Carpentry Tools
Set %ToolType Carp_Tools
return
}

;======================================================================

if #menures = 10
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 130 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 130 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 90 ; Y-Axis Offset for Category List 3
Set %ItemName Crossbows ; Crossbows
Set %Weaver bowcrafter ; Name of the Quest Giver
Set %ItemType JSF ; Fuyika Dart ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 7
Set %InitialMaterial 70
Set %QuestPixels Ingenious_Archery,_Part_I ; For the Crossbow Quest
Set %ToMark 10 ; How many Crossbows do we need?
Set %ToolID UFG ; Fletching Tools
Set %ToolType Fletching_Tools
return
}

;======================================================================

if #menures = 11
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 130 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 130 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 110 ; Y-Axis Offset for Category List 3
Set %ItemName Heavy_Crossbows ; Heavy Crossbows
Set %Weaver bowcrafter ; Name of the Quest Giver
Set %ItemType LMH ; Fuyika Dart ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 10
Set %InitialMaterial 80
Set %QuestPixels Ingenious_Archery,_Part_II ; For the Heavy Crossbow Quest
Set %ToMark 8 ; How many Heavy Crossbows do we need?
Set %ToolID UFG ; Fletching Tools
Set %ToolType Fletching_Tools
return
}

;======================================================================

if #menures = 12
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 130 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 130 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 150 ; Y-Axis Offset for Category List 3
Set %ItemName Repeating_Crossbows ; Crossbows
Set %Weaver bowcrafter ; Name of the Quest Giver
Set %ItemType PPO ; Repeating Crossbow ID
Set %MaterialType TLK ; Boards
Set %MaterialAmount 10
Set %InitialMaterial 100
Set %QuestPixels Ingenious_Archery,_Part_III ; For the Repeating Crossbow Quest
Set %ToMark 10 ; How many Repeating Crossbows do we need?
Set %ToolID UFG ; Fletching Tools
Set %ToolType Fletching_Tools
return
}

;======================================================================

if #menures = 13
{
Set %OffsetX1 29 ; X-Axis Offset for Category List 1
Set %OffsetY1 110 ; Y-Axis Offset for Category List 1
Set %OffsetX2 29 ; X-Axis Offset for Category List 2
Set %OffsetY2 110 ; Y-Axis Offset for Category List 2
Set %OffsetX3 230 ; X-Axis Offset for Category List 3
Set %OffsetY3 130 ; Y-Axis Offset for Category List 3
Set %ItemName Tinker Toolkits ; Crossbows
Set %Weaver trinket ; Name of the Quest Giver
Set %ItemType JTL_KTL ; Repeating Crossbow ID
Set %MaterialType ENK ; Boards
Set %MaterialAmount 2
Set %InitialMaterial 20
Set %QuestPixels Necessity's_Mother ; For the Repeating Crossbow Quest
Set %ToMark 12 ; How many Repeating Crossbows do we need?
Set %ToolID JTL_KTL ; Fletching Tools
Set %ToolType Tinker_Tools
return
}

;======================================================================



;--------- EasyUO Menu Designer Code Begin ---------
sub menuinit
  menu Clear
  menu Window Title CraftMatic v2.06
  menu Window Color Black
  menu Window Size 230 170
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Size 8
  menu Font Style
  menu Font Color Red
  menu Font Transparent #false
  menu Font Align Left
  menu Font BGColor Black
  menu Text EUOLabel1 60 34 Quest Item to Produce
  menu Font Size 9
  menu Font Size 8
  menu Font Color WindowText
  menu Font BGColor Window
  menu Combo Create combo 10 10 210
  menu Combo Add combo Barrel Taps (Wine Tender)
  menu Combo Add combo Garlands (Cloth Weaver)
  menu Combo Add combo BroadSwords (Metal Weaver)
  menu Combo Add combo SpyGlasses (Bark Weaver)
  menu Combo Add combo Fukiya Dart (BowCrafter)
  menu Combo Add combo Footstools (Trinket Weaver)
  menu Combo Add combo EmptyBottles (Wine Tender)
  menu Combo Add combo Regular Bows (BowCrafter)
  menu Combo Add combo Footstools2 (Ciala the Arborist)
  menu Combo Add combo Crossbows (BowCrafter)
  menu Combo Add combo Heavy Crossbows (Bowcrafter)
  menu Combo Add combo Repeating Crossbows (Bowcrafter)
  menu Combo Add combo Tinker Tools (Trinket Weaver)
  menu Font BGColor BtnFace
  menu Button Start 64 70 109 25 Start!
  menu Button Pause1 10 140 50 25 Pause
  menu Font BGColor Black
  menu Font Color White
  menu Font Align Center
  menu Show 800 10
return
;--------- EasyUO Menu Designer Code End ---------

 

6
Script Debug / Having trouble with me new spellbook filler script.
« on: July 11, 2014, 08:42:08 PM »
Edit: I rebuilt the click subs and a few others in a different way and they're fixed now, and my script just filled its first spell book, it still has a few minor bugs to tweak, but i'm good to go at the moment, please disregard the post below, thanks.

I was building a script that fills a spellbook, the way it is suppose to work is, you have one container that hold your reg, blank scrolls, and empty spellbooks, and a optional container that has pre-made spell scrolls. If you have the optional bag of pre-made scrolls it will search for the current spell in that bag, if it find the scroll it drops it in the book, if not it makes the scroll and drops it in the book.

The problem is it gets screwed up when it tries to craft scrolls, it's like the click coordinates are off, but i tested them separately and they work fine. Sorry about my shoddy scripting skills, please don't poke fun.

Code: [Select]
set %use_scroll_bag 1
set %scrollspot 1
set %spellbooks MPF
set %pen PBG
;==================================================
set %blank_scrolls DPF
set %black_pearl KUF
set %blood_moss JUF
set %garlic KZF
set %ginseng JZF
set %mandrake_root MZF
set %nightshade WZF
set %spiders_silk RZF
set %sulfurous_ash SZF
;==================================================
;==================================================
gosub reg_box
goSub bag_o_scrolls_check
gosub spellbook
gosub current_scroll
main:
gosub search_bag
gosub drop_to_Book
goto main
;==================================================
Sub bag_o_scrolls_check
display yesno do you have a bag of scrolls you would also like to use?
if #dispRes = Yes
{
wait 10
display Please target the container of scrolls.
set #lTargetID X
set #targCurs 1
wait 2
Wait_for_container:
if #lTargetID = X
{
goto Wait_for_container
}
set %scrollbag #LTARGETID
set %use_scroll_bag 2
}
return
;==================================================
sub reg_box
display Please target the container with the reagents in it.
set #lTargetID X
set #targCurs 1
wait 2
Wait_for_reagents:
if #lTargetID = X
{
goto Wait_for_reagents
}
set %reg_box #ltargetid
}
return
;==================================================
sub spellbook
finditem %spellbooks C_ , %reg_box
if #FINDCNT < 1
{
display no spellbook found in the reagent box.
halt
}
set %current_book #FINDID
Exevent drag %current_book #FINDSTACK
wait 10
Exevent Dropc #backpackid
wait 10
return
;==================================================
sub current_scroll
gosub scroll_ . %scrollspot
return
;==================================================
sub search_bag
if %use_scroll_bag = 1
{
return
}
finditem %scroll C_ , %scrollbag
if #FINDCNT >= 1
{
Exevent drag #FINDID 1
wait 10
Exevent Dropc #backpackid
wait 20
}
return
;==================================================
sub drop_to_Book
drop_loop:
finditem %scroll C_ , #BACKPACKID
set %current_scroll #FINDID
if #FINDCNT < 1
{
gosub get_regs
gosub make_scroll
gosub mana
goto drop_loop
}
Exevent drag #FINDID #FINDSTACK
wait 10
Exevent Dropc %current_book
wait 1s
ignoreitem %current_scroll
set %scrollspot %scrollspot + 1
return
;==================================================
sub make_scroll
finditem %scroll C_ , #BACKPACKID
if #FINDCNT >= 1
{
return
}
finditem %pen C_ , #BACKPACKID
set #LOBJECTID #FINDID
event macro 17 0
gosub current_scroll
set %x_circle #CONTPOSX + 25
set %x_spot #CONTPOSX + 230
wait 10
click %x_circle %circle
wait 10
click %x_spot %spot
wait 2s
return
;==================================================
sub mana
if ( %scrollspot > 0 ) && ( %scrollspot < 9 )
set %mana 4
if ( %scrollspot > 8 ) && ( %scrollspot < 17 )
set %mana 6
if ( %scrollspot > 16 ) && ( %scrollspot < 25 )
set %mana 9
if ( %scrollspot > 24 ) && ( %scrollspot < 33 )
set %mana 11
if ( %scrollspot > 32 ) && ( %scrollspot < 41 )
set %mana 14
if ( %scrollspot > 40 ) && ( %scrollspot < 49 )
set %mana 20
if ( %scrollspot > 48 ) && ( %scrollspot < 57 )
set %mana 40
if ( %scrollspot > 56 ) && ( %scrollspot < 65 )
set %mana 50
if #MANA < %mana
{
event Macro 13 46
repeat
until #MANA = #MAXMANA
}
return
;==================================================
sub get_regs
Finditem %black_pearl C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %black_pearl C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %blood_moss C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %blood_moss C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %garlic C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %garlic C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %ginseng C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %ginseng C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %mandrake_root C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %mandrake_root C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %nightshade C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %nightshade C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %spiders_silk C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %spiders_silk C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %sulfurous_ash C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %sulfurous_ash C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
Finditem %blank_scrolls C_ , #BACKPACKID
set %this 5
if #FINDSTACK < 5
{
set %temp_stack ( %this - #FINDSTACK )
Finditem %blank_scrolls C_ , %reg_box
wait 10
Exevent drag #FINDID %temp_stack
wait 10
Exevent Dropc #BACKPACKID
wait 10
}
return
;==================================================
sub scroll_1
set %scroll NXL
set %circle #contposy + 90
set %spot #contposy + 69
return

sub scroll_2
set %scroll QXL
set %circle #contposy + 92
set %spot #contposy + 90
return

sub scroll_3
set %scroll PXL
set %circle #contposy + 92
set %spot #contposy + 110
return

sub scroll_4
set %scroll AYL
set %circle #contposy + 92
set %spot #contposy + 130
return

sub scroll_5
set %scroll ZXL
set %circle #contposy + 92
set %spot #contposy + 151
return

sub scroll_6
set %scroll CYL
set %circle #contposy + 92
set %spot #contposy + 171
return

sub scroll_7
set %scroll BYL
set %circle #contposy + 92
set %spot #contposy + 190
return

sub scroll_8
set %scroll WXL
set %circle #contposy + 92
set %spot #contposy + 210
return

sub scroll_9
set %scroll VXL
set %circle #contposy + 109
set %spot #contposy + 69
return

sub scroll_10
set %scroll YXL
set %circle #contposy + 109
set %spot #contposy + 90
return

sub scroll_11
set %scroll XXL
set %circle #contposy + 109
set %spot #contposy + 110
return

sub scroll_12
set %scroll IYL
set %circle #contposy + 109
set %spot #contposy + 130
return

sub scroll_13
set %scroll HYL
set %circle #contposy + 109
set %spot #contposy + 151
return

sub scroll_14
set %scroll KYL
set %circle #contposy + 109
set %spot #contposy + 171
return

sub scroll_15
set %scroll JYL
set %circle #contposy + 109
set %spot #contposy + 190
return

sub scroll_16
set %scroll EYL
set %circle #contposy + 109
set %spot #contposy + 210
return

sub scroll_17
set %scroll DYL
set %circle #contposy + 129
set %spot #contposy + 69
return

sub scroll_18
set %scroll GYL
set %circle #contposy + 129
set %spot #contposy + 90
return

sub scroll_19
set %scroll FYL
set %circle #contposy + 129
set %spot #contposy + 110
return

sub scroll_20
set %scroll STL
set %circle #contposy + 129
set %spot #contposy + 130
return

sub scroll_21
set %scroll RTL
set %circle #contposy + 129
set %spot #contposy + 151
return

sub scroll_22
set %scroll UTL
set %circle #contposy + 129
set %spot #contposy + 171
return

sub scroll_23
set %scroll TTL
set %circle #contposy + 129
set %spot #contposy + 190
return

sub scroll_24
set %scroll OTL
set %circle #contposy + 129
set %spot #contposy + 210
return

sub scroll_25
set %scroll NTL
set %circle #contposy + 151
set %spot #contposy + 69
return

sub scroll_26
set %scroll QTL
set %circle #contposy + 151
set %spot #contposy + 90
return

sub scroll_27
set %scroll PTL
set %circle #contposy + 151
set %spot #contposy + 110
return

sub scroll_28
set %scroll AUL
set %circle #contposy + 151
set %spot #contposy + 130
return

sub scroll_29
set %scroll ZTL
set %circle #contposy + 151
set %spot #contposy + 151
return

sub scroll_30
set %scroll CUL
set %circle #contposy + 151
set %spot #contposy + 171
return

sub scroll_31
set %scroll BUL
set %circle #contposy + 151
set %spot #contposy + 190
return

sub scroll_32
set %scroll WTL
set %circle #contposy + 151
set %spot #contposy + 210
return

sub scroll_33
set %scroll VTL
set %circle #contposy + 171
set %spot #contposy + 69
return

sub scroll_34
set %scroll YTL
set %circle #contposy + 171
set %spot #contposy + 90
return

sub scroll_35
set %scroll XTL
set %circle #contposy + 171
set %spot #contposy + 110
return

sub scroll_36
set %scroll IUL
set %circle #contposy + 171
set %spot #contposy + 130
return

sub scroll_37
set %scroll HUL
set %circle #contposy + 171
set %spot #contposy + 151
return

sub scroll_38
set %scroll KUL
set %circle #contposy + 171
set %spot #contposy + 171
return

sub scroll_39
set %scroll JUL
set %circle #contposy + 171
set %spot #contposy + 190
return

sub scroll_40
set %scroll EUL
set %circle #contposy + 171
set %spot #contposy + 210
return

sub scroll_41
set %scroll DUL
set %circle #contposy + 190
set %spot #contposy + 69
return

sub scroll_42
set %scroll GUL
set %circle #contposy + 190
set %spot #contposy + 90
return

sub scroll_43
set %scroll FUL
set %circle #contposy + 190
set %spot #contposy + 110
return

sub scroll_44
set %scroll QUL
set %circle #contposy + 190
set %spot #contposy + 130
return

sub scroll_45
set %scroll PUL
set %circle #contposy + 190
set %spot #contposy + 151
return

sub scroll_46
set %scroll SUL
set %circle #contposy + 190
set %spot #contposy + 171
return

sub scroll_47
set %scroll RUL
set %circle #contposy + 190
set %spot #contposy + 190
return

sub scroll_48
set %scroll MUL
set %circle #contposy + 190
set %spot #contposy + 210
return

sub scroll_49
set %scroll LUL
set %circle #contposy + 210
set %spot #contposy + 69
return

sub scroll_50
set %scroll OUL
set %circle #contposy + 210
set %spot #contposy + 90
return

sub scroll_51
set %scroll NUL
set %circle #contposy + 210
set %spot #contposy + 110
return

sub scroll_52
set %scroll YUL
set %circle #contposy + 210
set %spot #contposy + 130
return

sub scroll_53
set %scroll XUL
set %circle #contposy + 210
set %spot #contposy + 151
return

sub scroll_54
set %scroll AVL
set %circle #contposy + 210
set %spot #contposy + 171
return

sub scroll_55
set %scroll ZUL
set %circle #contposy + 210
set %spot #contposy + 190
return

sub scroll_56
set %scroll UUL
set %circle #contposy + 210
set %spot #contposy + 210
return

sub scroll_57
set %scroll TUL
set %circle #contposy + 230
set %spot #contposy + 69
return

sub scroll_58
set %scroll WUL
set %circle #contposy + 230
set %spot #contposy + 90
return

sub scroll_59
set %scroll VUL
set %circle #contposy + 230
set %spot #contposy + 110
return

sub scroll_60
set %scroll GVL
set %circle #contposy + 230
set %spot #contposy + 130
return

sub scroll_61
set %scroll FVL
set %circle #contposy + 230
set %spot #contposy + 151
return

sub scroll_62
set %scroll IVL
set %circle #contposy + 230
set %spot #contposy + 171
return

sub scroll_63
set %scroll HVL
set %circle #contposy + 230
set %spot #contposy + 190
return

sub scroll_64
set %scroll CVL
set %circle #contposy + 230
set %spot #contposy + 210
return





7
Script Debug / Re: First script help please
« on: May 07, 2011, 06:38:14 PM »
That sounds good but i was wondering, instead of having it wait for 30s, could you have it scanning for something like World_save_complete??

8
Script Debug / Re: First script help please
« on: May 07, 2011, 11:01:30 AM »
Thanks  :)

Its working again, ill have to remember that for my future scripts.

Now if only i cant make/insert my recall check subs, and a world save checker without screwing it up.

9
Script Debug / Re: First script help please
« on: May 07, 2011, 09:33:10 AM »
Thanks, i removed the spaces in the two subs and now it doesn't skip them.

I set the three top subs to set the rune book id, drop container id, and get the x coordinates of both my box and chicken recall spot. So i can compare the values after a recall, to see if i actually recalled. You may have spotted the un-used variables that i haven't used yet.

Anyways, instead of skipping the setup gosubs after it gets into the main loop, it goes through them again.

@Dixie Wrecked, thanks ill have to do some reading on that.


10
Script Debug / First script help please
« on: May 07, 2011, 08:11:55 AM »
Hi,

I just wrote my first script line for line by myself, and im having trouble with the first sub getting skipped. I'm not sure what the problem is, so i figured i would try to get some help here.

Im sure i did lots of things the hard way and ass backwards, but im still learning.

Btw, this script is meant to farm feathers from chickens, and when you get full drop them off at home.

EDIT: To be more clear the gosub setup book gets skipped when i start the script, it goes straight to gosub setup box.

Code: [Select]
;================================
;Kills chickens and loots feathers.
;By Slacker.
;================================
;set %box AYBUPMD   ;set your drop box id here.
set %kill AG    ; monster's id to kill, in this case chicken.
Set %cut HNF   ;Item that cuts the corpse like a dagger.
Set %body YFM  ; Id of bodies on ground, dont touch this.
set %loot VLK   ;Id of items to loot off bodie.
;Set %Rbook WSMIMMD   ;set your rune book id here.
;================================
gosub setup book
gosub setup box
gosub stablecheck
goto Main loop
;================================
Main loop:
gosub Find
gosub Kill
gosub Findncut
gosub Open Dead
gosub Loot
gosub Unload
goto Main loop
;================================
Sub Find
finditem  %kill G_10
if #findkind = -1
{
Gosub Find
}
Return

Sub Kill
Set #ltargetid #FINDID
event macro 15 17
target 3s
event macro 22 0
wait 3s
return

sub Findncut
finditem %cut C_ , #BACKPACKID
Set #LOBJECTID #FINDID
event macro 17 0
wait 1s
finditem YFM G_10
move #FINDX #FINDY
wait
Set #ltargetid #FINDID
event macro 22
Return

Sub Open Dead
FINDITEM %body G_
set #LobjectID #FINDID
event macro 17 0
set %deadbody #CONTID
Return

Sub Loot
wait 1s
finditem %loot C_
if #findkind <> -1
{
    exevent drag #FINDID #FINDSTACK
    wait 15
    exevent dropc #BACKPACKID
    wait 15
    ignoreitem #findid
}
finditem %items C_
if #findkind <> -1
{
 goto loot
}
ignoreitem %deadbody
Return

Sub Unload
set %weight #MAXWEIGHT - 25
if #WEIGHT > %weight
{
wait 1s
finditem %Rbook C_ , #BACKPACKID
set #LobjectID #findID
event macro 17 0
wait 8
set %xclick #contposx + 135
set %yclick #contposy + 192
click %xclick %yclick
wait 8
set %xclick #contposx + 136
set %yclick #contposy + 144
click %xclick %yclick
wait 4s
Drop:
finditem %loot C_ #BACKPACKID
exevent drag #FINDID #FINDSTACK
wait 15
exevent dropc %box
wait 15
finditem %loot C_ #BACKPACKID
if #findkind <> -1
{
goto Drop
}
wait 2s
finditem %Rbook C_ , #BACKPACKID
set #LobjectID #findID
event macro 17 0
wait 8
set %xclick #contposx + 135
set %yclick #contposy + 192
click %xclick %yclick
wait 8
set %xclick #contposx + 295
set %yclick #contposy + 144
click %xclick %yclick
wait 4s
move 1294 1768
}
Return

Sub setup book
event SysMessage pls Target your rune book fool!!!
event SysMessage pls Target your rune book fool!!!
event SysMessage pls Target your rune book fool!!!
event SysMessage pls Target your rune book fool!!!
set #lTargetID X
set #targCurs 1
wait 2
Bookid:
if #lTargetID = X
{
goto Bookid
}
set %Rbook #LTARGETID
finditem %Rbook C_ , #BACKPACKID
set #LobjectID #findID
event macro 17 0
wait 8
set %xclick #contposx + 135
set %yclick #contposy + 192
click %xclick %yclick
wait 8
set %xclick #contposx + 136
set %yclick #contposy + 144
click %xclick %yclick
wait 1s
set %boxcheck #CHARPOSX
return

Sub setup box
event SysMessage Now target your box hoe!!!
event SysMessage Now target your box hoe!!!
event SysMessage Now target your box hoe!!!
event SysMessage Now target your box hoe!!!
set #lTargetID X
set #targCurs 1
wait 2
boxid:
if #lTargetID = X
{
goto boxid
}
set %box #LTARGETID
return

Sub stablecheck
finditem %Rbook C_ , #BACKPACKID
set #LobjectID #findID
event macro 17 0
wait 8
set %xclick #contposx + 135
set %yclick #contposy + 192
click %xclick %yclick
wait 8
set %xclick #contposx + 295
set %yclick #contposy + 144
click %xclick %yclick
wait 4s
set %stallcheck #CHARPOSX
wait 1s
move 1294 1768
return

11
New member introductions / Re: My names Citrus and i like cheez-its.
« on: April 06, 2011, 01:46:17 PM »
Thanks for the nice welcome, if i don't reply very much don't take it as a insult, i just don't post much in forums. I have followed some forums for many years, yet have less than 50 posts.

But i never know this place could be different for me, and thanks again for the welcome.


12
New member introductions / My names Citrus and i like cheez-its.
« on: April 04, 2011, 11:38:42 AM »
Hi,

Lol sorry about the title, i'm not very good at naming things, that's why my names citrus...i got it off a soda can years ago.

Anyways, lets see... I played UO for a like 4 years on the Great lakes shard, in the guild [C|C] then moved on to the greener pasters of world of warcraft. After playing that for a few years i got board and quit.

Now me and my friends are playing on a Spanish speaking free shard, even though not one of us speaks Spanish lol. We picked that shard because we wanted to play a shard that was as close to OSI as we could get, without all the no skill cap type stuff.

Im quite the sci-fi buff, yes i have watched every official show/movie that has the name StarTrek, and StarGate in it. Im about 6 foot tall, i weigh around 225, my left hangs a little... well nvm.

I play a few old school ( at least old school to me) fps games, like C&C renegade, and battlefield Vietnam.

The reason im here: Now that i play on a free shard, hardly any scripts work so i have been learning how to make my own. To be honest i highly doubt any scripts i get from here will work. I plan on tearing some of your scripts to shreads as to see how they work and further my knowledge of making one myself.

Thanks

Pages: [1]