Магия со спиритом

Ask for help

Moderators: Murderator+, Murderator

Post Reply
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Магия со спиритом

Post by DeviL [WoF] »

подскажите возможно ли в скрипт тинкер локпиков вписать циклично скрипт например спирит спика или эвалюты????
ЗЫ-играю на DRW
Last edited by DeviL [WoF] on 2009-04-03 00:16:24, edited 1 time in total.
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

Взято из скриптв Асканели:

Где-нить в начале скрипт пишешь:

Code: Select all

var LastTimer=UO.Timer() 
Потом в скрипт вставляешь:

Code: Select all

   if UO.Timer()>(LastTimer+3000) then 
      if uo.skillval("Spirit Speak",1)<1000 then 
         uo.print("Spirit Speak...") 
         p=0 
         repeat 
            p=p+1 
            uo.useskill ("Spirit Speak") 
            uo.deletejournal() 
            repeat 
               wait(10) 
            until UO.InJournal("netherworld") or UO.InJournal("You must wait to perform another action") or uo.dead() 
         until (UO.InJournal("You establish a connection to the netherworld.")) or (p>=10) or uo.dead() 
      end if 
      uo.usetype('0x097B') 
      wait(1000) 
      LastTimer=UO.Timer() 
   end if 
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Post by DeviL [WoF] »

спс Лео!
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Post by DeviL [WoF] »

еше раз попрошу помоши.....плз....
я тут чето нарисовал чтоб с магери спирит качался но чет непашет(
глянь плз че не так

Code: Select all

sub PoisonSelf() 
var LastTimer=UO.Timer()
while uo.mana >= uo.INT 
Uo.Exec("cast 'Poison' self") 
wait(2500) 
wend 

while uo.mana < UO.INT 
Uo.Exec("useskill Meditation") 
wait(500) 
wend 
uo.exec("exec PoisonSelf") 
  if UO.Timer()>(LastTimer+3000) then 
      if uo.skillval("Spirit Speak",1)<1000 then 
         uo.print("Spirit Speak...") 
         p=0 
         repeat 
            p=p+1 
            uo.useskill ("Spirit Speak") 
            uo.deletejournal() 
            repeat 
               wait(10) 
            until UO.InJournal("netherworld") or UO.InJournal("You must wait to perform another action") or uo.dead() 
         until (UO.InJournal("You establish a connection to the netherworld.")) or (p>=10) or uo.dead() 
      end if 
      uo.usetype('0x097B') 
      wait(1000) 
      LastTimer=UO.Timer() 
   end if
endsub
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

Лучше так

Code: Select all

sub PoisonSelf() 
var LastTimer=UO.Timer() 
while uo.mana >= uo.INT 
Uo.Exec("cast 'Poison' self") 
wait(2500) 
  if UO.Timer()>(LastTimer+3000) then 
      if uo.skillval("Spirit Speak",1)<1000 then 
         uo.print("Spirit Speak...") 
         p=0 
         repeat 
            p=p+1 
            uo.useskill ("Spirit Speak") 
            uo.deletejournal() 
            repeat 
               wait(10) 
            until UO.InJournal("netherworld") or UO.InJournal("You must wait to perform another action") or uo.dead() 
         until (UO.InJournal("You establish a connection to the netherworld.")) or (p>=10) or uo.dead() 
      end if 
      uo.usetype('0x097B') 
      wait(1000) 
      LastTimer=UO.Timer() 
   end if 
wend 

while uo.mana < UO.INT 
Uo.Exec("useskill Meditation") 
wait(500) 
wend 
uo.exec("exec PoisonSelf") 
endsub
[url=http://drw.ru/][img]http://userbars.ru/data/media/14/drw_proud.gif[/img][/url]
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Post by DeviL [WoF] »

в нем чето ругаеться на 11 строку - Variable undefined - P =(
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

:oops:
В начале напиши var p
[url=http://drw.ru/][img]http://userbars.ru/data/media/14/drw_proud.gif[/img][/url]
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Post by DeviL [WoF] »

да,кастует и медитит...но почемуто не спирит спичит*((пишит ю маст ваит ту перформ эназе экшн(
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

Значит не успевает, поставь задержку после каста побольше.
[url=http://drw.ru/][img]http://userbars.ru/data/media/14/drw_proud.gif[/img][/url]
DeviL [WoF]
Posts: 8
Joined: 2005-08-13 06:09:28

Post by DeviL [WoF] »

чет у мнгу ниче не получается :? :( :cry:
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

Code: Select all

sub PoisonSelf()
Var LastTimer=UO.Timer() 
while UO.Mana >= UO.INT 
UO.Cast('Poison','self') 
wait(2500) 
wend 
   if UO.Timer()>(LastTimer+3000) then 
         p=0 
         repeat 
            p=p+1 
            uo.useskill ("Spirit Speak") 
            uo.deletejournal() 
            repeat 
               wait(10) 
            until UO.InJournal("netherworld") or UO.InJournal("You must wait to perform another action") or uo.dead() 
         until (UO.InJournal("You establish a connection to the netherworld.")) or (p>=10) or uo.dead() 
      LastTimer=UO.Timer() 
   end if 
UO.UseSkill('Meditation') 
repeat 
wait(500) 
until UO.Mana >= UO.INT 
UO.Exec("exec PoisonSelf") 
endsub
[url=http://drw.ru/][img]http://userbars.ru/data/media/14/drw_proud.gif[/img][/url]
Orbi
Posts: 7
Joined: 2005-10-07 17:34:36

Post by Orbi »

а как сделать чтобы после неудачной попытки медитировать он начинал ещё раз медитировать, а спиприт спик не в какую не хочет работатть, сервак тоже ДРВ
Post Reply