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

Post Reply 
 
Thread Rating:
  • 84 Vote(s) - 2.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create & run simple script.
Author Message
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #1
How to create & run simple script.

Creating script by your self...
  1. Create folder 'scripts' under L2Tower folder if not exists (Is that folder with L2Tower.dll).
  2. Create new file in 'scripts' folder. File have to be called anyname.lua (Note: don't use spaces or '_' char in file name)
  3. Put script code into that file (ANSI file type)
  4. In game do: //CFG -> Scripts -> And press '>' button on left of script what you want to run, or just write ingame .scriptStart anyname.lua

Creating script by using Script Recorder
  1. Create folder 'scripts' under L2Tower folder if not exists (Is that folder with L2Tower.dll).
  2. Write .recStart anyname
  3. Do any actions you need
  4. Write .recStop
  5. In game do: //CFG -> Scripts -> And press '>' button on left of script what you want to run, or just write ingame .scriptStart anyname.lua

Information about list of classes and functions in scripts you can find here:
http://forum.l2tower.eu/showthread.php?tid=170.

Sample scripts you can find here: http://forum.l2tower.eu/forumdisplay.php?fid=28

[Image: owner.gif]
(This post was last modified: 04-04-2011 12:07 PM by ClockMan.)
04-04-2011 12:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : Fox(+2)
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to create a test server multiboxingtoon 0 4,381 11-23-2018 08:25 AM
Last Post: multiboxingtoon



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