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

Pages: [1]
1
Script Debug / Drop Shoes Sub cannot get to drop ALL Shoes.
« on: February 29, 2020, 06:07:51 AM »
Can anyone help me figure out why this sub is not dropping all the boots/sandals that are in the backpack to the ground, instead it just drops one to the ground then it returns to the next gosub which is recalling out? Id like for it to drop all of them if #findkind = 1 keep dropping them until #findkind = 0 or -1

Code: [Select]
set %shoes QVI_PVI_CYI_CWI_NVI_TVI_ZVI_AWI_OVI_XVH

 sub dropboots
set %looper10 0
sandals:
finditem %shoes C , #backpackid
if #findkind = -1
      {
      return
      }
if %looper10 > 9
      {
      return
      }
set %item2 #findid
namespace push
  namespace local RT
  set !radius 2
  set !randx #RANDOM % !radius + 1
  set !randy #RANDOM % !radius + 1
  if #RANDOM > 500
    set !randx !randx * -1
  if #RANDOM > 500
    set !randy !randy * -1
  set !randx !randx + #CHARPOSX
  set !randy !randy + #CHARPOSY
  set #LTARGETX !randx
  set #LTARGETY !randy
  set #LTARGETZ #CHARPOSZ
  ;set #LTARGETKIND 2
  ;event pathfind !randx !randy
  wait 30
     ;set #lobjectid %bag
     exevent drag %item2
     wait 20
     exevent dropg !randx !randy #charposz
   namespace pop
;exevent drag %item2 #findstack
;wait 20
;exevent dropc %trassh
;wait 15
set %looper10 %looper10 + 1
goto sandals:
 until #findkind = -1 || ( #scnt > %safety_timer )
  set %overweight #FALSE
return

2
I am in need of an insurance script that will work either in the background of another script I have or work itself into the other script I have. I think its against the rules though to ask to modify a script that another member created so I won't post the script unless I have permission there to do so. The insurance script I need it to scan the backpack when an item drops in it I need the script to automatically insure the item. Its the blackthorn artifacts that drop in your pack that i'd like it to insure.

I think TrailMyx was onto something though in his Artifact Monitor with Insuring, but I dont know if Valen that post in the thread got it to work or not: http://www.scriptuo.com/index.php?topic=1906.30

3
Script Debug / Question about script.
« on: February 01, 2016, 05:32:50 PM »
I was wanting to merge the two of these into one

Greater heal last target over and over:

Code: [Select]
if #MANA > 40
{
event macro 15 28
wait 45
event macro 22 0
wait 40
}
return


cast mirror image spell over and over:

Code: [Select]
    if #MANA > 15
    {
      event macro 15 252
      wait 2s
      finditem IS G_0
      if #findcnt > 0
      }
    }
  }



What I was wondering though is how would I make it into one script that will cast greater heal on last target until last target is 100% health and then once it is then cast mirror images again until followers = 5 ?

4
For OpenEUO whats the code to MoveTo next location if you "Can't Get There" with the first location?

Ive tried:

if MoveTo(X,Y,Z) wait(500) = false then
MoveTo(X,Y,Z) wait(500)

but thats not working. I need to know how to make it MoveTo the second line there is the first one gets "Can't Get There" message for OpenEUO.


EDIT:

Also tried:

if MoveTo(X,Y,Z) wait(500) then
_CurrentCharPosX = UO.CharPosX
_CurrentCharPosY = UO.CharPosY


thinking maybe that would make him continue on standing where he is at if he cant make it to the first (X,Y,Z) coordinates, but that didnt work either.

5
Scripting Chat / Requesting for Medusa Farming Script.
« on: December 16, 2015, 01:44:56 AM »
Looking to pay someone (or donate money to website, whichever you prefer) that is good at scripting to create me a script preferably using OpenEUO but EasyUO is fine to. Script I need it to be fully automated Medusa farming script. What I would like is:

1. The script to auto check to make sure the character is in vampiric form (sampire)
2. If possible would like it to have a menu to select 3 containers in the bank box.
3. First container for Medusa blood, scales, ect.... Second container for all artifacts... Third container for all legendary items (need script to detect when it finds a legendary item... I dont want it to pick up cursed items though).
4. I want this to also scan armor durability, if it has less then 10 durability then I want the script to pause/hault.
5. When I press Play I want it to scan armor, check vampiric form, sacred journey to bank to check the 3 containers inside bank... Then also scan for Gorgon Lenses on glasses for Medusa... If there are none on then scan the bank box including all containers and see if there are any Gorgon Lens to use on helm, if there are none then pause/hault script with the message that there are none.
6. After everything checks out I want it to sacred journey to the place, collect the medusa eggs and after it has all of them I want it to go in and kill medusa... When she dies... Skin her, loot her, and sacred journey to the bank to empty goodies... Then after that have it restart all over and do everything all over again.


