This giving error in the script, someone help me?
auto(1000)
if $wptsection == 'Surface'and not $trapped then
if $pattacker.id ~= 0 then
gotolabel('ExitToTown', 'ToTown')
setsetting('Targeting/Enabled', 'no')
elseif $wptsection == 'North' and not $trapped then
if $pattacker.id ~= 0 then
gotolabel('Start', 'LeaveNorth')
setsetting('Targeting/Enabled', 'no')
elseif $wptsection == 'West' and not $trapped then
if $pattacker.id ~= 0 then
gotolabel('Start', 'LeaveWest')
setsetting('Targeting/Enabled', 'no')
end
end