Yoko

All sides of Injection
It is currently 2025-12-27 03:40:49

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2006-12-23 16:29:44 
Offline

Joined: 2006-12-05 00:12:33
Posts: 4
За основу взял на форуме найденй скрипт на одиванея оружея и переделал под одиванея щита.

Code:
sub poisk()
uo.print('Script proveraet chto nahodetsja v levoj ruke i esli pusto - odevaet shield iz bp')
uo.print('(c)erka')

Dim shield[8]
shield[0] = '0x1B72'
shield[1] = '0x1B73'
shield[2] = '0x1BC3'
shield[3] = '0x1B76'
shield[4] = '0x1B74'
shield[5] = '0x1B7B'
shield[6] = '0x1BC4'
shield[7] = '0x1B79'
shield[8] = '0x1B7A'

var i, tshield, fshield = 0

for i = 0 to 8
if fshield == 1 then
wait(10)
endif
if fshield == 0 then
uo.findtype( shield[i] )
if uo.findcount() then
tshield = uo.getserial( 'finditem' )
Armshield( tshield )
endif
endsub

sub Armshield( Shield )
If uo.getgraphic( uo.objatlayer( 'Lhand' ) ) == Shield then
return
else
uo.equipt( 'Lhand', Shield )
repeat
wait(100)
until uo.getgraphic( uo.objatlayer( 'Lhand' ) ) == Shield
endif
endsub


Ошибка - Invalid number of arguments - armshield


Top
   
 Post subject:
PostPosted: 2006-12-23 17:01:38 
Offline
User avatar

Joined: 2006-11-27 21:01:56
Posts: 21
Потому что у тя их в массиве не 8 а 9!!!

_________________
ДРВ - Кульный шард!!!


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

All times are UTC+02:00


Who is online

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