Посмотрите что в скрипте не так.

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Kukaracho
Posts: 7
Joined: 2007-04-27 00:13:06

Посмотрите что в скрипте не так.

Post by Kukaracho »

В линии где "тип инвизки" почему-то выдаёт prase error, что не так?

Code: Select all

sub recall(obj,n)
var t
var x=uo.getx('self')
var y=uo.gety('self')
uo.set('finddistance','2')
while uo.getx()==x and uo.gety()==y or uo.dead()
uo.cast('Recall',obj)
t=0
uo.deletejournal()
repeat
t=t+1
wait(200)
if n==1 then
uo.findtype('0x000E',-1,'ground') #golem
if uo.findcount() and uo.injournal('attacking you') or uo.gethp()
if golem==1 then
uo.findtype('0x0F09','0x0060',2) ; тип инвизки
if uo.findcount() then
uo.useobject('finditem')
uo.print('атака! пьем инвизку')
uo.setglobal('inviz',str(val(uo.getglobal('inviz'))+1))
uo.warmode(0)
uo.deletejournal()
wait(100)
else
uo.deletejournal()
wait(100)
end if
else
uo.print('атака! Внимение питье инвизок отключено!')
uo.deletejournal()
wait(100)
end if
end if
end if
until uo.getx()<>x and uo.gety()<>y or uo.injournal('spell|не удалось') or t==40 or uo.dead()
wend
end sub

Code: Select all

Перенес в Ore. Добавил теги. Автор в следующий раз сам их лепи :)
aka I'm
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post by Question_GimFlex »

uo.findtype('0x0F09','0x0060','backpack')

tak poprobui
Kukaracho
Posts: 7
Joined: 2007-04-27 00:13:06

Post by Kukaracho »

Неа, не пашет.
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

надоело уже.
DerMeister =)
Expert!
Posts: 1032
Joined: 2006-02-25 21:48:38

Post by DerMeister =) »

А меня транслит бесит!
DerMeister сейчас на нейрале!
u0rypT
Posts: 175
Joined: 2004-12-30 18:13:16
Location: Russia
Contact:

Post by u0rypT »

А почему перенесли в треш
?!
Design, webdev, coding, c#, php, asp.net, xml, perl, sql, ajax, drawing, illustrating, restoration, photo, photoshop, schedule, pron, guitar, lead-guitar, js, jsp, java, dom, html, *nix, struts, cs, etc
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

3Jlo6Hblu' u0ry®T wrote:А почему перенесли в треш
?!

такие у нас правила- что хотим то и делаем :roll:
Kukaracho
Posts: 7
Joined: 2007-04-27 00:13:06

Post by Kukaracho »

Так, а че в треш-то?
Ладн пох, пусть, но сказать то можно в чем проблема.
u0rypT
Posts: 175
Joined: 2004-12-30 18:13:16
Location: Russia
Contact:

Post by u0rypT »

Mr Nmy wrote:такие у нас правила- что хотим то и делаем :roll:

Я серьезно спросил, а что беспредел то ? мм, то что он в тег "код" не взял свой скрипт ? Почему сложно отредактировать его пост ? или перенести в нужную тему ? бред
Design, webdev, coding, c#, php, asp.net, xml, perl, sql, ajax, drawing, illustrating, restoration, photo, photoshop, schedule, pron, guitar, lead-guitar, js, jsp, java, dom, html, *nix, struts, cs, etc
I'm
Expert!
Posts: 1396
Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:

Post by I'm »

Не ребят так не пойдет.
Поправил.
The End.
u0rypT
Posts: 175
Joined: 2004-12-30 18:13:16
Location: Russia
Contact:

Post by u0rypT »

Глазами пробежался, увидел строчку

Code: Select all

uo.setglobal('inviz',str(val(uo.getglobal('inviz'))+1))

Пробежался вверх-вниз(вот так вот :roll: )
не видел

Code: Select all

var inviz

Советую попробывать

Code: Select all

var inviz ( 'тип,цвет_инвизки' )

Скорей всего из-за етого.
Design, webdev, coding, c#, php, asp.net, xml, perl, sql, ajax, drawing, illustrating, restoration, photo, photoshop, schedule, pron, guitar, lead-guitar, js, jsp, java, dom, html, *nix, struts, cs, etc
Post Reply