Well after looking at poor beginners, i feel to share some basic knowledge. Im not good at explaining things but i really feel bad for beginners.. so a beginner tutorial wud be nice for them. So heres it, i would like to post..
Creating Alias1] normal alias
alias vcmp.version !return v1.0
alias vcmp.<aliasname> !return <msg to return>
2] readini alias
alias vcmp.cash !return $iif($readini(vcmp.cash.ini,CASH,$vcmp.name($1)),$v1,0)
alias vcmp.<aliasname> !return $iif($readini(<filename>,<section-in-file>,$vcmp.name($1)),$v1,<else-to-return-if-readini=nothing>)
Commandson *:SIGNAL:vcmp.command:{
if ($2 == !test) {
vcmp.say Testing Completed
}
elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.cmdsay $2 %id Hello Everyone
}
elseif ($2 == !test2) {
vcmp.msg %id Test 2 completed
}
else vcmp.msg %id Invalid Command.
}
Now in the commands give above:
Chezor: !test
Testing CompletedChezor: !hello
Hello EveryoneChezor: !pmhello
pm >> Hello EveryoneChezor: !test2
pm >> Test 2 CompletedChezor: !blablabla
pm >> Invalid Command.
A fill in the blank for beginner
elseif ($2 == !<command>) {
vcmp.say <Type here what it will message when command is typed>
}
Some Info$1 ==
Server$2 ==
Command$3 == Word after command. Example: !command
word.
$4 == Word after word. Example: !command word
word2.
and so on
Working with INI
!writeini -n <filename> <SECTION> %name yes
for example !writeini -n vcmp.test.ini TEST %name yes
it will create file vcmp.test.ini
[TEST]
Chezor=yes
!remini -n <filename> <SECTION> %name
it will remove the name from file..
[TEST]
Extras>= Greater than or equal to
<= Less than or equal to
== Equal to
!= Does not equal to
< Less than
> Greater than