Code: Select all
automacro antiwarp {
console /is casting (Warp Portal|Manhole) on/i
exclusive 1
delay 2
call {
$chatroomname = stop it pls
do chat create "$chatroomname" 2 0 siyete
pause 10
do bangbang
do chat leave
}
}
:end
}
}
return 0
}
Moderator: Moderators
Code: Select all
automacro antiwarp {
console /is casting (Warp Portal|Manhole) on/i
exclusive 1
delay 2
call {
$chatroomname = stop it pls
do chat create "$chatroomname" 2 0 siyete
pause 10
do bangbang
do chat leave
}
}
:end
}
}
return 0
}
Code: Select all
automacro antiwarp {
console /Player (.*) \(\d+\) is casting (Warp Portal|Manhole) on/i
exclusive 1
delay 2
call {
$chatroomname = $.lastMatch1 stop it pls
do chat create "$chatroomname" 2 0 siyete
pause 10
do bangbang
do chat leave
}
}
Yes this one works. This is what I really need. Thanks a lot for the very abrupt response.Mushroom wrote:You can extend the regex and gathers player's name with ()Code: Select all
automacro antiwarp { console /Player (.*) \(\d+\) is casting (Warp Portal|Manhole) on/i exclusive 1 delay 2 call { $chatroomname=%24%26%2346%3BlastMatch1 stop it pls do chat create "$chatroomname" 2 0 siyete pause 10 do bangbang do chat leave } }