Author Topic: There once was a man from nantucket...  (Read 2655 times)

0 Members and 1 Guest are viewing this topic.

Offline chaosbugTopic starter

  • Newbie
  • *
  • Posts: 3
  • Activity:
    0%
  • Reputation Power: 1
  • chaosbug has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
There once was a man from nantucket...
« on: February 19, 2012, 11:40:33 AM »
0
... not really sure how the rest of that song goes. But it was a catchy subject line I thought ;) The easyuo site though populated with a wide range of scripts doesn't seem to be as active as it was a few years ago. This site on the other hand has recent post dates in topics and seems to be a place I want to be. I'm digging into lua and I like what I see so far. I'm looking for access to the scripts on this site to improve my own understanding of the easyuo scripting and openUO at the same time.

Thanks for your consideration.

Offline Ultima

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Re: There once was a man from nantucket...
« Reply #1 on: February 19, 2012, 11:46:13 AM »
0
Two tears in a bucket....mother  :-X! How's that for a catchy line? ;)

Welcome to the site!

What shards are you playing on and how did you find out about ScriptUO? Google?
« Last Edit: February 19, 2012, 11:48:06 AM by Ultima »

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: There once was a man from nantucket...
« Reply #2 on: February 19, 2012, 01:23:40 PM »
0
Who is that girl in Ultima's avatar, and where can I see more of her?

(oh yeah - welcome!)

Offline chaosbugTopic starter

  • Newbie
  • *
  • Posts: 3
  • Activity:
    0%
  • Reputation Power: 1
  • chaosbug has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: There once was a man from nantucket...
« Reply #3 on: February 19, 2012, 01:28:39 PM »
0
I play on Official Servers mostly Great lakes. And yeah I think I found out about scriptUO from Google while searching for type codes on gargish cloth armors.

Offline Ultima

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Re: There once was a man from nantucket...
« Reply #4 on: February 19, 2012, 06:43:05 PM »
0
I play on Official Servers mostly Great lakes. And yeah I think I found out about scriptUO from Google while searching for type codes on gargish cloth armors.

Yeah there is quite a bit information on scripts as well as tutorials and general information about Ultima Online.

One of the rules of getting full access to the site is to put forth a hearty introduction not just a few lines. We like to get to know our members.  :)

What else can you tell us about yourself? Any good UO stories to share with the community?


Offline chaosbugTopic starter

  • Newbie
  • *
  • Posts: 3
  • Activity:
    0%
  • Reputation Power: 1
  • chaosbug has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: There once was a man from nantucket...
« Reply #5 on: February 21, 2012, 02:23:41 AM »
0
About myself, feel like i'm signing up for a edating site heh. I'm 36 live in Louisiana where I work as a E&I desginer / PLC Programmer in the Petrochem Industry. I've been hacking away at code since my parents bought me a Tandy Color Computer II back in the mid 80's. I've been into UO since beta, I still have the print from the charter edition hanging on my computer room wall. I was in Krieger on Great Lakes way back in the day if anyone remembers Krieger Valley between Yew and Minoc. I took off the week charter edition came out and was one of the first if not the first GM Smith's in the game at just over 26 play hours. Our guild moved over from Dialbo enmasse so I sat in the minoc smithy and the guild would run ore from minoc mtn to me till they had a full suit of armor and weapon of their choice then they stood guard over the others that were still mining. We got way ahead of everyone else in the game doing that. Back then dragons and demons and the like would follow you through gates if you cast them between you and them. We used to fill Krieger Castle to overflowing with the baddies then go in as a guild to clear them out. Was alot of fun.

UO Scripting wise I haven't done much. I'm starting in LUA and have allready written a simple script to toss blackrock pieces into the trash. Its the beginning of a mining script I hope to write.

Below is my script as it stands right now. It has to be fired off manually but it works without any problems that I've found so far. But in practice I find the person writing the code a poor checker so if anyone finds anything that needs fixing please speak up. I borrowed some of the code from the easyUO tutorials but have a firm grasp of what they are doing.

