Fostik wrote:And btw, im very bad in coding, so there are some requests:
A way to differ meat.
Some way to exit flower menu(or how can i?)
Fostik, try add "closeFlower()" to your code.
Fostik wrote:And btw, im very bad in coding, so there are some requests:
A way to differ meat.
Some way to exit flower menu(or how can i?)
ydex wrote:I would like to place stockpiles next to my beehive. something like
var coords=getCoords(beehive)-1;
placeStockpile("straw",coords) ;
but since placeStockpile and many other comands need coords in x,y format it doesnt seam to work?
Is there a way to get the x and y coords separatly?
placeStockpile("straw",coords.Coords.x,coords.Coords.y) ;
Paradoxs wrote:Thedrah wrote:is there any support for combat? such as knowing openers of yourself and opponent
and the new fishing requires the use of clicking on a window, any chance for some help?
Not yet, I'll work on it, I still dont have a character thats combat safe to be able to stand still and collect data to mess with combat. and test combat controls. SInce iv been gone im pretty behind. Its a eventual goal though
var LoginAttempts = 0;
var CharacterSelectAttempts = 0;
function main(){
CheckLogin();
CheckChar();
Checkgame();
print("damn");
exit();
}
function CheckLogin(){
if(getMenu("login")){
print("Attempting to login");
if(LoginAttempts < 10) {
if (login(Username, Password)) {
print("Logged in under: " + Username);
} else {
print("Failed to login(" + LoginAttempts + ")");
LoginAttempts += 1;
}
}else{
print("Failed to login, script terminating");
Exit();
}
}
}
function CheckChar(){
if(getMenu("char")){
print("Attempting to select character");
if(CharacterSelectAttempts < 10) {
if (selectCharacter(Character)) {
print("Selected Character: " + Character);
} else {
print("Could not find character " + Character + " (" + CharacterSelectAttempts + ")");
CharacterSelectAttempts += 1;
}
}else{
print("Failed to select " + Character);
print("Do they exist? Script terminating");
Exit();
}
}
}
function Checkgame(){
if(getMenu("game")){
print("found game!");
print("login script example finished!");
print("logging out");
logout();
print("Terminating Script");
exit();
}
}
Thedrah wrote:edit: not using the login script seems to work great, guess i can't be lazy with logging in now hehe
edit 2: #loadlib is finicky, has to be in the same folder to load and if it has a main function, it loops instead of the loading file. maybe i should instead put the basic functions like nearest object from list into the api.js to make it simple...
kacper022 wrote:How can I get free solts in inventory?
jorb wrote:I hereby forbid you from using it.
RedSkies wrote:Hey - love it so far. Been making a couple basic scripts without too much trouble, except for one thing. I'm not sure if I'm using it wrong, but the sendChat() function doesn't seem to work for me.
I've tried a number of variations but none seem to work:
sendChat("text here");
sendChat("text here",Channel.Area);
sendChat("text here,Channel.Area,"Username");
as well as several others. Am I doing something wrong?
Thanks
Paradoxs wrote:RedSkies wrote:Hey - love it so far. Been making a couple basic scripts without too much trouble, except for one thing. I'm not sure if I'm using it wrong, but the sendChat() function doesn't seem to work for me.
I've tried a number of variations but none seem to work:
sendChat("text here");
sendChat("text here",Channel.Area);
sendChat("text here,Channel.Area,"Username");
as well as several others. Am I doing something wrong?
Thanks
sendChat was renamed chat a while back
jorb wrote:I hereby forbid you from using it.
Users browsing this forum: Claude [Bot] and 91 guests