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

Pages: [1] 2
1
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 05, 2011, 02:48:31 PM »
Yea im a mechanic so im right there with you, this stuff can go over my head fast! What i learned help me thru this script is what i learned in one of the tutorials is think of what you want and to write it down. simple steps.. then put in what u want checked for that one step. Also if i got stuck one trying to figure out codes, i either bothered these guys lmao. or i read into some scripts that did what i wanted to do and play around.

i been writing the script from top to bottom, and testing every few lines by putting halt at the end and seeing if it did what i wanted, i also put all my wait times up high for testing so if it did mess up i can push pause and see where im at. You can always speed up your script at then end. this one here does it super fast for me. but it's also set up to my comp connection. so if u did want to use it play around with the times by adding if too fast. def cant be to slow.. lmao

Code: [Select]
; Created by Monoxide
; Date 10/4/2011
; Created to Help getting Mace and Shield Glasses
;
; <<< THIS ONLY WORKS FOR SERVERS THAT HAVE INSTANT SPAWN NPCS FOR FAST BUYING. IF YOU ARE LOOKING FOR SOMETHING THAT SITS >>>
; <<< THERE TO STOCKUP THE PILE GO SOMEWHERE ELSE!!! >>>
;
;
;
;
;
; Setup
; You will need 1 runebook, no more no less or things will get funny.
;     1st rune the npc vendor selling Bucklers And War Axes within a tile, unless your server allows vendor buy further.
;     2nd rune to the library donation npc (close enough to reach out and touch him)
;     3rd rune the bank somewhere you know u have access to banker and withdrawl money
; You will need razor buying agent enabled, and set to bucklers and war axes, or whatever you want. i believe it will skip over it.. not really sure guess u find out



event macro 8 2




Start

if #gold < 1100
gosub gotta_get_gold




findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 5

set #contPosX 10
set #contPosY 10
contpos
wait 5

click 144 80

wait 20
findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 20

set #contPosX 10
set #contPosY 10
contpos
wait 10

msg vendor buy$
wait 20

click 144 95
wait 50

finditem BGKH G_20
if #FINDCNT > 0
set #lobjectID #findID
event macro 17 0
wait 10

set #contPosX 10
set #contPosY 10
contpos
wait 10

click 316 352
wait 5
click 316 352
wait 5
click 48 180
wait 10
msg 20$
wait 5
set #contPosX 10
set #contPosY 10
contpos
wait 10
wait 5
click 316 352
wait 5
click 316 352
wait 5
click 50 250
wait 10
msg 20$

wait 20

loop

;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

sub gotta_get_gold

findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 20

set #contPosX 10
set #contPosY 10
contpos
wait 20

click 142 110
wait 50

msg withdrawl 5000$
wait 50
msg withdrawl 5000$
wait 50

return


2
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 04, 2011, 05:42:33 PM »
thank you, and i feel like such an idiot!!! my double clicking glitch was such a stupid glitch, all i had to do was after the findid was to set ltarget = findid then event 17 0..

3
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 04, 2011, 04:34:40 AM »
hmm, well i did find anything that helped me get good id types, i dont know if my sever is using dif code? but the ones i keep running into not working. anyhow though i got this much.. now it does what i want it to do, but is a bit glitchy.

Code: [Select]
findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 20

set #contPosX 10
set #contPosY 10
contpos
wait 20

click 144 80
wait 50

msg vendor buy$                       <---- got away from needing to find type, but i know in future ill need to know
wait 20

findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 20

set #contPosX 10
set #contPosY 10
contpos
wait 20

click 144 95
wait 100

finditem BGKH G_20
if #FINDCNT > 0
click 443 303 d f
click 443 303 d f                  <---- this double click gets glitchy why i put it in 3 times but still rough.
click 443 303 d f
wait 20

set #contPosX 10
set #contPosY 10
contpos
wait 20

click 316 352
wait 5
click 316 352
wait 5
click 48 180
wait 5
msg 20$
wait 5
set #contPosX 10
set #contPosY 10
contpos
wait 20
wait 5
click 316 352
wait 5
click 316 352
wait 5
click 50 250
wait 5
msg 20$

loop



its my rough copy, i guess i gotta add in checks to make sure things happened right.. and put in a save pauser so it doesnt get messed up in world saves.

