lucasdrag
Goblin Grave Robber
Posts: 14
Joined: Aug 2013
Reputation: 0
Version:
1.4.3.143
help pls time code
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
Attached File(s)
prueba numero 10.lua (Size: 1.73 KB / Downloads: 26)
11-18-2015 04:58 AM
rORUMI
Expired VIP Member
Posts: 278
Joined: May 2014
Reputation: 50
Version:
1.4.2.142
RE: help pls time code
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
11-18-2015 07:20 AM
Reputed by : Fox (+1)
lucasdrag
Goblin Grave Robber
Posts: 14
Joined: Aug 2013
Reputation: 0
Version:
1.4.3.143
RE: help pls time code
(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
hello, I dont like you told me but now jumps the script does not work, look left and I'll upload
Attached File(s)
pag.lua (Size: 1.84 KB / Downloads: 28)
11-18-2015 18:08 PM
rORUMI
Expired VIP Member
Posts: 278
Joined: May 2014
Reputation: 50
Version:
1.4.2.142
RE: help pls time code
Lucas, try to read a bit about lua and some examples about run/include files for script.
This is my iss start Code, you can see how I start loading scrips from another scripts.
LUA Programming
-- 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( ) ;
--------------------------------------------------
11-18-2015 19:17 PM