Bit of help with a script plz

Moderator: Support Moderators

Post Reply
Samorite
UOSA Subscriber!
UOSA Subscriber!
Posts: 420
Joined: Tue Jun 05, 2012 10:53 am

Bit of help with a script plz

Post by Samorite »

I am trying to set a script in Razor where I make 5 bows and then is says vendor sell

Can n e 1 help ?


Cheers
Image

User avatar
Loathed
Posts: 675
Joined: Sun May 04, 2008 10:56 pm
Contact:

Re: Bit of help with a script plz

Post by Loathed »

add bows in your display/counters tab. in your macro you will have a line that says
if (bow) >=5
say: vendor sell
pause 1 second
else
use dagger
target wood
wait for menu(any)
menu response #
wait for menu(any)
menu response #
pause 10 seconds (or whatever the delay is)
end if

chk the loop box
also you will need to have a sell agent set up for selling bows.

Samorite
UOSA Subscriber!
UOSA Subscriber!
Posts: 420
Joined: Tue Jun 05, 2012 10:53 am

Re: Bit of help with a script plz

Post by Samorite »

keep getting

Image

n e ideas ?
Image

User avatar
the bazookas
UOSA Donor!!
UOSA Donor!!
Posts: 671
Joined: Tue Aug 02, 2011 4:57 pm

Re: Bit of help with a script plz

Post by the bazookas »

Are you trying to manually write the macro? It's certainly better to just record it in-game, especially if you are new at it. Loathed didn't give you the "code", he gave you an idea of what commands to record and add (as Special Constructs) in-game through Razor
Most people like us, or at least they like what we do. Regardless, we appreciate all our victims, and we hope that their encounter with us is a memorable one.
-a machine gun, a bazooka, and a grenade
... a not-for-profit organization (usually)

Samorite
UOSA Subscriber!
UOSA Subscriber!
Posts: 420
Joined: Tue Jun 05, 2012 10:53 am

Re: Bit of help with a script plz

Post by Samorite »

got most of the script running its just the more than 5 bows bit

this is what i have up to now

Code: Select all

!Loop
Assistant.Macros.DoubleClickAction|1073779879|3922
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.AbsoluteTargetAction|0|0|1073780343|55|103|0|7127
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|2|5042|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|5042|0
Assistant.Macros.PauseAction|00:00:08
Assistant.Macros.SpeechAction|0|52|3|ENG|4|33|77|23|112|vendor sell
Image

Missy B
Posts: 424
Joined: Sun Feb 19, 2012 2:19 am

Re: Bit of help with a script plz

Post by Missy B »

youll need to add the item to your counters. make sure the box is checked and make sure to add the abbreviation to the title bar
Image

User avatar
the bazookas
UOSA Donor!!
UOSA Donor!!
Posts: 671
Joined: Tue Aug 02, 2011 4:57 pm

Re: Bit of help with a script plz

Post by the bazookas »

The thing is that the Display/Counters Tab is what is used to add a particular counter (e.g. "bow") to your profile xml file, and your Macro's if statement will be relying on that identifier in order to perform the "if bows > 5" action. Hence, you either need to edit the profile xml yourself, or go make the changes in-game.

Again, there really is no reason to manually create this macro (and especially no reason to manually edit the profile xml file in this case). Even if you are just trying to learn the commands used in the macro, you really need to just record the macro (to insert an if statement, you left click the action that you want to insert it after (you can Move it up later if you need to get it to the top) and select "Special Construct"->"If" something or other. Record the macro as loathed described (again, you need to create a bows counter for you to even have the option of creating that if statement), and then open it up to see what the commands are (if that's what you are interested in)
Most people like us, or at least they like what we do. Regardless, we appreciate all our victims, and we hope that their encounter with us is a memorable one.
-a machine gun, a bazooka, and a grenade
... a not-for-profit organization (usually)

Samorite
UOSA Subscriber!
UOSA Subscriber!
Posts: 420
Joined: Tue Jun 05, 2012 10:53 am

Re: Bit of help with a script plz

Post by Samorite »

Missy B wrote:youll need to add the item to your counters. make sure the box is checked and make sure to add the abbreviation to the title bar
thx that did the trick ;)
Image

User avatar
Bicchus Dicchus
Posts: 156
Joined: Mon Jan 10, 2011 3:21 am
Location: Green Acres

Re: Bit of help with a script plz

Post by Bicchus Dicchus »

Samorite wrote:Can n e 1 help ?
Samorite wrote:n e ideas ?

Is it really that hard to type "any"?

I mean, you're already hitting the keyboard three times to type "n e".

Hey, just a quick question.
Was the bus you took to school, as a child, somewhat shorter than the bus the other kids took?

Bicchus Dicchus
Image

Samorite
UOSA Subscriber!
UOSA Subscriber!
Posts: 420
Joined: Tue Jun 05, 2012 10:53 am

Re: Bit of help with a script plz

Post by Samorite »

arrr Bicchus Dicchus and its stuck on ya head ;)
Image

Post Reply

Return to “New Player Help”