diff options
author | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-19 00:09:56 +0000 |
---|---|---|
committer | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-19 00:09:56 +0000 |
commit | 6a3dd115ac3d67fcf09646a829acbfa7768e2fa5 (patch) | |
tree | 3267bc22dde60572ce41ddc26e2174de33a8049f /readme/scripting.html | |
parent | f1a6d574ac8217f9fcdf6efc92e71ee1b451310d (diff) | |
download | hercules-6a3dd115ac3d67fcf09646a829acbfa7768e2fa5.tar.gz hercules-6a3dd115ac3d67fcf09646a829acbfa7768e2fa5.tar.bz2 hercules-6a3dd115ac3d67fcf09646a829acbfa7768e2fa5.tar.xz hercules-6a3dd115ac3d67fcf09646a829acbfa7768e2fa5.zip |
- Fixed typo on rogue_skills.txt (bugreport:4768)
- Fixed issue on icecream.txt (bugreport:4752)
- Added missing prize on comodo_gambling.txt (bugreport:4748)
- Rescripted the iRO event scripts.
- Updated the Read Me.
- Added 2009 Novice Training Grounds.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14711 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'readme/scripting.html')
-rw-r--r-- | readme/scripting.html | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/readme/scripting.html b/readme/scripting.html new file mode 100644 index 000000000..e01894e65 --- /dev/null +++ b/readme/scripting.html @@ -0,0 +1,69 @@ +<html>
+ <head>
+ <title>eAthena | Scripting</title>
+ <link rel="stylesheet" type="text/css" href="style.css">
+ </head>
+<body>
+ <div id="template">
+ <div id="header">
+ <div class="logo">eAthena<br /><span class="subtitle">- RAGNAROK Online Server Emulator</span></div>
+ <div class="title">Scripting</div>
+ </div>
+ <div id="navcontainer">
+ <ul id="navlist">
+ <li><a href="../readme.html">Intro</a></li>
+ <li><a href="setup.html">Setup</a></li>
+ <li><a href="faq.html">FAQ</a></li>
+ <li><a href="scripting.html">Scripting</a></li>
+ <li><a href="commands.html">GM Commands</a></li>
+ <li><a href="resources.html">Resources</a></li>
+ </ul>
+ </div>
+
+ <div class="body-container">
+ <p>
+ How to create an NPC using eAthena's scripting:<br /><br />
+ <font color="#0000FF">map_name</font>,<font color="#009900">x_cord</font>,<font color="#0CF305">y_cord</font>,<font color="#FF0000">npc_facing_direction</font> <strong>-TAB-</strong> script <strong>-TAB-</strong> <font color="#FF6600">NPC Name</font>#<font color="#FFCC00">HiddenName</font> <strong>-TAB-</strong> <font color="#CC3399">Sprite ID</font>,{<br />
+ mes "[NPC Name]";<br>
+ mes "Hello World";<br>
+ close;<br>
+ }
+ </p>
+ <p>
+ <strong>Common Script Commands:</strong>
+ <ul>
+ <li><strong>mes</strong><br>
+ usage: mes "<message>";<br>
+ info: displays a line of text in an NPC's dialog window.</li>
+ <li><strong>close</strong><br>
+ usage: close;<br>
+ info: displays a "Close" button in an NPC's dialog window.
+ </li>
+ <li><strong>next</strong><br>
+ usage: next;<br>
+ info: displays a "Next" button in an NPC's dialog window.</li>
+ <li><strong>getitem</strong><br>
+ usage: getitem <item id>,<amount>;<br>
+ info: gives the player an item.
+ </li>
+ <li><strong>delitem</strong><br>
+ usage: delitem <item id>,<amount>;<br>
+ info: deletes an item from the player.
+ </li>
+ </ul>
+ <p><strong>Script Command Documentation:</strong><br>
+
+ All the script commands in eAthena can be found <a href="../doc/script_commands.txt" target="_new">here</a>.</p>
+ <p><strong>How to enable your NPC:</strong><br>
+ 1. Save it as a text file in your /npc/custom/ folder.<br>
+ 2. Open /npc/scripts_custom.conf<br>
+ 3. Add the following line:<br>
+ <em>npc: npc/custom/name_of_your_text_file.txt</em><br>
+ 4. Save and close.</p>
+ </p>
+ </div>
+
+ <div id="footer">"Read Me" Created & Designed by <a href="http://www.kisuka.com" target="_new">Kisuka</a></div>
+ </div>
+ </body>
+</html>
\ No newline at end of file |