-
Notifications
You must be signed in to change notification settings - Fork 0
/
eject.cmd
36 lines (29 loc) · 867 Bytes
/
eject.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
action goto ejectFromHouse when eval "$roomplayers" != ""
ejectLoop:
if (contains("$roomplayers", "Nideaya")) then {
put #script abort all except eject
put .reconnect
put show Nideaya to door
pause .2
put show Nideaya to door
pause 1
goto ejectLoop
}
ejectFromHouse:
eval names replacere("$roomplayers", "Also here: ", "")
eval names replacere("%names", "(,| and)", "|")
eval names replacere("%names", "\.", "")
var index 0
eval namesLength count("%names", "|")
ejectloop:
if ("%names(%index)" != "Inauri") then {
put show %names(%index) to door
pause .5
put show %names(%index) to door
pause .5
}
math index add 1
if (%index > %namesLength) then goto ejectdone
goto ejectloop
ejectdone:
exit