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

Pages: 1 ... 11 12 [13] 14 15 16
181
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 16, 2015, 03:28:15 PM »
and please can someone give me something else I can try so I can keep progressing maybe something that I could start like a step by step one so I can do one and then build on it

182
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 16, 2015, 03:20:31 PM »
ok I got everything to finally work and what is the reason I use * after finditem I could find out why except for it is a semicolon. and would there be any other way to write it besides how I did. I know MeWonUo said always return out of sub but on this I put repeat should I have done something else.
Code: [Select]
set %chest CUABDSD ;This would be set to XXXXXXX so anyone could set there own container

event macro 8 1 ; take this out if u don't want to open paperdoll each time
wait 5s              ; could change wait to 20
event macro 8 7 ;opens backpack
wait 5s              ;change to wait 20

FINDITEM * C_ , #backpackID
if #FINDCNT > 0
    gosub MoveIt
until #FINDCNT < 1
 {
  display ok No items were found in your backpack!
 }
halt

sub MoveIt
 exevent drag #findID #findstack
 wait 10
 exevent dropc %chest
 wait 10
repeat

183
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 15, 2015, 05:38:54 PM »
so this is what I got so far I get it to open my paperdoll then open my back pack and it will even attempt to take something out of my bag but then puts it right back in there so it never does the exevent dropc part. so do I have to manually set and #contid for it or is there a way to set it up with out that where it will find it. and or can I set up another event macro for that. and then it keeps trying to drag same item so does the have to be something else besides #findid #findstack
Code: [Select]
event macro 8 1
wait 5s
event macro 8 7
wait 5s

FINDITEM * C_ , #backpackID
if #FINDCNT > 0
    gosub MoveIt
until #FINDCNT < 1
halt

sub MoveIt
 exevent drag #findid #findstack
 wait 10
 exevent dropc #contid
 wait 10
repeat


now I could have a
set %secure XXXXX setup for my exevent dropc but do I need that

184
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 14, 2015, 03:57:48 PM »
ok so I started looking in there and the code I have to start with is this

Code: [Select]
finditem * C_ , #BACKPACKID
if #FINDCNT > 0
{
 display ok There are #FINDCNT items in your backpack!
}
if #FINDCNT < 1
{
 display ok No items were found in your backpack!
}
halt

it is telling me what how many items I have in my bag now from there I need to figure out what command will drag and drop which I have that already with exevent drag command and exevent dropc command but where do I put those and am I going to have to write a gosub and if so how do I do that is it like this
Code: [Select]
gosub remove items

sub remove it
     Exevent drag #findID
     wait 5s
     Exevent dropc #CONTID
     wait 5s

185
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 13, 2015, 06:40:45 PM »
ok will do ill start on it tomorrow when I get off work and I will post and see if u can help me if you don't mind

186
UO Reference Information / Re: Event Macro Numbers for New Masteries
« on: December 13, 2015, 05:08:17 PM »
dang should have read in here first just figured out the bard masteries and was going to put them up but u all beat me to it. thanks for the good info

187
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 13, 2015, 05:05:11 PM »
and could u point to another easy script to try so I can see if I can figure it out. it would be much appreciated

188
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 13, 2015, 05:04:10 PM »
just tried yours out something weird is going on with it the weapon disappears until I log out an back in

189
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 13, 2015, 04:11:08 PM »
Ok cool just trying to learn and that is what he was offering kind of teaching I got it to work the way I did but ur way looks so much easier and nicer than mine

190
UO-Related Tutorials / Re: Needing help with learning to script
« on: December 13, 2015, 02:15:10 PM »
This is what I got so far
Code: [Select]
finditem WW ; the weapon type
if #FINDCNT > 0
{
            Exevent Drag #findID   ; finding the weapon and picking it up
            wait 10
            Exevent Dropc #CONTID PEDWYND    ; dropping it into the container of choice
            wait 10
halt
}


191
UO-Related Tutorials / Needing help with learning to script
« on: December 13, 2015, 02:02:10 PM »
I have been looking and looking trying to read as much as possible but I am still either dumb or blind. I saw that someone was willing to help people start learning to script with a small script where you pick a chest or crate in ur house and drag and item like a sword to the chest. would anyone be willing to spare sometime and let me try and get this to work and maybe help me along in my scripting career. I would really like to contribute something even if it is just some knowledge of what I learn on the way if I never become really good at it.

192
Script Debug / Re: peace provo and disco using masteries
« on: December 13, 2015, 08:29:59 AM »
Just and FYI this is my first script so I know it probably is horrible

193
Script Debug / peace provo and disco using masteries
« on: December 13, 2015, 06:48:49 AM »
This is a work in progress. Maybe I can get a little help. It does what it needs to do but not sure where to put a "if mana = at and I cant figure out how to get it to use another instrument when the previous one is used up.

Code: [Select]
finditem PRF_LQF_MQF_QRF_OQF C_ , #BACKPACKID ; Searches for instruments in the backpack
if #FINDCNT > 0 { ; If there are objects found
set #LOBJECTID #FINDID ; Set the ID of a found object as #LOBJECTID - Uses item
; event macro 16 0 ; Casts last spell - Need to have cast the mastery first (The command for a particular mastery would be "event macro 15 X". Where X=some number the list of mastery spells is new and not yet in the wiki)
event macro 15 703 ; For Peacemaking "event macro 15 703" triggers Resilience - It looks like the masteries start at 701
; target 5s ; Waits for a target to appear and times out after 5 seconds
; event macro 23 0 ; One way to target self. Targets self not needed for every mastery.
wait 30 ; pauses for 1.5 seconds
event macro 15 703 ; cancels the mastery
wait 20 ; pauses for 1 second
}
else {
display ok You are out of instruments ; Displays a message when out of instruments}

194
ok I got it to finally put in the user name but it didn't put in the right pw. then after it went back to the start menu it didn't put in any password. :(

195
http://this script looks like it has a lot of potential but I guess I'm not getting the setup part right. I tried to put the password in the account name to see if it was making it but it never changed the name and then when it does put it in the password it puts 3 or 4 letters.


*** Add Accounts ****
;; gosub AddAccount AccountName Password Defeault[optional]
;;    Accountname - daddy
;;    password - daddy
;;    Default - optional setting to set the Default account that
;;              script should reset uo to before exiting.
;gosub AddAccount daddy    ;edit this
;gosub AddAccount     ;edit this and add more line for more accounts

_________________________________________________________________________________

;#CONTKIND/Gump Values for Client version 7.0.47.0 (Patch unknown)
set %GumpMainMenu    IORC     ; This is the login screen
Set %GumpWait        QMU      ; This is the wait gump before next screen
Set %gumpShardSelect ACPC     ; this is the shard select screen
set %GumpLogin       SVZ      ; this is the Character Selection Screen with NEW/DELETE Buttons
set %GumpNewChar     KDGC     ; this is the New Character Name and Clothing screen
set %GumpNewChar2    WZKC     ; this is the New Character Trade Selection screen
set %GumpNewCharMap  WZKC     ; this is the New Character Map starting location screen
set %GumpGeneric     YAOD     ; this is the Vet Reward/6 month stat increase gump
set %GumpYesNo       GLDC     ; this is the Logout - Okay Cancel gump




Pages: 1 ... 11 12 [13] 14 15 16