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

Pages: 1 2 3 [4] 5
46
Script Debug / check to see if container is open if not go to open it
« on: April 01, 2016, 11:18:31 PM »
im trying to figure out how to make sure a bag gump is open. the way im checking for weight is item count in a bad and it only works if the bag is open so i want it to check to amke sure the bad is open every time
id imagine id look a little something like this


Code: [Select]
FINDITEM %containerid
 if FINDKIND <> -1
{
gosub opencontainer
}

return
 

47
Script Debug / Re: Script doesnt leave attack sub
« on: April 01, 2016, 07:37:57 PM »
im not 100% sure what i did but i have it working now


Code: [Select]
;------------------------------------------------------


sub attack
FINDITEM %creature G_6
if ( #findkind = -1 )
{
gosub loot
}
if ( #findkind = -1 ) && ( %noloot = #TRUE )
{
  event pathfind 362 15
wait 20
event pathfind 365 15
wait 20
 }
if #findkind <> -1
 {
 attackloop:
set %attacking #TRUE
if #findcnt > 0 && ( %spellTimer < #scnt2 )
gosub execSec
if #FINDKIND = -1 4
finditem %creature
set %attack #findid
set #LTARGETID %attack
event macro 27 0
if #findid <> %attack
 {
set %attack #findid
set #LTARGETID %attack
event macro 27 0
goto attackloop
}
  }
  set %attacking #false
return
;------------------------------------------------

sub loot
;gosub get claw to start looting
;wait 90s for claw to finish and respawn time to pass
FINDITEM %CORPSE G_3
if ( #FINDKIND > -1 ) && ( %attacking = #false )
   {
   set %noloot #false
   goto lootloop
   }
if #findkind = -1
   {
   set %noloot #true
   }

lootloop:
set %newcorpse #findID
set #LOBJECTID %newcorpse
set %opencorpse #CONTID
nextCPos 25 450
wait 20
EVENT MACRO 17
wait 20
FINDITEM %loot C_ , %opencorpse
if #findcnt > 0
 {
   exevent drag #findID
   wait 10
   EXEVENT DROPC %lootbag
   wait 10
 }
FINDITEM POF C_ , %opencorpse
if #findcnt > 0
 {
   exevent drag #findID #findstack
   wait 10
   EXEVENT DROPC #BACKPACKID
   wait 10
 }
ignoreitem %newcorpse 1
return
;------------------------------------------------

sub execSec
    cmppix 3 f
       {
       event macro 36 0
       wait 5
       }
return
;------------------------------------------------

48
Script Debug / Re: Script doesnt leave attack sub
« on: April 01, 2016, 01:56:10 PM »
ok ive done some editing and now it stops opens the corpse and then when it doesnt find anything it returns to attacking so my new problem is that it doesnt find the TMAP on the body i think i have the code right im not sure


Code: [Select]
;-----------------Variables-------------------
;
;
SET %creature WD ;Dark Guardian
SET %loot XVH ;gold TMAPS ect
SET %homebook OXGABND
SET %doombook UWVWWQD
SET %secure ;trashcan
SET %backpack #backpackid
SET %CORPSE YFM
set %safety 4 ;DO NOT EDIT
set %spellTimer #scnt2 ;DO NOT EDIT
set %attacking #false
set %noloot #true

;-----------------MAINLOOP------------------------
main:
if %setupWW = #TURE
{
gosub pixelFirst
}
gosub weightcheck
gosub attack
goto main
;============================================================================
;-----------------MAINSUBS------------------------
;===========================================================================

;-----------------------------------------------------------------------------
sub weightcheck
finditem * c_%backpack
IF #weight > 400 || #findcnt > 120
   {
   gosub gohome
   }
   return
;------------------------------------------------------


sub attack
FINDITEM %creature G_6
if ( #findkind = -1 )
{
gosub loot
}
if ( #findkind = -1 ) && ( %noloot = #TRUE )
{
  event pathfind 362 15
wait 20
event pathfind 365 15
wait 20
 }
if #findkind <> -1
 {
 attackloop:
set %attacking #TRUE
if #findcnt > 0 && ( %spellTimer < #scnt2 )
gosub execSec
if #FINDKIND = -1 4
finditem %creature
set %attack #findid
set #LTARGETID %attack
event macro 27 0
if #findid <> %attack
 {
set %attack #findid
set #LTARGETID %attack
event macro 27 0
goto attackloop
}
  }
  set %attacking #false
return
;------------------------------------------------

sub loot
;gosub get claw to start looting
;wait 90s for claw to finish and respawn time to pass
FINDITEM %CORPSE G_3
if ( #FINDKIND > -1 ) && ( %attacking = #false )
   {
   set %noloot #false
   goto lootloop
   }
if #findkind = -1
   {
   set %noloot #true
   }
lootloop:
set %newcorpse #findID
set #LOBJECTID %newcorpse
EVENT MACRO 17
set %openorpse #contID
wait 20
FINDITEM C_%opencorpse %loot ;<<<<<<<<<<<<<<<<<<<<this is the line that i think is wrong
 if #FINDCNT > 0
   {
   Pause
   exevent drag #findID
   wait 10
   EVENT DROPC %lootbag
   }
ignoreitem %newcorpse 1

return
;------------------------------------------------

sub execSec
    cmppix 3 f
       {
       event macro 36 0
       wait 5
       }
return

;------------------------------------------------
;----------------SetUP Subs----------------------



sub pixelFirst
display First we need to adjust the script to your spells.
wait 3
gosub setpixel-secondary
set %setupWW #false
return

sub setpixel-secondary
    event macro 36 0
    display Move the mouse to the BOTTOM LEFT CORNER of the secondary Weapon Move button. You have 2 seconds
    wait 2s
    savePix #CURSORX #CURSORY 3
    wait 5
    event macro 36 0
    display Everything is set!
return

49
New member introductions / Re: NEW Newbie Introduction
« on: March 31, 2016, 12:28:04 PM »
Welcome to SUO friend

50
New member introductions / Re: Hello!
« on: March 31, 2016, 12:27:11 PM »
Welcome to the fam

51
Script Debug / Script doesnt leave attack sub
« on: March 31, 2016, 12:08:55 PM »
Hey guys ive been working on this script to farm TMAPS for turn in points at the dark guardians in doom. the spawn and attack parts of the script work great (thanks DXrom i used some snipits of his LAME script) but i cant figure out how to get the script to stop and loot the maps.. i thought i had everything done right but im sure ive failed. would love it if someone could look it over and tell me how much oh a dunce i am lol


Thanks Tana


Code: [Select]
;-----------------Variables-------------------
;
;
SET %creature WD ;Dark Guardian
SET %loot XVH ;gold TMAPS ect
SET %homebook OXGABND
SET %doombook UWVWWQD
SET %secure ;trashcan
SET %backpack CJSXQOD
SET %CORPSE YFM
set %safety 4 ;DO NOT EDIT
set %spellTimer #scnt2 ;DO NOT EDIT


;-----------------MAINLOOP------------------------
main:
if %setupWW = #TURE
{
gosub pixelFirst
}
gosub weightcheck
FINDITEM %CORPSE G_3
if findkind <> -1
{
gosub loot
}
gosub attack
goto main
;============================================================================
;-----------------MAINSUBS------------------------
;===========================================================================

;-----------------------------------------------------------------------------
sub weightcheck
finditem * c_ %backpack
IF #weight > 400 || #findcnt > 120
   {
   gosub gohome
   }
   return
;------------------------------------------------------


sub attack
FINDITEM %creature G_6
if #findkind = -1
{
  event pathfind 362 15
wait 20
event pathfind 365 15
wait 20
 }
if #findkind <> -1
{
if #findcnt > 0 && ( %spellTimer < #scnt2 )
gosub execSec
}
if #FINDKIND = -1 4
finditem %creature
set %attack #findid
set #LTARGETID %attack
event macro 27 0
if #findid <> %attack
{
set %attack #findid
set #LTARGETID %attack
event macro 27 0
}
return
;------------------------------------------------

sub loot
;gosub get claw to start looting
;wait 90s for claw to finish and respawn time to pass
FINDITEM %CORPSE
WHILE #FINDKIND <> -1
{
set %opencorps #findID
set #LTARGETID %opencorpse
EVENT MACRO 22
FINDITEM C_%opencorpse %loot
if #FINDKIND > -1
{
exevent drag #findID
wait 10
EVENT DROPC %lootbag
}
ignoreitem %opencorpse 1
}
}
return
;------------------------------------------------

sub execSec
    cmppix 3 f
       {
       event macro 36 0
       wait 5
       }
return

;------------------------------------------------

52
New member introductions / Re: Hello, I'm BzuM
« on: March 28, 2016, 11:03:35 AM »
Wolcome to SUO

53
Questing / Re: Item Buyer & Donator
« on: March 22, 2016, 05:43:28 PM »
hey guys i got this script working took a while and made quite a few tweaks but im still getting 1 problem. its not a huge problem just kinda of annying. it trys to recall to the same spot over and over even on success. anyway this can be fixed?

edit:as i finished typing this im now stuck in a recalling to library loop

54
Questing / Re: Item Buyer & Donator
« on: March 14, 2016, 04:04:18 PM »
hey guys thanks for the replies much appriciated should have my M&S glasses soon!

55
Questing / Re: Item Buyer & Donator
« on: February 26, 2016, 04:37:44 AM »
i know this is an insanely old thread but ive been looking for a working donator since i started playing again. i know this is possibly a dumb question but how do you use razor with easy uo?? sorry for stirring up old posts

56
Script Debug / Re: First script, Doesnt work
« on: February 07, 2016, 03:11:58 PM »
fixed the attack sub it works perfectly now thanks for your guys' contributions now i was wondering if i could get help with the looting part? like how do you make it the script stop to loot? and how do you put the corpse ids on ignore like TMs CLAw does? thanks!

Updated attack sub

Code: [Select]
;------------------------------------------------------

sub attack
FINDITEM %creature G_5
IF #FINDKIND = -1
{
move 368 15 1
wait 30
move 362 15 1
wait 30
}
IF #FINDKIND <> -1
{
FINDITEM %creature
SET %enemy #FINDID
SET #LTARGETID %enemy
move #FINDX #FINDY a
EVENT macro 27 0
IF #FINDID <> %enemy
{
  set %enemy #FINDID
set #LTARGETID %enemy
event macro 27 0
  }
}
return
;------------------------------------------------


this is what i have written in the loot sub so far

Code: [Select]
sub loot
  FINDITEM %corpse G_4
IF #FINDKIND <> -1
  {
  SET %corpseid #FINDID
  SET #LOBJECTID %corpseid
  event macro 19 0
  }
  return

thanks in advance guys im trying to learn as much as i can by myself but its a little more confussing then i thought it would be

57
Script Debug / Re: First script, Doesnt work
« on: February 06, 2016, 01:06:56 PM »
hey guys thanks for the replies ill run the checker again myself and start editing it up ill post a revision when its done

58
Script Debug / First script, Doesnt work
« on: February 05, 2016, 11:25:58 PM »
Hey guys i spent all night trying to research what i was doing and i apparently got it wrong >.< can someone look it over and tell me what i did that was bad? its not finished i dont have the loot or drop off subs written but as bad as ive done i dont think theyd work anyway
Code: [Select]
;------------------------------------
;-- Script Name:Dark Guardian Farm
;-- Author: Tana
;-- Version: 1.0
;-- Client Tested with: 7.0.6.5 (Patch 95)
;-- EUO version tested with:
;-- Shard OSI
;-- Revision Date:
;-- Public Release:
;-- Purpose: Faming TMAPS for clean up/Deamon bones for golden skulls
;-- Copyright: 2016
;-----------------Variables-------------------
;
;
SET %creature WD ;WD
SET %loot POF_XVH
SET %homebook OXGABND
SET %doombook UWVWWQD
SET %secure
SET %backpack CJSXQOD
;-----------------MAINLOOP------------------------
main:
gosub weightcheck
gosub spawn
gosub attack
gosub loot
repeat
;-----------------MAINSUBS------------------------

sub weightcheck
finditem * c_ %backpack
IF #weight > 400 || #findcnt > 120
   {
   gosub gohome
   }
   else
   {
   return
   }
;------------------------------------------------------

sub spawn
FINDITEM %creature G_, 10
IF #FINDKIND = -1
{
event pathfind 366 15
wait 100
event pathfind 362 15
}
else
{
return
}

;----------------------------------------

sub attack
FINDITEM %creature G_, 10
SET #LTARGETID #FINDID
SET %enemy #FINDID
EVENT macro 27
FINDITEM !_enemy G_
IF #FINDKIND <> -1
{
repeat
}
else
{
return
}
;------------------------------------------------

sub loot
wait 200
return
;------------------------------------------------

;--------------TRAVEL SUBS-----------------------

sub gohome
EVENT pathfind 356 14
wait 5
EVENT MACRO 22 0
wait 5
EVENT pathfind 352 14
SET #LTARGETID %homebook
EVENT MACRO 15 210
wait 5
EVENT MACRO 12 0
wait 5
gosub dropoff
;---------------------------------------------------

sub dropoff
    gosub godemons

;---------------------------------------------------
sub godemons
SET #LTARGETID %doombook
EVENT MACRO 15 210
wait 5
EVENT MACRO 22 0
wait 10
EVENT pathfind 355 15
EVENT MACRO 12 0
EVENT pathfind 356 14
  goto main:
;----------------------------------------------------

59
Scripting Chat / Re: Need help with making a script.
« on: February 05, 2016, 10:27:27 PM »
thank you so much!

60
Script Debug / Re: Scripts causing game to crash
« on: February 04, 2016, 04:48:11 PM »
thanks for your reply i was thinking the same thing im a total noob when it comes to script writing im trying to figure it out by reading the guides and disecting other peoples scripts, on that note could you maybe give me an idea an how a single script for doing this would work? like make guardians spawn kill guardians wait for loot then make guardians spawn again

Pages: 1 2 3 [4] 5