Yoko

All sides of Injection
It is currently 2026-01-19 15:32:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2007-11-11 00:24:06 
Offline

Joined: 2007-11-11 00:16:50
Posts: 2
мне нужна ваша помощь... у меня естьскрипт,взятый с интернета... но я не могу разобратся в одном..

" Line 15 : Variable undefined - MENU " <- это моя проблема.. я не понимаю что там надо поменять.. если вставить туда " BlacksmithyIM " или " main ", то он запускает скрипт, но не выполняет действий :(
Вот сам скрипт! Если Вам не тяжело мне помочь.. то помогите! Я буду очень очень ооочень благодарен!


sub main()
sub BlacksmithyIM()

VAR Exit=0, LastTimer

var chest="0x415C8A87" ; object chest
var forge="0x19A2" ; type forge
var ingot="0x1BF2" ; type ingot
var wwmdo="0x13FE" ; type thing
#var menu ="Blacksmithing Weapons Weapons Swords Swords Katana"

while Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
uo.exec('waitmenu' + menu)
;UO.WaitMenu()
UO.UseType(0x1BF2) ;Инги айрона

while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(500)
wend

If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;Время создания дагера
EndIf

UO.FindType(0x13FE,-1,'0x415C8A87')
wait(500)

If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
wait(500)
UO.UseSkill('Arms Lore')
wait(2000)
UO.WaitTargetType('0x13FE')
wait(500)
UO.UseSkill('Item Identification')
wait(2000)

#UO.setcatchbag(0x415C8A87)
#wait(1000)
#UO.Grab('1','finditem')
#wait(1000)
#UO.unsetcatchbag()
uo.waittargettype(0x13FE)
uo.usefromground(0x19A2)



wait(1000)
Endif

UO.FindType('0x13FE',-1,'0x415C8A87')
If UO.GetQuantity('finditem')<400 then
UO.FindType(0x1BF2,'0x1BF2',0x415C8A87) ;Cундук с ингами
wait(1000)
UO.Grab('50','finditem')
Endif
wait(1000)
wend
end sub


Top
   
 Post subject:
PostPosted: 2007-11-11 04:04:51 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
В этом скрипте полно ошибок. Выбрось его и найди другой.


Top
   
 Post subject:
PostPosted: 2007-11-11 10:27:48 
Offline

Joined: 2007-11-11 00:16:50
Posts: 2
а у Тебя нету возможности написать скрипт типа этого,чтобы он плавил то что сдлелает,и заново брал инги из мешка?


Top
   
 Post subject:
PostPosted: 2007-11-11 11:21:23 
Offline
User avatar

Joined: 2007-10-12 20:48:07
Posts: 100
Поиском поищи тут, на этом форуме. Ищи на кование, наверняка найдешь.

_________________
Image
Image


Top
   
 Post subject:
PostPosted: 2007-11-11 13:44:04 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
uo.exec('waitmenu' + menu)


Надо определить переменную menu

Code:
#var menu ="Blacksmithing Weapons Weapons Swords Swords Katana"


а она у тебя закомментирована


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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