Math Variables & Numbers

Joker

Member
Stupid question, I know. But how do I compare a variable with a number?

Say:
Code:
if (${i} == 0)
It keeps throwing errors at me. Not a valid Mathematical Operation or something like that.

Edit:
Wow. I thought about making a Bot for my personal use, but I don't know how that's going to be possible now. Is there any better documentation out there? How do you people know how to use the correct syntax? I keep running into issue after issue after issue and neither the LavishScript Wiki or the ISXEVE Wiki helps.

Such as: How do I get the Security of a system?
Code:
interstellar.Universe.Security[${ID#}]
??
 
Last edited:

Noob536

Member
Code:
if (${i} == 0)
should work fine...assuming i is a int or float or whatever...if its a string youd would want to do

Code:
if ${i.Equal[<whatever>]}
of
if ${i.NotEqual[<whatever>]}
youd want
Code:
echo ${Universe[<id or name>].Security}
interstellar is just the type or object or whatever it returns, Universe is the top level object

if your not sure about the syntax for stuff etc. id poke around evebots files, probably anything you would want to do would be in there
 

Joker

Member
Thanks. I probably never would have figured that out.

I think I'm starting to get the hang of it, slowly, but I am. I've been using EVEBot as a guide, but it's hard to find specific answers to questions sometimes. I have to do alot of reworking of some algorithms to figure out how to make them work in this. Even simple things I guess I usually take for granted. lol
 

Amadeus

The Maestro
Staff member
The SVN scripts repository has TONS of scripts for 3 games (see http://www.isxgames.com/forums/showthread.php?t=532) ...just use http://www.isxgames.com/isxScripts as your SVN directory (when you follow the instructions in that above thread) and you'll get everything.

Look at eq2bot for a complex (but simple) script. Or, any of the smaller ones throughout. EVESalvage is a good one that relates to EVE directly that is pretty easy. However, all lavishscript scripts on that SVN can be used as examples for what you'd want to do ...you just have to change things for the specific ISXEVE members/methods/commands.
 
Top Bottom