Code: [Select]
-----------------------------
-- Defined Functions (subs)
-----------------------------
function TargetContainer(sMessage)
  UO.LTargetKind = 1 -- object
  UO.ExMsg(UO.CharID  , sMessage)  -- Message above character
  UO.TargCurs = true    -- make a target cursor
  while UO.TargCurs == true do  wait(10) end     -- wait until something is clicked (ie notarget cursor)
  --;UO.LObjectID = UO.LTargetID    -- set last object to the object clicked
  --;UO.Macro(17,0) -- openbag ( invoke macro use last object which hopefully is a bag inwhich case opens bag )
  return  UO.LTargetID  -- set the return value .. the bagid clicked
end

function TargetItem(sMessage)
         UO.LTargetKind = 1
         UO.ExMsg(UO.CharID , sMessage)
         UO.TargCurs = true
         while UO.TargCurs == true do wait(10) end
         return UO.LTargetID
end

function FindItem(sName)
local cnt = UO.ScanItems(false) --;Calls the ScanItems command and sets the return value to the local variable cnt

i=0
   while i ~= cnt do --; While i does not equal the cnt returned, loop.
   
   local ID,Type,Kind,ContID,X,Y,Stack,Rep,Col = UO.GetItem(i) --;Set all these vars to the scanned item under i, starting at 1 and ending at cnt

   local Name,Info = UO.Property(ID) --; Same thing as the last line, setting 2 variables with the return values of property, using ID defined in the line above.
         
         if Name == sName then
         print(Name)
         return ID
         end
   i = i+1 --; Increment var to look at the next item, return to top until expression evaluates to false.

   end --; Always end (case sensitive) your while/for/if's!! Will cause headaches if you do not remember!
     
end

function TrashItem(sName)
         local cnt = UO.ScanItems(false)
         i=0
            while i~=cnt do
              local ID = UO.GetItem(i)
              local Name = UO.Property(ID)
              if Name == sName then
                 UO.Drag(ID)
                 wait(nWait)   
                 UO.DropC(nTrash)
                 wait(nWait/2)
              end
              i = i+1
            end
end

-----------------------------
-- Script Starts Below
-----------------------------
nTrash = TargetContainer('Please Target Your Trashcan')
nWait = 600
TrashItem('A Small Piece Of Blackrock')
print('Done!')
UO.ExMsg(UO.CharID  , 'Done !')

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: There once was a man from nantucket...
« Reply #6 on: February 21, 2012, 04:41:25 AM »
0
Hello and Welcome to Scriptuo. In the Openuo Section you should find more examples written by me and other Users. Its always a good source to check it out.
Coding can be much fun, as long as it doesnt end in hard work for casual scripters:)
Enjoy..


Crome

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6210
  • Activity:
    2.8%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: There once was a man from nantucket...
« Reply #7 on: February 22, 2012, 04:56:29 PM »
0
WELCOME!

Offline Cooms

  • Sr. Member
  • *
  • Posts: 313
  • Activity:
    0%
  • Reputation Power: 4
  • Cooms has no influence.
  • Gender: Male
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: There once was a man from nantucket...
« Reply #8 on: February 22, 2012, 05:29:34 PM »
0
Welcome!! You are the first person Ive welcomed. I joined the forum a week or 2 ago! :D

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: There once was a man from nantucket...
« Reply #9 on: February 22, 2012, 06:29:31 PM »
0
Welcome to he site

Offline Newsman

  • Hero Member
  • *
  • Posts: 627
  • Activity:
    0%
  • Reputation Power: 8
  • Newsman has no influence.
  • Respect: +38
  • Referrals: 2
    • View Profile
Re: There once was a man from nantucket...
« Reply #10 on: February 26, 2012, 08:16:51 PM »
0
welcome to the community!

Tags: