summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 13:54:07 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 13:54:07 +0000
commit78d1611828b41723fd2b6b6677f49bac7e1a7d46 (patch)
tree40e7077f8faf44a05b43c05e85d14ed25508b220 /doc
parentead827e4d8fea7e29708236f88b850af37b048ec (diff)
downloadhercules-78d1611828b41723fd2b6b6677f49bac7e1a7d46.tar.gz
hercules-78d1611828b41723fd2b6b6677f49bac7e1a7d46.tar.bz2
hercules-78d1611828b41723fd2b6b6677f49bac7e1a7d46.tar.xz
hercules-78d1611828b41723fd2b6b6677f49bac7e1a7d46.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6373 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/Item Inputs and Menus.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/Item Inputs and Menus.txt b/doc/Item Inputs and Menus.txt
new file mode 100644
index 000000000..a715964a6
--- /dev/null
+++ b/doc/Item Inputs and Menus.txt
@@ -0,0 +1,25 @@
+============================================================================================================
+Item Menus and Inputs
+============================================================================================================
+
+How to implement -
+1. Create an NPC with the desired script as an event.
+2. Add 'doevent "npcname::eventname";' to your item script.
+
+Example:
+
+- script validation_sys -1,{
+OnValidate:
+ mes "Please type: I am validated.";
+ input @validate$;
+ next;
+ if(@validate$ == "I am validated"){
+ mes "You are validated";
+ }else{
+ mes "You are not";
+ }
+ close;
+}
+
+501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ doevent "validation_sys::OnValidate"; },{},{}
+