Quote:
если не ошибаюсь конечно. Это ж получатся дискриминация женскокго пола. Всех убивают, а их нет. Исправь!
Феминизм маздай!!!
Code:
sub KillThemAll()
var a, x, y
uo.set('finddistance', '20')
uo.ignore('self', 'on')
uo.warmode('1')
DIM Char[2]
Char[0] = '0x0190'
Char[1] = '0x0191'
while not uo.dead()
for a = 0 to 1
uo.findtype(Char[a], '-1', '1')
if uo.findcount() > 0 then
uo.ignore('finditem', 'on')
uo.say('ВСЕХ УБЬЮ!!!')
uo.attack('finditem')
x = uo.getx('finditem')
y = uo.gety('finditem')
walk(x,y)
uo.deletejournal()
while not uo.injournal('Body of')
uo.say('Получай нуб по морде...')
wait(2000)
wend
else
uo.say('НУ КТО НА МЕНЯ, ЛОХИ....?')
wait(2000)
endif
next
wend
uo.warmode('0')
uo.say('За что суки????')
uo.ignorereset()
end sub
Вот те и ходилка:
Code:
sub walk(x,y)
var cx,cy,tmp,i=0, temp
x = -(uo.getx() - x)
y = -(uo.gety() - y)
cx = x
cy = y
if cx <= 0 then
cx = -cx
endif
if cy <= 0 then
cy = -cy
endif
tmp = str(cx+cy)
if val(tmp) then
DIM step[val(tmp)]
repeat
i=i+1
if x>0 && y>0 && x==y then
x=x-1
y=y-1
cx=x
cy=y
step[i]=2
endif
if x>0 && cx>cy then
x=x-1
cx=x
step[i]=3
endif
if x>0 && y<0 && cx==cy then
x=x-1
y=y+1
cx=x
cy=-y
step[i]=6
endif
if y<0 && cy>cx then
y=y+1
cy=-y
step[i]=9
endif
if x<0 && y<0 && x==y then
x=x+1
y=y+1
cx=-x
cy=-y
step[i]=8
endif
if x<0 && cx>cy then
x=x+1
cx=-x
step[i]=7
endif
if x<0 && y>0 && cx==cy then
x=x+1
y=y-1
cx=-x
cy=y
step[i]=4
endif
if y>0 && cy>cx then
y=y-1
cy=y
step[i]=1
endif
if x==-0 then
x=0
endif
if y==-0 then
y=0
endif
until cx==0 && cy==0
temp=i
tmp=''
for i=1 to temp
tmp=tmp+str(step[i])
next
uo.addstep(tmp)
endif
uo.resend()
endsub