if pc . get_empire ( ) == 1 then 
say_title ( gameforge . patrol_townaround . _370_makequestbutton ) 
if is_test_server ( ) then 
local s = select ( gameforge . patrol_townaround . _380_select , gameforge . patrol_townaround . _385_select , gameforge . patrol_townaround . _390_select , gameforge . patrol_townaround . _395_select ) 
if 1 == s then 
setstate ( "patrol1_blue_step1" ) 
elseif 2 == s then 
setstate ( "patrol1_yellow_step1" ) 
elseif 3 == s then 
setstate ( "patrol1_gray_step1" ) 
elseif 4 == s then 
setstate ( "patrol1_purple_step1" ) 
end 
else 
local s = number ( 1 , 4 ) 
if 1 >= s then 
setstate ( "patrol1_blue_step1" ) 
elseif 2 >= s then 
setstate ( "patrol1_yellow_step1" ) 
elseif 3 >= s then 
setstate ( "patrol1_gray_step1" ) 
elseif 4 >= s then 
setstate ( "patrol1_purple_step1" ) 
end 
end 
elseif pc . get_empire ( ) == 2 then 
say_title ( gameforge . patrol_townaround . _400_makequestbutton ) 
if is_test_server ( ) then 
local s = select ( gameforge . patrol_townaround . _380_select , gameforge . patrol_townaround . _385_select , gameforge . patrol_townaround . _390_select , gameforge . patrol_townaround . _395_select ) 
if 1 == s then 
setstate ( "patrol2_blue_step1" ) 
elseif 2 == s then 
setstate ( "patrol2_yellow_step1" ) 
elseif 3 == s then 
setstate ( "patrol2_gray_step1" ) 
elseif 4 == s then 
setstate ( "patrol2_purple_step1" ) 
end 
else 
local s = number ( 1 , 4 ) 
if 1 >= s then 
setstate ( "patrol2_blue_step1" ) 
elseif 2 >= s then 
setstate ( "patrol2_yellow_step1" ) 
elseif 3 >= s then 
setstate ( "patrol2_gray_step1" ) 
elseif 4 >= s then 
setstate ( "patrol2_purple_step1" ) 
end 
end 
elseif pc . get_empire ( ) == 3 then 
say_title ( gameforge . patrol_townaround . _410_makequestbutton ) 
if is_test_server ( ) then 
local s = select ( gameforge . patrol_townaround . _380_select , gameforge . patrol_townaround . _385_select , gameforge . patrol_townaround . _390_select , gameforge . patrol_townaround . _395_select ) 
if 1 == s then 
setstate ( "patrol3_blue_step1" ) 
elseif 2 == s then 
setstate ( "patrol3_yellow_step1" ) 
elseif 3 == s then 
setstate ( "patrol3_gray_step1" ) 
elseif 4 == s then 
setstate ( "patrol3_purple_step1" ) 
end 
else 
local s = number ( 1 , 4 ) 
if 1 >= s then 
setstate ( "patrol3_blue_step1" ) 
elseif 2 >= s then 
setstate ( "patrol3_yellow_step1" ) 
elseif 3 >= s then 
setstate ( "patrol3_gray_step1" ) 
elseif 4 >= s then 
setstate ( "patrol3_purple_step1" ) 
end 
end 
end 
