Yoko

All sides of Injection
It is currently 2024-03-28 14:26:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: HELP PLZ
PostPosted: 2012-04-24 07:26:03 
Offline

Joined: 2012-04-20 08:40:44
Posts: 5
Quote:
sub MyScript()

While UO.Mana > 0
If UO.Mana < 22 Then
Uo.useskill('Meditation')
wait(40000)
Else
Uo.useskill('Spirit Speak')
wait(5000)
If uo.injournal("you fail to communicate with the netherworld.") then
wait(5000)
Uo.useskill('Spirit Speak')
wait(2000)
repeat
If Uo.Injournal("You Contact The Netherworld") Then
UO.WaitTargetObject('self')
UO.Cast('Dispel')
wait(5000)
Uo.DeleteJournal()
If Uo.Injournal("You Are Already In Contact With The Netherworld") Then
UO.WaitTargetObject('self')
UO.Cast('Dispel')
wait(5000)
Uo.DeleteJournal()
repeat
Endif
Endif
Endif
Endif
Wend
endsub


its not going the way i want to :(
when i contact, it does not dispel...
keep looping on Uo.useskill spirit speak


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-24 09:53:49 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Several errors in cycles.
Use my signature for indenting.

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


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-24 19:57:23 
Offline

Joined: 2012-04-20 08:40:44
Posts: 5
how do i use, this codesweeper?


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-24 20:31:03 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
sub MyScript()
   While UO.Mana > 0
      If UO.Mana < 22 Then ; <---
         Uo.useskill('Meditation')
         wait(40000)
      Else
         Uo.useskill('Spirit Speak')
         wait(5000)
         If uo.injournal("you fail to communicate with the netherworld.") then
            wait(5000)
            Uo.useskill('Spirit Speak')
            wait(2000)
            repeat ; <---
               If Uo.Injournal("You Contact The Netherworld") Then
                  UO.WaitTargetObject('self')
                  UO.Cast('Dispel')
                  wait(5000)
                  Uo.DeleteJournal()
                  If Uo.Injournal("You Are Already In Contact With The Netherworld") Then
                     UO.WaitTargetObject('self')
                     UO.Cast('Dispel')
                     wait(5000)
                     Uo.DeleteJournal()
                     repeat ; <---
                     Endif
                  Endif
               Endif
            Endif
         Wend
      endsub


Almost all the cycles are written not correctly.


Indentation should match.
Code:
sub Magery()
   Var LastTimer, i
   DIM Fruits[4]
   Fruits[1]  = '0x09D0'
   Fruits[2]  = '0x171F'
   Fruits[3]  = '0x0994'
   Fruits[4]  = '0x0EED'
   WHILE NOT UO.Dead()
      UO.DeleteJournal()
      If UO.Mana<100 Then
         While UO.Mana<UO.Int
            UO.DeleteJournal()
            wait(100)
            Uo.WarMode('0')
            UO.Useskill('Meditation')
            If  UO.InJournal("must wait") Then
               Wait(500)
            End If
            Repeat
               wait(100)
            until UO.InJournal("You are|You lose|must wait")
         Wend
      Endif
      
      While  UO.Mana==UO.Int AND UO.GA>0 AND UO.GS>0 AND UO.MR>0
         UO.DeleteJournal()
         LastTimer=UO.Timer()
         UO.WaitTargetTile('400', STR( UO.GetX( 'self' )), STR( UO.GetY( 'self' )), STR( UO.GetZ( 'self' )))
         UO.Cast('Create Food')
         repeat
            wait(100)
         until UO.InJournal("fizzles") or UO.Mana<UO.Int or UO.Timer()>LastTimer+30
         For i=1 To 4
            UO.FindType( Fruits[i], -1, 'ground' )
            If UO.FindCount() > 0 Then
               uo.moveitem('finditem',-1,'0x401F21EF')
               Wait( 200 )
            Endif
         Next
      Wend
   WEND
end sub

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


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-26 07:33:00 
Offline

Joined: 2012-04-20 08:40:44
Posts: 5
:evil: :evil: :evil: :evil: NOT WORRKING HEEEEEEELP PLZ TELL ME WHAT TO DO ?
i dunno how to script i dont even know how i did that script LOL
plzzzzzzzzzzzzz :S


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-26 07:51:21 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
You have to learn this.

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


Top
   
 Post subject: Re: HELP PLZ
PostPosted: 2012-04-26 08:28:30 
Offline

Joined: 2012-04-20 08:40:44
Posts: 5
Ok, i`ll read it all, but russian, LOL, i`ll google translate it =P


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 13 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