Yoko

All sides of Injection
It is currently 2025-12-22 06:21:57

All times are UTC+02:00




Post new topic  Reply to topic  [ 18 posts ] 
Author Message
PostPosted: 2006-04-16 13:45:55 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Вот есть функция:
Code:
Sub tim1() 
VAR AnimalCount=0,i=0,name=0,name2=0
Var MoveDelay=1000
Var MoveNumber=1   
Var Ep=3
var Stoplocation
uo.set("finddistance","3")
uo.ignorereset()
uo.exec('resend')
wait(200)

Uo.Exec("addtype Animals")
while Uo.Targeting()
wait(100)
wend
uo.findtype("Animals","-1","ground")
name=uo.getname("finditem")
;
dim Animals[100]
while not uo.dead()
AnimalCount=0
   for i=0 to 999
      wait(10)
      uo.findtype("0",'-1',"ground")
      if uo.findcount()>0 then
            if uo.getname("finditem")==name and uo.getname("finditem") <> 0 then
                  Animals[AnimalCount]=uo.getserial("finditem")
                  AnimalCount=AnimalCount+1
                  uo.ignore("finditem")
                  uo.print("OK!"+" "+Animals[AnimalCount-1])
               else
                  uo.ignore("finditem")
                  wait(10)
            end if
         else
            i=999
            uo.print("Complete at = "+str(AnimalCount))
      end if
   next
   uo.print("Search complete!! at "+str(AnimalCount)+" was found!!")
   UO.print("Reset ignored items...")
   uo.ignorereset()
   wait(1000)
;
   for i=0 to AnimalCount-1
      uo.addobject("Animal",Animals[i])
      repeat
      uo.Useskill("Peacemaking","Animal")
      wait(11000)
      until uo.injournal('cliloc# 0x03BC')or uo.injournal('cliloc# 0x03B7')
      taming()
      release()
   next
   wait(200)
wend
end sub

как добавить вот то, что я написал ниже(писал сам если, что то не так поправьте пожалуйсто):
Code:
DIM Animals[5]
Animals[0]="0x000"--- тут я вставлю типы разных животных.
Animals[1]="0x000"
Animals[2]="0x000"
Animals[3]="0x000"
Animals[4]="0x000"
for i=0 to 4


и что нужно убрать из выше написанного?
заранее спасики:)

_________________
-=^NOVA RunUO 2 Server^=-
www.nova-uo.com
сферовское ПВП
IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-16 20:44:42 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
uo.findtype("Animals[i]","-1","ground")


Top
   
 Post subject:
PostPosted: 2006-04-16 20:44:49 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
uo.findtype("Animals[i]","-1","ground") 


Top
   
 Post subject:
PostPosted: 2006-04-16 21:22:02 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
тобишь вот так:
Code:
Sub tim1() 
VAR AnimalCount=0,i=0,name=0,name2=0
Var MoveDelay=1000
Var MoveNumber=1   
Var Ep=3
var Stoplocation
uo.set("finddistance","3")
uo.ignorereset()
uo.exec('resend')
wait(200)
;
DIM Animals[5]
Animals[0]="0x000"
Animals[1]="0x000"
Animals[2]="0x000"
Animals[3]="0x000"
Animals[4]="0x000"
while not uo.dead()
AnimalCount=0
   for i=0 to 4
      wait(10)
      uo.findtype("Animals[i]","-1","ground")
      name=uo.getname("finditem")
      if uo.findcount()>0 then
            if uo.getname("finditem")==name and uo.getname("finditem") <> 0 then
                  Animals[AnimalCount]=uo.getserial("finditem")
                  AnimalCount=AnimalCount+1
                  uo.ignore("finditem")
                  uo.print("OK!"+" "+Animals[AnimalCount-1])
               else
                  uo.ignore("finditem")
                  wait(10)
            end if
         else
            i=4
            uo.print("Complete at = "+str(AnimalCount))
      end if
   next
   uo.print("Search complete!! at "+str(AnimalCount)+" was found!!")
   UO.print("Reset ignored items...")
   uo.ignorereset()
   wait(1000)
;
   for i=0 to 4
      uo.addobject("Animal",Animals[i])
      repeat
      uo.Useskill("Peacemaking","Animal")
      wait(11000)
      until uo.injournal('cliloc# 0x03BC')or uo.injournal('cliloc# 0x03B7')
      taming()
      release()
   next
   wait(200)
wend


Вот я подправил, это норм?

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Last edited by Toolmate on 2006-04-17 10:56:41, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2006-04-16 21:43:42 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Чаю не нальете?;)


Top
   
 Post subject:
PostPosted: 2006-04-17 07:06:11 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Grin:
Не понял намека:)

А вот тут
Code:
else 
            i=999 <----- а тут тоже надо изменить значение на 4 типа?
            uo.print("Complete at = "+str(AnimalCount))
      end if
   next
[/code]

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-17 10:20:56 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
намек простой ;) вы чайники%)


Top
   
 Post subject:
PostPosted: 2006-04-17 10:42:50 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Ну Вы эксперты учите чайников:)

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-17 10:44:22 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Grin wrote:
намек простой ;) вы чайники%)


Все мы чайники. Каждый в своем.


Top
   
 Post subject:
PostPosted: 2006-04-17 10:59:14 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Естествено;)
Вот ТЫ Эдред в чем чайник?;)


Top
   
 Post subject:
PostPosted: 2006-04-17 11:03:07 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Я там выше подправил немного. Нормуль?
Этот макр под ранку.

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-17 13:18:18 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Ну елки палки одни и теже ошибки 10 раз подряд... в уроках все описано и описано...
Почитай про смысл символа "...
и потом что значит нормально??? оно же не рабоатет... как это может быть нормально???


Top
   
 Post subject:
PostPosted: 2006-04-17 15:05:58 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
А куда эти уроки делись?

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-17 15:27:13 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Grin wrote:
Естествено;)
Вот ТЫ Эдред в чем чайник?;)


в хтмл, джаве, перле... Хотя насчет последнего, тут полез посмотреть синтаксис, в общем, халява. Легкий язык. Нескольких часов чтения будет достаточно. Вопрос только в одном, надо ли? :shock:


Top
   
 Post subject:
PostPosted: 2006-04-17 17:45:30 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
перл не сложен в понимании просто там есть пару об стракций... там гола в другом нужна... там есть понтие как контексты...есть регулярные выражения, есть еще куча всего... жто просто интересно и это надо;)


Top
   
 Post subject:
PostPosted: 2006-04-17 18:26:29 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Помогите пожалуйсто, уроки не могу найти.

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


Top
   
 Post subject:
PostPosted: 2006-04-17 19:34:51 
Offline

Joined: 2006-04-15 09:00:35
Posts: 93
Toolmate wrote:
Помогите пожалуйсто, уроки не могу найти.


http://forum.yoko.com.ua/viewtopic.php?t=3491 - 1
http://forum.yoko.com.ua/viewtopic.php?t=3597 - 2
http://forum.yoko.com.ua/viewtopic.php?t=4132 - 3
http://forum.yoko.com.ua/viewtopic.php?t=6887 - 4
http://forum.yoko.com.ua/viewtopic.php?t=4681 - 5


Top
   
 Post subject:
PostPosted: 2006-04-17 20:03:03 
Offline
User avatar

Joined: 2005-08-18 09:09:18
Posts: 104
Location: RUSSIA
Спасибо! будем изучать:)

_________________
-=^NOVA RunUO 2 Server^=-

www.nova-uo.com

сферовское ПВП

IRC Server: irc.netbynet.ru; канал: #nova


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

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