11-18-2015, 04:58 AM
I have a script but I want to know what the code to be repeated every 50 min since no command, pls help This is the script is to be re-bufear every 50 min 2 weeks ago I'm looking for and find nothing
repeat
if YOU lostNPCbuff()
then
Stop tower()
run file: Go to take new buff
run file: Go to spot again
Start tower()
until false
(11-18-2015 07:20 AM)rORUMI Wrote: [ -> ]You can check time.. take the current time.. and count 50 min and run your script... but its better use gotbuff(), and run your script every time you need buff.
Try to do a script like this
LUA Programming
repeat if YOU lostNPCbuff() then Stop tower() run file: Go to take new buff run file: Go to spot again Start tower() until false
-- L2TOWER: LUA - TinyISS Buff v0.4 | rORUMI
------------------------------------------------------
ShowToClient("Script", "TinyISS 85 v0.4 ACTIVE", 3);
------------------------------------------------------
--Autorun Scripts-------------------------------------
autoAuras = false; -- Enable autoAuras Script || ISS DONT NEED ITS
if autoAuras then
ProcessCommand("/scriptStart AutoAuras.lua");
Sleep(1000)
end;
--ProcessCommand("/scriptStart APause.lua"); -- Wait for rezz until kerberos plugin rezz
Sleep(1000)
------------------------------------------------------
--Common Files----------------------------------------
local fileGlobalVar = assert(loadfile(GetDir() .. "\\scripts\\common\\GlobalVar.lua"))
fileGlobalVar();
--DebugMode-------------------------------------------
debugMode = false;
local fileDebugMode = assert(loadfile(GetDir() .. "\\scripts\\common\\DebugMode.lua")) -- Console/file debug
fileDebugMode();
--------------------------------------------------
local fileUseSkill = assert(loadfile(GetDir() .. "\\scripts\\common\\UseSkill.lua")) -- PVE/PVP Engine
fileUseSkill();
--------------------------------------------------