Yoko

All sides of Injection
It is currently 2024-03-29 13:14:47

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2012-03-13 19:08:50 
Offline

Joined: 2011-08-28 12:23:12
Posts: 15
Нужен скрип на простой крест из двух стен но ток со скролов все что смог найти не рабочие . Заранее спасибо за помощь .


Top
   
PostPosted: 2012-03-13 19:29:25 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
простой скрипт на кресты = 2-м простым скриптам на стенки. Они тут есть.
На кресты ни одного работающего скрипта не видел никогда :mrgreen:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-03-14 12:09:22 
Offline

Joined: 2011-08-28 12:23:12
Posts: 15
ну вообщем я и имел виду твой вариант ток я так и не нашел со скров .
Нашел что то похожее но не рабочие , пробовал заменить uo.cast на свою функцию каста стен со свитка(функция просто вызывает таргет свитка ежели нет свитков то просто с книги) так он у меня ток таргет показывает и все как исправить хз или мож есть какой другой вариант ?
sub st()
####################
#автор:CONDOMchick #
####################

uo.deletejournal()
VAR x1,x2,y1,y2,sx,sy,limit

x1=0
x2=0
y1=0
y2=0

uo.Set('finddistance','8')
na:
uo.findtype('0x0080',-1,'ground')
if uo.findcount()>0 then
sx=str(uo.getx('finditem'))
sy=str(uo.gety('finditem'))
if x1==1 and x2==1 or y1==1 and y2==1 then
GOTO pox
endif
if sx==str(uo.getx('laststatus')+1) and sy==str(uo.gety('laststatus')) then
x1=1
endif

if sx==str(uo.getx('laststatus')-1) and sy==str(uo.gety('laststatus')) then
x2=1
endif

if sx==str(uo.getx('laststatus')) and sy==str(uo.gety('laststatus')+1) then
y1=1
endif

if sx==str(uo.getx('laststatus')) and sy==str(uo.gety('laststatus')-1) then
y2=1
endif

uo.ignore('finditem')
GoTo na
endif

pox:
uo.ignorereset()

uo.print(str(x1)+str(x2)+str(y1) + str(y2))
if x1==0 and x2==0 and y1==0 and y2==0 then

uo.waittargettile("400",str(uo.getx('laststatus')),str(uo.gety('laststatus')),str(uo.getz('laststatus')))
uo.cast("Wall of Stone")
endif
if y1==1 and y2==1 then

if str(uo.getx())>str(uo.getx('laststatus')) then
uo.waittargettile("400",str(uo.getx('laststatus')+1),str(uo.gety('laststatus')),str(uo.getz('laststatus')))
uo.cast("Wall of Stone")
else
uo.waittargettile("400",str(uo.getx('laststatus')-1),str(uo.gety('laststatus')),str(uo.getz('laststatus')))
uo.cast("Wall of Stone")
endif
endif

if x1==1 and x2==1 then

if str(uo.gety())>str(uo.gety('laststatus')) then
uo.waittargettile("400",str(uo.getx('laststatus')),str(uo.gety('laststatus')+1),str(uo.getz('laststatus')))
uo.cast("Wall of Stone")
else
uo.waittargettile("400",str(uo.getx('laststatus')),str(uo.gety('laststatus')-1),str(uo.getz('laststatus')))
uo.cast("Wall of Stone")
endif
endif
limit=0
#or not uo.injournal('Target is not') or not uo.injournal('sufficient mana')
while not uo.injournal('In Sanct Ylem')
wait(100)
limit=limit+1
if limit==100 then
goto end
endif
wend
uo.msg(' ')
wait(50)
uo.msg(' ')
wait(50)
uo.msg(' ')
end:
end sub
скрипт работает 1 нажатие 1 стенка !


Top
   
PostPosted: 2012-03-14 13:19:08 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
1 нажатие 1 стенка значительно проще и не замутненее выглядит:

Code:
sub wsl()
uo.waittargettile("400",str(uo.getx("laststatus")),str(uo.gety("laststatus")),str(uo.getz("laststatus")))
uo.cast("Wall of Stone")
end sub

оттянул статус и кастуешь по нему.
вместо ластстатуса можно ласттаргет, ластатак задавать но надо тестить - я не ПВП игрок :roll:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-03-15 14:54:17 
Offline

Joined: 2011-08-28 12:23:12
Posts: 15
это конечно все хорошо но главная проблема научить его тож самое ток со скролов делать так то вроде рабочий скрипт


Top
   
PostPosted: 2012-03-15 15:48:18 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
не пробовал в поиске набрать каст со свитка? :mrgreen:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-03-16 10:53:48 
Offline

Joined: 2011-08-28 12:23:12
Posts: 15
мираж если хочешь помочь то по внимательней попробуй почить начало !!!


Top
   
PostPosted: 2012-03-16 10:54:35 
Offline

Joined: 2011-08-28 12:23:12
Posts: 15
[quote="Frenck"]ну вообщем я и имел виду твой вариант ток я так и не нашел со скров .
Нашел что то похожее но не рабочие , пробовал заменить uo.cast на свою функцию каста стен со свитка(функция просто вызывает таргет свитка ежели нет свитков то просто с книги) так он у меня ток таргет показывает и все как исправить хз или мож есть какой другой вариант ?


Top
   
PostPosted: 2012-03-16 13:26:22 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Ну давай тогда тестировать:

ПУНКТ 1:

В игре 2 чара - твой и противник.
Оттягиваешь у противника жизни и запускаешь каст.

Code:
sub wsl()
uo.waittargettile("400",str(uo.getx("laststatus")),str(uo.gety("laststatus")),str(uo.getz("laststatus")))
uo.cast("Wall of Stone")
end sub

ВОПРОС 1: Стенка встала?

ПУНКТ 2:
Оттягиваешь полоску жизни у противника и запускаешь
Code:
sub wsscr()
uo.waittargettile("400",str(uo.getx("laststatus")),str(uo.gety("laststatus")),str(uo.getz("laststatus")))
uo.Usetype('0x1F44') ; Wall of stone scroll
end sub

ВОПРОС 2: Стенка встала?

Если оба раза стена встала то будем дальше разбирать скрипт который ты выложил выше.
Если в каком то месте стенка не встала - значит у тебя на сервере стоит защита от таких вещей и скрипт не будет работать.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited