Yoko

All sides of Injection
It is currently 2026-01-16 16:46:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-05-14 12:28:39 
Offline

Joined: 2005-03-14 19:12:36
Posts: 3
Наваял я скрипт на обкладку по ласт статусу, но столкнулся с проблемой - когда сундуки флипяться на земля они меняют свой тип, эт очень неприятно соответственно незнаю что делать: ВОПРОСЫ:
как в
uo.findtype("0x09aa","0xffff","my") Прописать еше один тип для поиска, если этого зделать нельзя то как правильно пользоваться командами
IF THEN ELSE
Вот сам скрипт , несудите строго - я начинаюший.
Code:
sub Box() 
UO.Set('lasttarget','laststatus')
if uo.findcount(0) then
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")+1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
else
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")+1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
wait(500)
endif
if uo.findcount(0) then
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")+1),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")+1),str(uo.getz("lasttarget")),"finditem")
endif
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
if uo.findcount(0) then
uo.drop("1",str(uo.getx("lasttarget")-1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")-1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
endif
if uo.findcount(0) then
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")-1),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")-1),str(uo.getz("lasttarget")),"finditem")
endif
end sub


Top
   
 Post subject:
PostPosted: 2005-05-15 16:43:56 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Попробуй сделать массив. Незнаю, может поможет...
Code:
var i
DIM sunduk[2]
sunduk[1]='0x0e7d'
sunduk[2]='0x09aa'
for i=1 to 2


А на счёт If Then Else
If(если) *какое-то условие* then(то)
*какое-то действие*
else(в обратном случае)
*какое-то действие*
Endif(Конец)


Top
   
 Post subject:
PostPosted: 2005-05-15 23:51:56 
Offline

Joined: 2005-03-14 19:12:36
Posts: 3
К сожалению с масивом невышло.
Следуюший вопрос: как работать с командой
Code:
uo.findcount()

- мне нужно что бы если число найденных итемов больше 0 то выполнить действие - что то вроде
Code:
if "число найденых итемов" >  0 then

Как это прально написать?


Top
   
 Post subject:
PostPosted: 2005-05-16 00:02:38 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
If UO.Findcount() > 0 Then


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 5 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