git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6373 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
af63e6c2cf
commit
adb7357fd2
25
doc/Item Inputs and Menus.txt
Normal file
25
doc/Item Inputs and Menus.txt
Normal file
@ -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"; },{},{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user