L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help pls time code
Author Message
lucasdrag Offline
Goblin Grave Robber
*

Posts: 14
Joined: Aug 2013
Reputation: 0
Version: 1.4.3.143
Post: #1
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)
.lua  prueba numero 10.lua (Size: 1.73 KB / Downloads: 26)
11-18-2015 04:58 AM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #2
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
Find all posts by this user Quote this message in a reply
 Reputed by : Fox(+1)
lucasdrag Offline
Goblin Grave Robber
*

Posts: 14
Joined: Aug 2013
Reputation: 0
Version: 1.4.3.143
Post: #3
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)
.lua  pag.lua (Size: 1.84 KB / Downloads: 28)
11-18-2015 18:08 PM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #4
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
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #5
RE: help pls time code

try idk maked for wynn and not a lot of tested


.lua  harnakfarmauto.lua (Size: 6.2 KB / Downloads: 39)

PUSH [Image: knUu53] IF HELPED
(This post was last modified: 11-18-2015 23:13 PM by TheQQmaster.)
11-18-2015 22:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  L2 Speak npc Same time than Spawn fastkill22 0 1,755 01-26-2019 02:12 AM
Last Post: fastkill22
  time for dollars on acc scorpiox 0 1,705 11-20-2016 07:47 AM
Last Post: scorpiox
  Running some servers with L2t injected and innova the same time. testforl2 0 2,153 12-29-2015 14:56 PM
Last Post: testforl2
F.A.Q. L2Tower Stuck and work all time teris19942 0 2,533 12-15-2015 23:38 PM
Last Post: teris19942
  premium license activation time Louna 1 3,089 10-05-2015 18:58 PM
Last Post: Fox
  buff time use powercheats 1 3,036 04-20-2015 20:38 PM
Last Post: plixplox
  How many accounts are people running at the same time lawner01 1 2,165 12-20-2014 06:52 AM
Last Post: soul2eat
  Mark Of Lumi Healer One Time ronycontreras 6 4,145 11-07-2014 19:06 PM
Last Post: soul2eat
Question Help convert time to code itallog 4 3,388 10-27-2014 17:55 PM
Last Post: itallog
  Best performance with code in Plugin than Script? rORUMI 2 2,827 09-14-2014 02:24 AM
Last Post: rORUMI



User(s) browsing this thread: 1 Guest(s)