Sprint script

Xeon

Active Member
Put this in a file called sprint.iss

Code:
function main()
{
   if ${Me.IsSprinting}
    echo "Turning OFF sprint mode"
   else
    echo "Turning ON sprint mode"

    Me:Sprint
}
Then from the VG chat window you can: /run sprint.iss

You can even put it into a Shortcut :D
 
Last edited:

Kazman420

Active Member
Xeon said:
You can even put it into a Shortcut :D
You are aware that custom shortcuts/macros/hotkeys are stored server side, yes? I found this out a long time ago when my friend had me log in his character and all of his custom hotkeys loaded up. I was quite impressed. Even the multi-line /refineadditem crafting macro's. After seeing your post, I just logged his character in again (I re-installed VG last week, so there were no previous files of his on my system) to confirm that it still works this way, and it does.

Now with that being said, I feel 99% confident in saying that they don't scan player macros and they would never see this, but I bet they could if they wanted to. I'm just the kind of person who would rather not "give" them any potential information they don't need, hehe.

Just my 2cp on the shortcut idea. Definetly a nice little script for those who are interested, and as always thank you for your time and effort!
 

Xeon

Active Member
Kazman420 said:
You are aware that custom shortcuts/macros/hotkeys are stored server side, yes?
Didn't know that... cool

So you could just do this:

bind sprintscript f1 "runscript sprint.iss"

That way you could hit F1 to toggle the sprint mode :D

EDIT: Or use simple obfuscation and name the script away.iss and then create a shortcut that does:
/run away

BRILLIANT!
 
Last edited:

Kazman420

Active Member
Xeon said:
EDIT: Or use simple obfuscation and name the script away.iss and then create a shortcut that does:
/run away

BRILLIANT!
That's perfect in every way!

Edit: Ok well I guess its not "perfect", but its funny as hell :D
 
Last edited:

aChallenged1

Active Member
I don't think changing it that way would fool them.

"/run" is a giveaway that it's a non-Vanguard call.

I'm thinking it would be nice to have a GUI that allows you to make hotbuttons on it that run your 8 favorite scripts. I think 8 should be enough, don't you?
 

Cr4zyb4rd

Active Member
Sure, I can toss the VG people a bone once in a while. :evil:

You could load this with a hotkey
Code:
bind toggle8scriptwindow "CTRL+ALT+S" "ui -\${If[\${UIElement[8scripts](exists),reload,unload]} \${LavishScript.HomeDirectory}/Scripts/XML/8scripts.xml"
Or directly from the command line. Settings are saved in ${LavishScript.HomeDirectory}/Scripts/XML/8scripts_settings.xml

ps: If you wanted to bind a key to run whatever script was saved in the box directly, the syntax would be something like
Code:
bind runscript1 "CTRL+ALT+F1" "run \${SettingXML[\${LavishScript.HomeDirectory}/Scripts/XML/8scripts_settings.xml].Set[Scripts].GetString[Script 1,NULL]}]
replacing "Script 1" with "Script 2" etc as desired. Yes I could have let you set up the binds from the window, but I"m not that much of a saint.
 

Attachments

Last edited:

Kazman420

Active Member
Thank you Cr4zyb4rd,

However I think I'm doing something wrong. I put the 8scripts.xml file in the InnerSpace\Scripts\XML directory, and when I attempt to create the hotkey using the first code you gave I get the following response from the console;

Syntax: Bind -keylist|-clear|-list|-delete <name>|[-press|-release] <name> <combo> <command>

Sorry if Im doing something wrong, Im still very new to all this. Any idea what the problem might be? I'm very interested in getting this 8 Script window to work =)

Thanks again!

Edit: Ok well after messing around some, spending alot of time with the wiki, trying to learn and absorb as much as possible I've made progress! I was able to get the XML file to load manually (granted it was alot of trial and error.. I have virtually no programming skills and at first that line of code looked greek to me!) and from there I was able to bind it. I'm still not sure why it didnt work the first initially when all I did was copy and paste the code. Your method looks like it would refresh/close it if its already open and whatnot, but I can at least mess around with it some now. Thanks for this, it looks like its going to be make my life alot easier for running multiple scripts!

Oh, the code I used.. in case anybody else is having problems:

