Yoko

All sides of Injection
It is currently 2025-10-17 03:44:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2009-06-08 23:29:33 
Offline
User avatar

Joined: 2008-11-03 21:51:26
Posts: 47
Location: Ekb
нужен скрипт чтоб дессанет кастовался автоматом
ну и если не трудно чтоб со скролов и регов (если нет скролов)
зарание спасибо :)

_________________
One World One Dream


Top
   
 Post subject:
PostPosted: 2009-06-08 23:47:25 
Offline

Joined: 2005-08-17 15:58:05
Posts: 45
Code:
sub dessanct()
var scroll=

uo.waittargetobject('laststatus')
uo.fintype(scroll)
if uo.findcount() then
uo.useobject('finditem')
else
uo.cast('Weaken')
end if
end sub


Top
   
 Post subject:
PostPosted: 2009-06-09 01:12:03 
Offline

Joined: 2008-02-08 18:38:55
Posts: 40
Code:
Sub AutoWeaken()
   if uo.getglobal('AutoWeaken')<>'on' then
      uo.setglobal('AutoWeaken','on')
      uo.print('Auto Weaken cast is on')
   else
      uo.setglobal('AutoWeaken','off')
      uo.print('Auto Weaken cast is off')
   end if
end sub

sub Weaken()
   var loop=1,scroll=TYPE
   while loop==2
      if uo.getglobal('AutoWeaken')=='on' then
         repeat
            uo.deletejournal()
            uo.waittargetobject('laststatus')
            uo.findtype(scroll)
            if uo.findcount() then
               uo.useobject('finditem')
            else
               uo.cast('Weaken')
            end if
            if uo.injournal('An anti-magic field disturbs the spells.') then
               uo.setglobal('Weaken','off')
               uo.print('Auto Weaken cast is off')
            end if
            Casted()
         until uo.getglobal('AutoWeaken')<>'on'
      end if
      wait(100)
   wend
end sub

sub Casted()
   var PrevMana=uo.mana,n
      if uo.getglobal('AutoWeaken')=='on' then
         repeat
            wait(100)
         until uo.mana<PrevMana or uo.injournal('The spell fizzles') or uo.injournal('Target is not in line of sight') or uo.injournal('You can`t see the target') or uo.getglobal('AutoWeaken')<>'on'
      end if
end sub


Top
   
 Post subject:
PostPosted: 2009-06-10 15:22:06 
Offline
User avatar

Joined: 2008-11-03 21:51:26
Posts: 47
Location: Ekb
Code:
sub gh()
VAR ManaNeed=11
VAR ManaNeedScroll=5
If UO.Life<UO.Str Then
UO.FindType('0x1F49',-1,'my')
If UO.FindCount()>0 Then
If UO.Mana>=ManaNeedScroll Then
UO.WaitTargetSelf()
UO.UseObject('finditem')
UO.Print("Greater Heal: "+STR(UO.Count("0x1F49")))
Else
UO.Print("Unsufficient mana")
Endif
Else
If UO.Mana>=ManaNeed Then
UO.Cast('Greater Heal','self')
UO.Print("SpellBook")
Else
UO.Print("Unsufficient mana")
Endif
Endif
Else
UO.Print("Your hit points is full")
Endif
end sub


этот скрипт написан не мной, но он качественный
хотелось бы чтоб был такой же не десанет и чтоб он автоматом перекаст делал
выше написанные скрипты не работают на шарде ):
Type=0x1F47 тайп скрола :)

_________________
One World One Dream


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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