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.


Topics - Man7dowN

Pages: [1]
1
Script Debug / pet attack with location error
« on: February 28, 2019, 10:41:05 AM »
hello all, having trouble getting my pet attack sub working correctly.

what im trying to do is this

check for closest enemy
{
if find enemy found
{
set pet current location
{
killloop:
have pet attack nearest target
{
check pets location, if pet is in same location return to kill loop
{
if pet location changed halt



what i wrote is not working correctly, looking for any help i can get

Code: [Select]
set %monstertype ZC_WE_IJB_
set %petid PDZR
set %scanpk



for %searchDistance 1 10
{
  finditem %monstertype G_ , %searchdistance
  if #findcnt > 0
  {
  finditem %petid
    wait 5
    set %petidx #findx
    set %petidy #findy
    }
    killloop:
    finditem %monstertype G_ , %searchdistance
     if #findcnt > 0
     {
       set #ltargetid #findid
       msg all kill$
       wait 5
       target
       event macro 22 0
       }
       finditem %petid
        if %petid = %petidx || %petid = %petidy
          {
           event sysmessage attack again
           goto killloop
        if %petid <> %petidx || %petid <> %petidy
           {
            event sysmessage pet moving
            halt
            }
           }


2
Script Debug / cant exit goto correctly
« on: February 27, 2019, 02:40:27 AM »
this is my  restock sub, mainly having trouble with dropping recalls on runebook and returning from the GOTO back to where it left off in the sub, it keeps moving threw other GOTO's.
i think i have a bracket miss placed but i cant find it,,,
any help appreciated

Code: [Select]
SET %weight 200
set %regamount 50
SET %bandageamount 200
SET %bankbook APNOHPD
SET %farmbook LPOELOD
SET %restockbag FTQDSPD
SET %lootbag ZRBNPMD
SET %dropbag RPYCWND
SET %dropoff POF_MYM
set %garlic KZF_
set %ginseng JZF_
set %mandrake RZF_
set %spider MZF_
set %bandage ZLF_
set %recallget WTL_
set %recallgetamount 100
set %bankboxID JYDQBND



GOSUB RESTOK
halt



SUB RESTOK
Finditem %recallget C_ , %BankboxID
  if #findkind
   {
    goto bankbookstock
      }
     Finditem %recallget C_ , %BankboxID
  if #findkind
   {
    goto farmbookstock
      }
     findItem %bandage C_ , %lootbag
  if #findkind = -1
   {
     set %rg %bandage
     goto bandagesnag
     }
findItem %garlic C_ , %lootbag
  if #findkind = -1
   {
     set %rg %garlic
     goto regsnag
     }
     findItem %ginseng C_ , %lootbag
  if #findkind = -1
   {
     set %rg %ginseng
     goto regsnag
     }
     findItem %mandrake C_ , %lootbag
  if #findkind = -1
   {
     set %rg %mandrake
     goto regsnag
     }
     findItem %spider C_ , %lootbag
  if #findkind = -1
   {
     set %rg %spider
     goto regsnag
     }
     return



bankbookstock:
finditem %recallget C_ , %restockbag
     exevent drag #findid #findstack
     wait 10
     exevent dropc %bankbook
bankbookstock_exit
farmbook:
finditem %recallget C_ , %restockbag
     exevent drag #findid #findstack
     wait 10
     exevent dropc %bankbook
     farmbook_exit
bandagesnag:
finditem %rg C_ , %restockbag
     exevent drag #findid %bandageamount
     wait 10
     exevent dropc %lootbag
     bandagesnag_exit
regsnag:
finditem %rg C_ , %restockbag
     exevent drag #findid %regamount
     wait 10
     exevent dropc %lootbag
     regsnag_exit

3
Script Debug / stuck in loop
« on: February 25, 2019, 09:57:58 AM »
been using this site for years and other ppls scripts, so i decided  to try and make my own from scratch. i went threw cervezas  tutorials on this site which was fun.

current issue i am having is im stuck in a loop where it just wants to organize bag positions , i have made a sub to move containers to position and open them all, this works fine, i also made a sub to drop gold from a loot bag into a bank bag, this works fine, problem is when i combine them  i get stuck only moving containers around and not advancing to dropoff sub.
any help appreciated

Code: [Select]
SET %weight 200
SET %restockbag FTQDSPD
SET %lootbag ZRBNPMD
SET %dropbag RPYCWND
SET %dropoff pof_ZLF_

loop:
if #weight > %weight
    gosub opencontainers
    gosub bankdrop

   
GoTo loop


;;;;;;;;;;;;;;;;;;;;;
sub bankdrop

findItem %dropoff C_ , %lootbag
 wait 8
  if #findkind = -1
   halt
   if #findkind = 1
   {
   wait 10
   exevent drag #findid #findstack
   wait 10
   exevent dropc %dropbag
   }
   return


;;;;;;;;;;;;;;;;;;;;;;
sub opencontainers


event macro 8 1  ; paperdoll
wait 10
Contpos 1450 40
wait 10
event macro 8 7   ;backpack
wait 10
contpos 1050 200
wait 10
msg bank $       ;open bank
wait 10
contpos 850 200
wait 10
set #LObjectID %lootbag  ;lootbag
    event macro 17 0
    wait 10
Contpos 1450 400
wait 10
set #LObjectID %restockbag  ;lootbag
    event macro 17 0
    wait 10
Contpos 1050 400
return

4
Player Templates / mage barracoon
« on: July 10, 2015, 04:44:41 AM »
I'm currently running a necro/mage doing barracoon, what spell do you guys think will be best on coon damage wise, to kill him the fastest, my current best solo time killing all the spawn and coon is 50 minutes.
I've been doing corpse skin, the doing explode/flamestrike combos, with repond spellbook and around 85% SDI, I'm looking to get these times lowered, what is the best mage spell or necro spell combo to spam,

5
Scripting Chat / help please with small script
« on: July 06, 2015, 06:18:10 AM »
Like to get some of you vet scripts help with a small mage attack/heal routine
I'm not the best scripter, usually I just piece allot of code together to get it to do what I want,  now I'm looking for something that will suit my needs better.
Looking to make a single target attack script for boss fights that take awhile,

Actions: set corpse skin on boss, then set a timer to recast corpse skin on boss when it runs out, then proceed to attack loop: explosion/flames strike combo and have a heal/cure check before each cast

Kinda feel bad for asking for help with this, but I'm sure I'll learn something along the way,
Thank you in advance if anyone chooses to help




6
hello i am new to SUO and cannot get a script to play,,, is there a tutorial on how to run a script... or is SUO down/.? any help would be nice... i been searching threw the forums for awile and cant find anything that can help me  Embarrassed

7
Scripting Chat / hello,
« on: June 11, 2011, 12:42:39 PM »
i am new here and this is my first time   :o


so i am wondering does this work on OSI and if so is it working now? i am trying to get it to work now but after i load a script the play icon is not enabled

i been searching for a tutorial for noobs like my self.. but have not run across it yet...

any help eppreciated :)

Post Merge: June 11, 2011, 01:17:46 PM
can anyone help me ? or point me in a direction?   i searched threw all forums and cant find why  the script i downloaded will not play....

8
New member introductions / Hello, My introduction
« on: June 11, 2011, 12:04:46 PM »
hello,

my name is dave.. i been playing uo on and off since 3rd dawn....  i have 2 accounts....
 my main chars right now are:

Disco tamer mage (pvm)
Samipre (pvm)
Stealth archer (pvp / faction) CoM

i mainly like to  hunt... i just started getting into factions and still getting used to it all....

i look forward to meeting the community and having a great uo experiance

i play on atlantic and drachenfel

and i love UO   :)

Pages: [1]