Yoko

All sides of Injection
It is currently 2025-10-15 09:03:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 25 posts ]  Go to page Previous 1 2
Author Message
 Post subject:
PostPosted: 2005-07-15 18:41:45 
Offline

Joined: 2005-07-12 06:52:02
Posts: 8
У меня таж фигня что и у майка ну не берет он и все...

И трак итем тоже стоит в Main!
Найти находит и все...


Top
   
 Post subject:
PostPosted: 2005-08-26 14:07:05 
Offline
User avatar

Joined: 2005-08-13 05:35:29
Posts: 32
Location: Almaty
BETEPAH wrote:
Тож Самое тока наоборот ...если обставили бомбами и их надо срочно собрать.

Code:
#   Potions Types & Color  -=#=-                     -=#=-
Var ExplosionPotionType      =     "0x0F0E"            # Explosion Potion Type.
Var ExplosionPotionColor     =     "0x0009"            # Explosion Potion Color.

sub NoBomb()
VAR Exit
Exit=0
UO.Set("finddistance","3")
repeat
UO.FindType(ExplosionPotionType,ExplosionPotionColor,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(800)
Else
Exit=1
endif
until Exit==1
end sub


тут стоит UO.grab('0','finditem') вот он и пытаеться поднять 0 вещей :lol:


Top
   
 Post subject:
PostPosted: 2005-09-06 11:33:15 
Offline

Joined: 2005-08-12 03:04:00
Posts: 125
А если система бомбометания такая: сеначала бомбочка активируется двойным кликом в паке, появляется прицел куда кидать, отсчитывает 3-2-1 и взрывается? Собсно проблема возникла в том, как сделать задержку в 2 секунды между активацией и броском(прицеливанием).

_________________
I NEED HELP at viewtopic.php?t=4903


Top
   
 Post subject:
PostPosted: 2005-09-15 14:06:39 
Offline

Joined: 2005-06-12 14:49:58
Posts: 35
I'm wrote:
Раньше тоже использовал 2 в 1 и минера и подрывника но потом перешел на другую систему:
Code:
#   Potions Types & Color  -=#=-                     -=#=-
Var ExplosionPotionType      =     "0x0F0E"            # Explosion Potion Type.
Var ExplosionPotionColor     =     "0x0009"            # Explosion Potion Color.

Code:
################## 
sub MineEnemy() ##################################################################################
##################
# Кидает 5 экспложенсов под ноги противника.
#
For var Ex=1 to 5
  UO.FindType(ExplosionPotionType,ExplosionPotionColor,'backpack')
  UO.Drop(1, STR(UO.GetX(Target)), STR(UO.GetY(Target)), STR(UO.GetZ(Target)), "finditem")
    CheckLag()
    Next
    UO.Print("Done.")
end sub

#################
sub MineSelf() ###################################################################################
#################
# Кидает 5 экспложенсов под ноги своего чара (Прячет их Гадина).
#
For var Ex=1 to 5
  UO.FindType(ExplosionPotionType,ExplosionPotionColor,'backpack')
  UO.Drop(1, STR(UO.GetX('self')), STR(UO.GetY('self')), STR(UO.GetZ('self')-3), "finditem")
    CheckLag()
    Next
    UO.Print("Done.")
end sub

###############
sub BlowUp() #####################################################################################
###############
# Взрывает экспложенсы лежащие на земле.
#
UO.Set("finddistance","20")
UO.FindType(ExplosionPotionType,ExplosionPotionColor,'ground')
UO.WaitTargetObject("finditem")
UO.Cast("Magic Arrow")
UO.Print("Run")
end sub

####################
sub ExplodeSelf() ################################################################################
####################
# Чар кидает стрелку в экспложенс в бекпаке.
#
UO.FindType(ExplosionPotionType,ExplosionPotionColor,'backpack')
If UO.FindCount()>0 then
   UO.WaitTargetObject("finditem")
   UO.Cast("Magic Arrow")
   UO.Print("Done")
End If
end sub


Везде выдает шибку "TARGET"


Top
   
 Post subject:
PostPosted: 2005-09-15 16:39:26 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
rebenok wrote:
Везде выдает шибку "TARGET"


Вот тут надо поменять:

Code:
################## 
sub MineEnemy() ##################################################################################
##################
# Кидает 5 экспложенсов под ноги противника.
#
For var Ex=1 to 5
  UO.FindType(ExplosionPotionType,ExplosionPotionColor,'backpack')
  UO.Drop(1, STR(UO.GetX('lasttarget')), STR(UO.GetY('lasttarget')), STR(UO.GetZ('lasttarget')), "finditem")
    CheckLag()
    Next
    UO.Print("Done.")
end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 25 posts ]  Go to page Previous 1 2

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 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:  
Powered by phpBB® Forum Software © phpBB Limited