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,774
Joined: Jan 2011
Reputation: 323
Version: 1.4.2.132
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 websiteFind all posts by this user Quote this message in a reply
Post Reply 




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

This forum uses Lukasz Tkacz MyBB addons.