Yoko

All sides of Injection
It is currently 2024-04-18 09:15:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2012-04-17 21:53:48 
Offline
User avatar

Joined: 2007-05-23 19:51:18
Posts: 197
В моих пвп скриптах используется
Code:
MesReact



Code:
sub MesReact(input)
   var lasttime=uo.timer(),react=0
   var Msg1="You can't reach that."
   var Msg2='current state'
   uo.deletejournal()
   repeat
      wait(10)
      if uo.timer()==lasttime+10 then
         react=1
      endif
   until not uo.waiting() or react==1 or uo.injournal(Msg1) or uo.injournal(Msg2)
endsub

sub MesReact()
   var lasttime=uo.timer(),react=0
   var Msg1="You can't reach that."
   var Msg2='current state'
   uo.deletejournal()
   repeat
      wait(10)
      if uo.timer()==lasttime+5 then
         react=1
      endif
   until not uo.waiting() or react==1 or uo.injournal(Msg1) or uo.injournal(Msg2)
endsub


Примеры использования
Code:
sub wShldWep()  - простецкая одевалка оружия и хитера 
var sh='sh',wep='wep'
if uo.waiting() then
uo.canceltarget()
endif
uo.useobject(uo.getserial(sh))
wait(50)
uo.waittargetself()
uo.useobject(uo.getserial(wep))
MesReact()
if uo.waiting() then
uo.canceltarget()
endif
endsub


 .........................
   var Paralyze = "0x1f52" ;  - парализ со скроля
   if (uo.count(Paralyze)<1) then
      uo.print ("Paralyze Scrolls EMPTY!")
   end if
   if uo.mana<10 then
      uo.print ("Not enough Mana!")
   end if
   if uo.waiting() then
      uo.canceltarget()
   endif
   if uo.count(Paralyze)<>0 then
      uo.waittargetlast()
      uo.usetype(Paralyze)
      MesReact()
   else
      uo.print ("Casting Normal Paralyze")
      uo.waittargetlast()
      uo.cast('Paralyze')
      MesReact()
   endif
   uo.print("P Scrolls "+str(uo.count(Paralyze)))
endsub




Собственно вопрос , а НУЖНА ли она или от нее можно отказаться ?
как я понял она удаляет сообщения о том, что чар в парализе


Top
   
PostPosted: 2012-04-18 03:34:02 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
some wrote:
как я понял она удаляет сообщения о том, что чар в парализе

По-моему мнению, эта штуковина проверяет парализ на чаре, и очень может быть, что она выводит ракеты на орбиту или выполняет иные не менее сложные операции.
что-то вроде чеклага с таймаутом


Top
   
PostPosted: 2012-04-18 15:16:45 
Offline
User avatar

Joined: 2007-05-23 19:51:18
Posts: 197
Ну так она нужна или нет ? 8)


Top
   
PostPosted: 2012-04-18 22:12:07 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
можно и без чеклага и без реконектора играть. Просто они не мешают но ИНОГДА вытаскивают чару игру.

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


Top
   
PostPosted: 2012-04-19 07:26:44 
Offline
User avatar

Joined: 2007-05-23 19:51:18
Posts: 197
понял , оставляю , топик клоуз, всем спасибо :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 15 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