Code:
Bind 8scripts CTRL+ALT+S ui -load Scripts/XML/8scripts.xml
 
Last edited:

Amadeus

The Maestro
Staff member
"/run" is a giveaway that it's a non-Vanguard call.
First, someone just told me the other day that '/run' was a vanguard command.

Secondly, and this is just for a general FYI, though macros may be saved in your player file, ALL is/isxvg commands that are typed into the chat box are NEVER sent to the server. For example, if you type "/radar on" into the chat box (or send it to the client via a macro/hotkey) it is NEVER sent to the server. ISXVG intercepts it and interprets it and never sends it on to the VG server.

Just like 'vgecho' stuff is never sent to the server either. The only way you'll get in trouble for that is if it's in a screenshot.
 

Kazman420

Active Member
Thanks Cr4azyb4rd.. I see you fixed it just as I was editing my post with an update! Oh well at least I learned alittle something =)

Amadeus, /run is indeed a valid game command.. I just checked it.

Also, thanks for the info regarding what is and is not sent to the server... That answers a question I had but was afraid to ask, hehe.
 

dazed0119

Active Member
so anyone get the afterburner to work? I know nothing about this scripting stuff so no clue on how to even begin...
 

Xeon

Active Member
dazed0119 said:
so anyone get the afterburner to work? I know nothing about this scripting stuff so no clue on how to even begin...
Code:
function main(bool realFast)
{
   if ${Me.IsSprinting}
    echo "Turning OFF sprint mode"
   else
    echo "Turning ON sprint mode"

    if ${realFast}
        Me:Afterburner
    else
        Me:Sprint
}
The to kick in AfterBurner mode, you run the script as:

/run away 1

Notice the 1 at the end
 

dazed0119

Active Member
like I said, I know nothing ;o) do i save this as an ISS like the other one or is there somethign else I need to do?
 

dazed0119

Active Member
Xeon said:
Code:
function main(bool realFast)
{
   if ${Me.IsSprinting}
    echo "Turning OFF sprint mode"
   else
    echo "Turning ON sprint mode"

    if ${realFast}
        Me:Afterburner
    else
        Me:Sprint
}
The to kick in AfterBurner mode, you run the script as:

/run away 1

Notice the 1 at the end



ok got this to work, but now I am constantly sprinting, and it wont turn it off by doing it again?
 

Kannkor

Ogre
run away 1
Will only ever try to use afterburner
run away
should toggle the sprint.. what exactly are you typing?
 

Cr4zyb4rd

Active Member
Trying to hijack VG threads, and having little luck :(

BTW: I made a small fix or two to that XML I posted a few threads up. If anybody's interested I might clean it up and pimp it out a bit more (make it so it just shows the buttons by default with right-click-to-config, docking/autohide settings, etc) and move it to the UI forum on ismods. If nothing else it might serve as a good example.

What we could really use is a set of square "hotbar"-style button textures to use for such things. I already have ideas for how I'd build a chooser window, but I'm crappy with graphics and have reservations about just stealing them from another game's texture files. If anybody knows of a project like this that's already out there, or has some ideas what I might use, please let me know.
 

Whrip

Active Member
Well I tried out your 8script.xml and played with it last night and its actually pretty functional. I came back to pull it up while i'm at work so I could peek at the code.

So to answer your question, yes, an example would be great. All the other options you mentioned as well :)
 

Kannkor

Ogre
Afterburner will only kick in when you run the script with an aug of 1 and you aren't within 10 minutes of your last one / logging on. This script doesn't loop so only when you "run" it does it do anything.
 

Cr4zyb4rd

Active Member
You can use something like
Code:
		hud -add AmISprinting 5,290 ${If[${Me.IsSprinting},,"NOT "]}SPRINTING
		hud -add AfterburnerReady 5,310 AFTERBURNER ${If[${Me.AfterburnerReady},,"NOT "]}READY
to show you the state of these. I'll whip up a small UI with hotbuttons shortly.
 

CrazyJosh1

Active Member
Wouldnt something like speed be recorded by Sigil serverside? It would seem to be easy. If character loc1 >= loc1+10 and (time < time1+1) then alarm?
or something like that?
 
Last edited:
Top Bottom