How do I do does not equal?
Here is my code,
Sub Crackitman (Timername, name, safe)
if Isempty(world.getvariable ("CODE")) then
world.setvariable "CODE", "000"
end if
Dim CODE, A, B, C, D, E, F
CODE = world.getvariable ("CODE")
If CODE < 10 then
B = 0
C = 0
end if
if CODE < 100 and CODE > 9 then
C = 0
end if
A = mid (CODE, 1, 1)
B = mid (CODE, 2, 1)
C = mid (CODE, 3, 1)
If D=
world.send "TURN 1 TO " & A
world.send "TURN 2 TO " & B
world.send "TURN 3 TO " & C
world.send "open safe"
D = mid (CODE, 1, 1)
E = mid (CODE, 2, 1)
F = mid (CODE, 3, 1)
C = C + 1
if C = 10 then
C = 0
B = B + 1
end if
if B = 10 then
B = 0
A = A + 1
end if
CODE = A & B & C
If CODE = 1000 Then
CODE = 000
end if
world.setvariable "CODE", CODE
End Sub
Or the partial of it
I figure if I take D E F as the values before then before I turn the safe door I do
If D DNE(does not equal) A than cahnge dial
If it does skip the step
If E DNE B Then change the dial
Else Skip the Step
If F DNE C then change the dial
Else Skip the Step
No since in changing the dial to 1 if it's already at one plus it would cut down on the amount of spam I send to the mud
Here is my code,
Sub Crackitman (Timername, name, safe)
if Isempty(world.getvariable ("CODE")) then
world.setvariable "CODE", "000"
end if
Dim CODE, A, B, C, D, E, F
CODE = world.getvariable ("CODE")
If CODE < 10 then
B = 0
C = 0
end if
if CODE < 100 and CODE > 9 then
C = 0
end if
A = mid (CODE, 1, 1)
B = mid (CODE, 2, 1)
C = mid (CODE, 3, 1)
If D=
world.send "TURN 1 TO " & A
world.send "TURN 2 TO " & B
world.send "TURN 3 TO " & C
world.send "open safe"
D = mid (CODE, 1, 1)
E = mid (CODE, 2, 1)
F = mid (CODE, 3, 1)
C = C + 1
if C = 10 then
C = 0
B = B + 1
end if
if B = 10 then
B = 0
A = A + 1
end if
CODE = A & B & C
If CODE = 1000 Then
CODE = 000
end if
world.setvariable "CODE", CODE
End Sub
Or the partial of it
I figure if I take D E F as the values before then before I turn the safe door I do
If D DNE(does not equal) A than cahnge dial
If it does skip the step
If E DNE B Then change the dial
Else Skip the Step
If F DNE C then change the dial
Else Skip the Step
No since in changing the dial to 1 if it's already at one plus it would cut down on the amount of spam I send to the mud