If you can make this work for me please PM me and let me know, also how much something like this will cost. If you have any questions/comments/concerns you may PM me as well, thank you for taking the time to read this.

6
Ok this is an OpenEUO script and when I try to run the script I press play and I get this:

ENs BuffBar subs loaded
Running On
[17:43:00] Scanning the icon position of Whirlwind Attack.
...p\openeuo\scripts\sub_monster_function.lua:588: attempt to perform arithmetic on global 'nS' (a nil value)



The info is below along with the line 588:

""
function ItemInBag()
name,info = UO.Property(UO.BackpackID)
nS = string.find(info, "Contents: ")
nE = string.find(info, " Items")
sT = string.sub(info,nS+10,nE) <--- Line 588 in script.
nE = string.find(sT,"/")
sT = string.sub(sT,0,nE-1)
if tonumber(sT) ~= nil then
return tonumber(sT)
end
end

function InitItem()
if ItemInBag() > 120 then
print("["..GetTimeFormat().."] Your backpack almost full.")
return "loadoff"
end


""

Ok I asked someone for help with it and they said that it sounds like it has to do with my backpack and I guess the ID. They told me to hover over my backpack to see what it says and it says:

"Backpack
Weight: 17 Stones
Contents: 11/125 Items, 14/550 Stones"

They told me to put the "print(info)" in the script below and press F7 to see where the script breaks at

function ItemInBag()
pause()
name,info = UO.Property(UO.BackpackID)
print (info)
nS = string.find(info, "Contents: ")
print (nS)
nE = string.find(info, " Items")
print (nE)
sT = string.sub(info,nS+10,nE)
print (sT)
nE = string.find(sT,"/")
sT = string.sub(sT,0,nE-1)
print (sT)
if tonumber(sT) ~= nil then
return tonumber(sT)
end



then I playd the script and pressed F7 and it stopped at this line:


t = ScanItems(true,{Type=8901,ContID=UO.BackpackID})



Another person told me to paste this and play it in OpenEUO:


print("bpid: "..tostring(UO.BackpackID))
local t0,t1 = getticks(),0
local name, info = UO.Property(UO.BackpackID)
while ( string.len(tostring(info)) < 10 ) and
      ( t1 < 10 )                         do
  wait(50)
  name, info = UO.Property(UO.BackpackID)
  t1 = t1 + 1
end
print("msec: "..tostring(getticks()-t0))
print("name: "..tostring(name))
print("info: "..tostring(info))



The same person said I should get something back that says something like:

bpid: 1077213918
msec: 70
name: Backpack
info: Weight: 88 Stones
Contents: 32/125 Items, 85/550 Stones

"this person" also said ""this will test whether openeuo is able to read some key variables like backpackid, and how long it takes to populate the info portion of the object's property. sometimes it is empty on the first pass, in which case the code you're using will halt with an error like what you described in your first post. in other words nS may indeed be set to nil on this line:

nS = string.find(info, "Contents: ")

and the rest of the function doesn't take that into account.""




The results I got after hitting play were:

"bpid: 0
msec: 640
name:
info:
"


Can someone help me figure this out?

7
New member introductions / Introduction.
« on: March 13, 2012, 09:04:18 AM »
My name is Daniel and this is the first time for me visiting this site. I've always used EasyUO in the past and i've played UO off and on since 2000. I play on the OSI servers and live on the east coast irl. I am a friendly guy that loves playing video games and having fun. I've played Shadowbane, Diablo 2, WoW, Ultima Online, and other games throughout the years. I'm 25 years old and have no idea how to script but I appreciate all the hard work that you scripters out there do for us! My goal if I get unrestricted is to open up a vendor shop in UO and provide the players in UO with what they are looking for to make UO a better place. I quit UO last year to play World of Warcraft but realized how boring it got for me and i'm trying to make a comeback to Ultima Online. I was first introduced to the game when I was 13 or 14 years old by my mom and my mom and step dad both played for years. For me UO feels like an important part of my life because I spent my teenage years playing it rather then going to parties or clubs. I hope I make a good first impression here and hope to meet some great people. Thanks alot for giving me the oppertunity to explain who I am and meet everyone!

Pages: [1]