Can you use this to create scripts to perform mouse tasks and read pixel color information to perform on events?
Or will it only work purely on the structures created in a .dll plugin, eg. can I script some EQ2 stuff without using a isxeq2 plugin, not worried about reading into memory information ?
Or should I just shut up?
Scripting Events without .dlls?
Moderators: Lavish Software Team, Moderators
Ok thanks for speedy replies!
Meantime i've started to learn c++ ...
I'm willing to allow you to use this source in one of your up and coming projects for the future (for a small fee of course!)
Meantime i've started to learn c++ ...
I'm willing to allow you to use this source in one of your up and coming projects for the future (for a small fee of course!)
Code: Select all
#include <iostream>
class Car {
public:
char Ignition;
char WheelsTurning;
char Stopped;
//Constructor - Deconstructor
Car();
~Car();
void startCar(void);
void setMotion(void);
void stopCar(void);
};
Car::Car() {
Ignition = 0;
WheelsTurning = 0;
Stopped = 1;
}
Car::~Car() {
}
void Car::startCar(void) {
if(Ignition == 0) {
Ignition = 1;
std::cout << "Started car engine..." << std::endl;
} else {
std::cout << "Could not start engine as Car is already running!..." << std::endl;
}
}
void Car::setMotion(void) {
if(Ignition == 1) {;
WheelsTurning = 1;
Stopped = 0;
std::cout<< "Wheels are moving!..." << std::endl;
} else {
std::cout << "Ignition not started! Cannot turn wheels." << std::endl;
}
}
void Car::stopCar(void) {
if((WheelsTurning == 1) && (Ignition == 1)) {
WheelsTurning = 0;
Ignition = 0;
Stopped = 1;
std::cout << "Stopped Car!" << std::endl;
} else {
std::cout << "Could not stop car as Car it is in motion!" << std::endl;
}
}
void main(void) {
Car Ferrari;
std::cout << "<<Running Car Version 1.0>>" << std::endl << std::endl;
Ferrari.startCar();
Ferrari.setMotion();
Ferrari.stopCar();
Ferrari.setMotion();
Ferrari.stopCar();
Ferrari.startCar();
Ferrari.setMotion();
Ferrari.startCar();
}
ahhh my eyes!
You can get rid of typing "std::" all the time by doing "using namespace std;" under the #include <iostream>. I will mention that Inner Space (and Fury) use only specific features from C++, and the rest is left to regular old C. For example, to display text in the IS console, it will be highly beneficial to know how to use printf. C++ books teach use of cout, which to me is really ugly and the use of the << operator is both ambiguous and unusual. That is to say, << usually means bitwise shift left, but for std streams it means to add to the stream... and for ambiguity (note that the following syntax may technically be incorrect): std::cout << "Hi" << 1 << "Bye"; Now suppose you want to use bitwise shift.. std::cout << "Hi" << 1<<31 << "Bye" .. woops! std::cout << "Hi" << (1<<31) << "Bye" . Anyway, short story short, I dont use std streams and dont wish them on my worst enemies
My personal opinion is you should learn C without C++, and then C++ is fairly natural to learn and you can borrow some concepts from it without getting too C++ish. C for Dummies by Dan Gookin should be good if you like books, and he's funny I suppose.
Just my opinion and personal preferences, certainly no more valid than anyone elses. I tend to lean further toward C while borrowing some key things from C++ (parameters using &, classes in general, a few other things) and leaving the rest of it alone. Use what you feel comfortable using, but you should familiarize yourself with printf (which probably isnt explained in C++ lessons) and usage of null-terminated character arrays as strings for working with Inner Space.
You can get rid of typing "std::" all the time by doing "using namespace std;" under the #include <iostream>. I will mention that Inner Space (and Fury) use only specific features from C++, and the rest is left to regular old C. For example, to display text in the IS console, it will be highly beneficial to know how to use printf. C++ books teach use of cout, which to me is really ugly and the use of the << operator is both ambiguous and unusual. That is to say, << usually means bitwise shift left, but for std streams it means to add to the stream... and for ambiguity (note that the following syntax may technically be incorrect): std::cout << "Hi" << 1 << "Bye"; Now suppose you want to use bitwise shift.. std::cout << "Hi" << 1<<31 << "Bye" .. woops! std::cout << "Hi" << (1<<31) << "Bye" . Anyway, short story short, I dont use std streams and dont wish them on my worst enemies
My personal opinion is you should learn C without C++, and then C++ is fairly natural to learn and you can borrow some concepts from it without getting too C++ish. C for Dummies by Dan Gookin should be good if you like books, and he's funny I suppose.
Just my opinion and personal preferences, certainly no more valid than anyone elses. I tend to lean further toward C while borrowing some key things from C++ (parameters using &, classes in general, a few other things) and leaving the rest of it alone. Use what you feel comfortable using, but you should familiarize yourself with printf (which probably isnt explained in C++ lessons) and usage of null-terminated character arrays as strings for working with Inner Space.