hercules/doc/sample/checkoption.txt
Haru 21fa0901dc Modernized syntax and fixed errors in the sample scripts
Signed-off-by: Haru <haru@dotalux.com>
2013-12-30 16:08:20 +01:00

19 lines
638 B
Text

//===== Hercules Script =======================================
//= Sample: Checkoption
//===== By: ==================================================
//= Hercules Dev Team
//===== Current Version: =====================================
//= 20131225
//===== Description: =========================================
//= Demonstrates the 'checkoption' command.
//============================================================
prontera,156,89,6 script test_checkoption 4_F_KAFRA1,{
mes "Please enter a value of type!";
input .@value;
if(checkoption(.@value) == 1)
mes "True!";
else if(checkoption(.@value) == 0)
mes "False!";
close;
}