Code: Select all
automacro setwarpnew {
console /Map Change:/
call warpsetnew
}
macro warpsetnew {
if (@arg("$.lastLogMsg",1) =! Map) goto end
if (@arg("$.lastLogMsg",2) =! Change:) goto end
$previousmap = @arg("@config(teleportAuto_useChatCommand)",1)
$map = @warp @arg("$.lastLogMsg",3)
if ($previousmap == $map) goto end
do conf teleportAuto_useChatCommand $map
goto end
:end
}
if someone could optimize this macro for me it would be great /ok