Re: Enhanced Functionality!
Posted: Fri Dec 03, 2010 6:48 am
Just checked. Looks like it is in fact a function, list_waypoint_files(). Just have to see if I understand how to add an option to the paused state.
rock5 wrote:Code: Select all
Paused. (DEL) to continue, (CTRL+L) exit to shell, (CTRL+C) quit (CTRL+W) load new waypoint file
I've added it to my todo list but I'll have to ask Administrator about how to add a key to the list as I don't quite follow it.jduartedj wrote:rock5 wrote:Code: Select all
Paused. (DEL) to continue, (CTRL+L) exit to shell, (CTRL+C) quit (CTRL+W) load new waypoint file
Exactly THAT's What I meant! and where I was saying interrupt i meant like you do with pause! So yes, BINGO!
rock5 wrote:I've added it to my todo list but I'll have to ask Administrator about how to add a key to the list as I don't quite follow it.jduartedj wrote:rock5 wrote:Code: Select all
Paused. (DEL) to continue, (CTRL+L) exit to shell, (CTRL+C) quit (CTRL+W) load new waypoint file
Exactly THAT's What I meant! and where I was saying interrupt i meant like you do with pause! So yes, BINGO!
Code: Select all
while(true) do
yrest(10);
if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_W) ) then
(code to go back)
end
end
OOPSS this disables PAUSE (CTRL+L) need to break it or maybe call [EDIT:]exit on CTRL+Ljduartedj wrote:Code: Select all
while(true) do yrest(10); if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_W) ) then (code to go back) end end
Code: Select all
while(true) do
yrest(10);
if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_W) ) then
printf("Code to execute\n");
end
if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_L) ) then
exitCallback();
break;
end
endCode: Select all
if( keyPressed(settings.hotkeys.START_BOT.key) ) then --Settings is Is always loaded here
printf("Press DEL again.\n");
break;
endCode: Select all
while(true) do
yrest(10);
if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_W)) then
printf("Press DEL twice, flag set to %s\n", player.free_flag1);
player.free_flag1 = true
return;
end
if( keyPressed(key.VK_CONTROL) and keyPressed(key.VK_L)) then
exitCallback();
return;
end
if( keyPressed(settings.hotkeys.START_BOT.key) ) then
printf("Press DEL again.\n");
return;
end
endCode: Select all
if player.free_flag1 == true then --my code
__WPL=nil;
printf("Restarting... %s\n", player.free_flag1);
player.free_flag1 = false;
return botting(); --tail call
endCode: Select all
while(true) doCode: Select all
function botting()Code: Select all
-- end of local function list_waypoint_files()Code: Select all
end --end of botting
botting();By including this:2 - Include the Waypoint path file in the title bar!
Code: Select all
if (__WPL) then --test if not nil use "and option==true" to set it optional
if (__WPL.FileName) then --test if not nil either in case of wander
waypoint = "<"..__WPL.FileName.."> ";
end
endCode: Select all
local waypoint=" "Code: Select all
if (__WPL) then --not nil use "and option =true" to set it optional
waypoint = "<"..__WPL:getFileName().."> ";
end