From e29d0c257f7e762dcd81994ca987768d54ddb14d Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 19 Feb 2011 03:25:29 +0000 Subject: - Set svn:mime-type properties on readme files so they can be browsed directly from the SVN. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14712 54d463be-8e91-2dee-dedb-b68131a5f0ec --- readme/scripting.html | 136 +++++++++++++++++++++++++------------------------- 1 file changed, 68 insertions(+), 68 deletions(-) (limited to 'readme/scripting.html') diff --git a/readme/scripting.html b/readme/scripting.html index e01894e65..af68e58ce 100644 --- a/readme/scripting.html +++ b/readme/scripting.html @@ -1,69 +1,69 @@ - - - eAthena | Scripting - - - -
- - - -
-

- How to create an NPC using eAthena's scripting:

- map_name,x_cord,y_cord,npc_facing_direction -TAB- script -TAB- NPC Name#HiddenName -TAB- Sprite ID,{
-    mes "[NPC Name]";
-    mes "Hello World";
-    close;
- } -

-

- Common Script Commands: -

    -
  • mes
    - usage: mes "<message>";
    - info: displays a line of text in an NPC's dialog window.
  • -
  • close
    - usage: close;
    - info: displays a "Close" button in an NPC's dialog window. -
  • -
  • next
    - usage: next;
    - info: displays a "Next" button in an NPC's dialog window.
  • -
  • getitem
    - usage: getitem <item id>,<amount>;
    - info: gives the player an item. -
  • -
  • delitem
    - usage: delitem <item id>,<amount>;
    - info: deletes an item from the player. -
  • -
-

Script Command Documentation:
- - All the script commands in eAthena can be found here.

-

How to enable your NPC:
- 1. Save it as a text file in your /npc/custom/ folder.
- 2. Open /npc/scripts_custom.conf
- 3. Add the following line:
- npc: npc/custom/name_of_your_text_file.txt
- 4. Save and close.

-

-
- - -
- + + + eAthena | Scripting + + + +
+ + + +
+

+ How to create an NPC using eAthena's scripting:

+ map_name,x_cord,y_cord,npc_facing_direction -TAB- script -TAB- NPC Name#HiddenName -TAB- Sprite ID,{
+    mes "[NPC Name]";
+    mes "Hello World";
+    close;
+ } +

+

+ Common Script Commands: +

    +
  • mes
    + usage: mes "<message>";
    + info: displays a line of text in an NPC's dialog window.
  • +
  • close
    + usage: close;
    + info: displays a "Close" button in an NPC's dialog window. +
  • +
  • next
    + usage: next;
    + info: displays a "Next" button in an NPC's dialog window.
  • +
  • getitem
    + usage: getitem <item id>,<amount>;
    + info: gives the player an item. +
  • +
  • delitem
    + usage: delitem <item id>,<amount>;
    + info: deletes an item from the player. +
  • +
+

Script Command Documentation:
+ + All the script commands in eAthena can be found here.

+

How to enable your NPC:
+ 1. Save it as a text file in your /npc/custom/ folder.
+ 2. Open /npc/scripts_custom.conf
+ 3. Add the following line:
+ npc: npc/custom/name_of_your_text_file.txt
+ 4. Save and close.

+

+
+ + +
+ \ No newline at end of file -- cgit v1.2.3-70-g09d2