Page 1 of 1

scripting 2 macros togeather

Posted: June 26th, 2004, 12:17 pm
by pp_baresnoop
i know admin has explained this before on previous forums, but plz can u tell me how to script 2 macros togeather again plz. The reason is i want to do a crafting macro seperate from a going to wh and collecting mats macro. This will enable me to disable the 2nd macro (picking up mats) at busy times when there are too many obsticles in way.

Also can u explain the script that allows me to loop 'X' number of times before stopping macro. Again i know this was explained before to sum1 else on forums but i've forgotten and cant remember where to look. :?

Posted: July 2nd, 2004, 7:28 am
by Guest
i would also like to see the anser for this ^^

Posted: August 19th, 2004, 10:36 pm
by toothpaste
I don't espescially know Visual Basic, but I know PHP and they look kinda the same so I hope this helps:
To include another script in your current script, use the 'include' function.
e.g.

Code: Select all

include 'file_name_that_you_want_to_include_goes_here.ext'
There are two ways to loop something until a certain condition is met.
There is the While loop and the For loop.
Here is an example to loop a script 10 times:

Code: Select all

$num = 1;
while($num < 10){
   place your script here
   $num = $num + 1;
   }
Mmmm I hope that helps, probably won't though seeing as it's PHP :p But, that's all I know ^^ VBS looks kinda similar though...
Your best bet would be to search google :p

Posted: August 21st, 2004, 9:58 am
by wyvernx
Close tooth.

See the Scripting documentation forums/threads on sample scripts that do what you are asking.

Re: scripting 2 macros togeather

Posted: November 1st, 2004, 1:52 pm
by toothpaste
Hehe. Sorry I couldn't be of more help.

Re: scripting 2 macros togeather

Posted: November 1st, 2004, 2:32 pm
by acepower
Set oService = PluginHelper.Service("XUScripts.XUScriptPlugin")
'Reset the random number generator
Randomize(timer)

'Lets add a random delay between macros
Dim iUpperbound
Dim iLowerbound
Dim iDelay
iUpperbound = 6000 'Six seconds
iLowerbound = 1000 'One second

Dim objMacroHelper

Set objMacroHelper = CreateObject("XUMacroHelper.MacroWindow")

objMacroHelper.SetPlayOnce()

Dim iCounter

For iCounter = 1 to 1 'Run the macro 3 times.

objMacroHelper.Play("cooking")

Do While (objMacroHelper.MacroPlaying) 'Sleep while macro is running
XUScriptHost.Sleep(500) 'Sleep half a second
Loop

'Random Sleep between macros?
iDelay = Int((iUpperbound - iLowerbound + 1) * Rnd + iLowerbound)
XUScriptHost.Sleep(iDelay)
next

got this off the forum if it can help gl it dident help me itryed to run script in game and the mouse dus not do what its ment to >.<

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 9:40 am
by asdirl
[quote="pp_baresnoop";p="36196"]i know admin has explained this before on previous forums, but plz can u tell me how to script 2 macros togeather again plz. The reason is i want to do a crafting macro seperate from a going to wh and collecting mats macro. This will enable me to disable the 2nd macro (picking up mats) at busy times when there are too many obsticles in way.

Also can u explain the script that allows me to loop 'X' number of times before stopping macro. Again i know this was explained before to sum1 else on forums but i've forgotten and cant remember where to look. :?[/quote]

Which ideat use's a macro to go to wh in tyt lol, its asking for sucide.

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 9:50 am
by acepower
[quote="asdirl";p="47462"][quote="pp_baresnoop";p="36196"]i know admin has explained this before on previous forums, but plz can u tell me how to script 2 macros togeather again plz. The reason is i want to do a crafting macro seperate from a going to wh and collecting mats macro. This will enable me to disable the 2nd macro (picking up mats) at busy times when there are too many obsticles in way.

Also can u explain the script that allows me to loop 'X' number of times before stopping macro. Again i know this was explained before to sum1 else on forums but i've forgotten and cant remember where to look. :?[/quote]

Which ideat use's a macro to go to wh in tyt lol, its asking for sucide.[/quote]


not if u no what u r doing it ant.....

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 12:25 pm
by asdirl
[quote="acepower";p="47465"][quote="asdirl";p="47462"][quote="pp_baresnoop";p="36196"]i know admin has explained this before on previous forums, but plz can u tell me how to script 2 macros togeather again plz. The reason is i want to do a crafting macro seperate from a going to wh and collecting mats macro. This will enable me to disable the 2nd macro (picking up mats) at busy times when there are too many obsticles in way.

Also can u explain the script that allows me to loop 'X' number of times before stopping macro. Again i know this was explained before to sum1 else on forums but i've forgotten and cant remember where to look. :?[/quote]

Which ideat use's a macro to go to wh in tyt lol, its asking for sucide.[/quote]


not if u no what u r doing it ant.....[/quote]

you'll be caught.

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 2:00 pm
by acepower
i ant been yet ;)

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 2:25 pm
by toothpaste
Your macro will bugger up.
But, saying that, I guess you could write a script to find the pixel colour of part of the oven or loom or whatever, and a pixel colour for the warehouse. That way it would just walk around until it found it, I guess.
But having never written a vbs script myself, I don't espescially know what I'm talking about.

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 5:07 pm
by acepower
thoopast that your old soma name if it is i no u so if u r we shud get to gether work on a few things pm me your msn ifu have msn andu r who i tihnk u r k


btw never go afk wiles macroing its bad news!

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 5:33 pm
by toothpaste
Sure ^^;

Re: scripting 2 macros togeather

Posted: November 2nd, 2004, 5:40 pm
by acepower
addet ;o