will anyone tell me how to use the "or" command for npc?
I need to write a script that checks:
#IF
checknamelist [xxx\1.txt]
Goto @tele1
#IF
checknamelist [xxx\2.txt]
goto @tele2
because this solution does not work
#IF
checknamelist BattlePoints.txt
#ACT
goto @tele1
break
#IF
!checknamelist BattlePoints.txt
#ACT
goto @tele2
break
[@tele1]
#SAY
You got enought points to teleport on BattleGrounds!\
[@tele2]
#SAY
You need to kill more monsters to achieve the enough points to enter to the BattleGrounds!\
#IF
checknamelist BattleGrounds.txt
#ACT
goto @approval
#ELSEACT
goto @denial
[@approval]
#SAY
You can Enter.\
[@denial]
#SAY
You cant Enter! \
Remove the #elseact and add break, and this would be correct#IF
checknamelist [xxx\1.txt]
#ACT
Goto @tele1
#ELSEACT
#IF
checknamelist [xxx\2.txt]
#ACT
goto @tele2
#ELSEACT
yes I know that there must be a file with a nick in the envir folder.if i remember right you need the list to be on envir folder to use command checknamelist BattlePoints.txt
Code:#IF checknamelist BattlePoints.txt #ACT goto @tele1 break #IF !checknamelist BattlePoints.txt #ACT goto @tele2 break [@tele1] #SAY You got enought points to teleport on BattleGrounds!\ [@tele2] #SAY You need to kill more monsters to achieve the enough points to enter to the BattleGrounds!\
And to use ELSEACT you need to check the value if is true or not to the int.
Code:#IF checknamelist BattleGrounds.txt #ACT goto @approval #ELSEACT goto @denial [@approval] #SAY You can Enter.\ [@denial] #SAY You cant Enter! \
yes I know that there must be a file with a nick in the envir folder.
The point is I need to check 5 files and run the appropriate teleport
IF
checknamelist example.txt
#ACT
goto @Stage 1
#ELSEACT
break
[@Stage 1]
#IF
checknamelist example1.txt
#ACT
goto @Stage2
#ELSEACT
break
No need for gotos, you can put multiple statements in a rowthen do check ups to each stage
Code:IF checknamelist example.txt #ACT goto @Stage 1 #ELSEACT break [@Stage 1] #IF checknamelist example1.txt #ACT goto @Stage2 #ELSEACT break
will anyone tell me how to use the "or" command for npc?
I need to write a script that checks:
#IF
checknamelist [xxx\1.txt]
#ACT
Goto @tele1
break
#IF
checknamelist [xxx\2.txt]
#ACT
goto @tele2
break
because this solution does not work
Remove the #elseact and add break, and this would be correct
Sent from my SM-G930F using Tapatalk
Never knew that was a thingSorry guys, just have to throw this one in here... you can just use the OR command.
Code:#IF Equal A0 "Sting" Or Equal A0 "StingGM" Or Equal A0 "GMSting" #ACT Do something
With c# its pretty much an unused feature unless you have them as function calls which perform other operations.I don't know C# but why would it need to check further if it finds a matching item when using an OR command?
#IF
ISADMIN
Equal A0 "Sting"
Or Equal A1 "StingGM"
Or Equal A2 "GMSting"
#SAY
One of you is called Sting and you are carrying a Frog and a Spoon!
#IF
Equal A3 "Bob"
Or Equal A3 "Sting"
Equal A1 "A"
Or Equal A1 "B"
Equal A2 "B"
#SAY
Blah
Just tested, and you can have multiples in i.e.
Code:#IF Equal A3 "Bob" Or Equal A3 "Sting" Equal A1 "A" Or Equal A1 "B" Equal A2 "B" #SAY Blah
Equal A3 "Bob" Or Equal A3 "Sting"
Equal A1 "A" Or Equal A1 "B"
Equal A2 "B"