4
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 03, 2011, 05:37:31 PM »
Okay that makes sense  :P now one last stupid question then i should be good for the night lol. when i recall into the shop the npc is different, has different id# is there another way around this? i tried using %vendor but its not registering.

5
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 03, 2011, 05:06:41 PM »
okay i found some info on exeevent popup and i found this, but i dont understand this one line

finditem %vendor G_10    <------ where is the g_10 coming from? should that be an item id #?
if #FINDCNT > 0
   exevent Popup #findid 1
halt

6
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 03, 2011, 04:16:36 PM »
yea i figured is i could get the runebook gump to move to the certain location and i have it click on the blue buttons it should work alright.. i didnt want to get it too complicated because its only 2 rune locations.

7
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 03, 2011, 04:06:49 PM »
Okay so i got my script looking like this.. and it may look silly to you guys, but its my first born and actually does something!!! amazing!!

Code: [Select]
findItem ZBN
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 5

set #contPosX 10
set #contPosY 10
contpos
wait 5

click 144 80

halt

now so far it gets my rune book, and recalls me to my first location. which is the blacksmith i want. Im trying to read thru tutorials to find something that will help me find the npc, then choose buy. ohhh and looks like im gonna need to add in a check to see if i actually recalled to the spot too.. man now i understand why these can get so long.. im just doing simple stuff!!!  

8
Script Debug / Re: Hey my first script in the making! Please help lol
« on: October 03, 2011, 03:26:18 PM »
sorry, i just relized i post this in the wrong section, and i also realized the first problem. i made the mistake of putting in
 if #findKind = -1
halt.

i guess it was messing up because runebooks do not have a counter? hmm anyhow back to getting this going!

9
Script Debug / Hey my first script in the making! Please help lol
« on: October 03, 2011, 02:50:39 PM »
Alright, im trying to make a script that recalls to two locations on a rune book. buys from one npc vendor, bucklers and battle axes. (which i have razor buy agent on background to make the buying part easy in my script) then recall back and donate both.

so i do have a plan

Look for runebook
Open runebook
chose first rune
click npc choose buy
recall to spot #2
double click npc
chose  bucklers
enter 20
double click npc
chose battle axes
enter 20

repeat


well that being said i got this so far

findItem ZBN EGSD , #backpackID
  if if #findKind = -1
    halt
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 5


but its not opening my runebook. i think its finding it because it stays on play.. unlike when i had a different backpack id then it just kept halting. but i thought event macro was to use it?

ill be playing around with it for more time. but also if i do figure this out, and i get it opened.. would i have it look for the rune spot 1 by using coords? or is there an easier way incase rune book opens up somewhere else?

10
OpenEUO Scripts / Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
« on: September 10, 2011, 06:27:22 PM »
Did you try both versions? the rw and the original? the rw version solved my problem for the circling thru, i think crome was saying something bout the gump size was different on rw. if ur using a completely different server that may be the issue, and Crome i been looking at the items that come in the packs i dont think i found one thing worth saying thru thousands of packs lol unless osi has better items it might not even be worth making an eval.

11
OpenEUO Scripts / Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
« on: September 09, 2011, 05:06:41 PM »
So i looked at the gumps they look awesome! Love the loot options part! but not sure what a rare recipe tailsman is lol, but looks like u got urself some nasty script in the making!

12
OpenEUO Scripts / Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
« on: September 07, 2011, 03:31:55 AM »
sweet, ill take a look at it after work!

13
Freeshard specific scripts / Re: Heartwood Fletcher Quest for Bolts
« on: September 07, 2011, 03:30:22 AM »
yea, just dont forget that comma add like noted earlier i think on page 2, i saw it eat a heartwood i felt like i was in a 300 movie all slow mo.... nooooooooooooooooo !

14
New member introductions / Re: Hello Everyone!
« on: September 07, 2011, 03:28:18 AM »
ohhhhhh... so thats where i been going wrong!!! thanx for the advice lol.  :o

15
General UO Chat - Freeshard edition / Re: Raistlins World Ad
« on: September 05, 2011, 06:06:35 PM »
If anyone joins this server, feel free to send me a message with ur char's name and ill lend a hand out the best i can! just dont be asking me for mil checks or complete Artie suits ill just laugh and delete message  ::)

Pages: [1] 2