english help plz

Ask for help

Moderators: Murderator+, Murderator

Post Reply
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

english help plz

Post by helpmeplz1 »

ok i need loot script. i will put my own type in were u need me to put it juss tell me. i ned it 2 loot 4 different types, it can loot at a good pace. sry for not knowin russian.

anyone can help plz do so. sry for no russian.
0x2006 thats the corspse type i want it to loot
someone help plz, i will put the type numbers in, juss tell me were to put um. i need 4 types looted.
Sanch
Posts: 308
Joined: 2005-07-17 15:30:52
Location: www.drw.ru

Post by Sanch »

Write 4 types what you want to loot. Your character will loot last corspse and only this 4 items. I will try to write this skript, but I can't promise anifing.
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

ok its these types, 0x143E,0x1406,0x1515,0x1BC3,0x204E, ok sry i need5 types, thx man, someone help plz thx, i juss need it to loot those types, it can loot slow or fast dont matter.
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Code: Select all

sub Loot() 
VAR i, n
VAR w = 500  ; the waiting time after moving an item
VAR razmer = 5
DIM Loot[5]
    Loot[1] = '0x143E' 
    Loot[2] = '0x1406' 
    Loot[3] = '0x1515' 
    Loot[4] = '0x1BC3'
    Loot[5] = '0x204E'     
 
  if uo.getdistance( 'lastcorpse' ) <4 then
    uo.deletejournal()
    repeat
      uo.findtype( '-1', '-1', 'lastcorpse' ) 
      n = 0
        for i = 1 to razmer
          if uo.getgraphic( 'finditem' ) == Loot[i] then
            uo.moveitem( 'finditem', 'all', 'my' )
            wait(w)
              if uo.injournal( 'UNSP' ) then
                wait(w*3)                 
              endif
            n = 1
            goto nextitem
           endif         
        next
          if n == 0 then
            uo.ignore( 'finditem' )
          endif
      nextitem:
    until uo.findcount() == 0
  else
    uo.print( 'The corpse is too far!' )
  endif 
endsub
Last edited by flake on 2006-04-03 14:44:48, edited 1 time in total.
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

it says variable undefined, not workin
Sanch
Posts: 308
Joined: 2005-07-17 15:30:52
Location: www.drw.ru

Post by Sanch »

sub Loot()
DIM Item[5]
Item[0] = '0x143E'
Item[1] = '0x1406'
Item[2] = '0x1515'
Item[3] = '0x1BC3'
Item[4] = '0x204E'
VAR i
UO.UseObject( 'lastcorpse' )
wait(1000)
For i = 0 To 4
UO.FindType( Item[i], '-1', 'lastcorpse' )
While UO.FindCount() > 0
UO.MoveItem( 'finditem' )
wait( 1000 )
UO.FindType( Item[i], '-1', Cont )
Wend
Next
UO.Print( 'The loot was finished' )
end sub

It must work, but I do not test it.

Do you know how set this skript on hotkey?
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

no sanch , can u plz tell me , thx alot bro
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

it sayiun variable undefined, line16
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Use mine, I've corrected it.
Sanch
Posts: 308
Joined: 2005-07-17 15:30:52
Location: www.drw.ru

Post by Sanch »

no sanch , can u plz tell me , thx alot bro


So what I can say, I am at work now. I will be at home at ten oclock pm of Moscow, I will correct and test script, write me to ICQ.

During this time you may try to use script writen by frake:

menu Hotkeys

write Command: exec Loot

write Hotkey: any you want

then press Add now hotkey, thet is all what you must to do fo using this script. Then set this hotkey in uo and if you do all correctly it will work.
Last edited by Sanch on 2006-04-03 16:07:38, edited 1 time in total.
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

ok juss give me ur icq n il add u . thx alot bro.
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

ur icq sanch?
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

well its been 2 days noiw and i still cant gett he scriptto work. someone plz help
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Have you tried mine?
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

Code: Select all

sub Lootin()
var t,l
t=500
dim LootingItem[49]
uo.Print('???????? ??????...')
### Magic Looting Items ###
DIM Loot[5]
LootingItem[1] = '0x143E'
LootingItem[2] = '0x1406'
LootingItem[3] = '0x1515'
LootingItem[4] = '0x1BC3'
LootingItem[5] = '0x204E'
uo.canceltarget()
uo.Print('?????? ?????????')
uo.addobject('lootcontainer')
while uo.targeting()
   wait(100)
wend
 
for l=1 to 48
uo.FindType(LootingItem[l],"-1",'lootcontainer')
if uo.FindCount()>0 and uo.GetDistance('lootcontainer')<=2 then
uo.Grab(1,"finditem")
uo.Print('?????? ???????: '+str(uo.findcount()))
wait(t)
end if
next
uo.Print('??? ????????.')
end sub


ok i put urs n flakes together n this wut i came wit that works, but im gettin an erro runtime line 21. anyidea wut it is? or how to fix, it works but i need the error to stop cuz it keeps spammin me. thx flake for ur help
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

flake?
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Just try what I've posted, don't mix anything up.
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

im gettin a error at line 21 flake.

Code: Select all

uo.FindType(LootingItem[l],"-1",'lootcontainer') 



any idea wut error this is? it says runtime error 21 and thats the line were the error is ?
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

You just don't try mine, do you... Well, ok, I'll correct you combination then:

Code: Select all

sub Lootin() 
var t,l
t=500
DIM LootingItem[5]
LootingItem[1] = '0x143E'
LootingItem[2] = '0x1406'
LootingItem[3] = '0x1515'
LootingItem[4] = '0x1BC3'
LootingItem[5] = '0x204E'
uo.canceltarget()
uo.addobject('lootcontainer')
while uo.targeting()
   wait(100)
wend
 
for l=1 to 5
  uo.FindType(LootingItem[l],"-1",'lootcontainer')
    if uo.FindCount()>0 and uo.GetDistance('lootcontainer')<=4 then
       uo.Grab(1,"finditem")       
       wait(t)
   end if
next
end sub
helpmeplz1
Posts: 15
Joined: 2006-04-03 10:52:48

Post by helpmeplz1 »

thx alot flake. works perfect dude. i really aprreciate it.
Post Reply