Yoko

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

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Iron droping
PostPosted: 2007-11-13 21:45:17 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
Hi, i wanted a script i will try to discribe you

1. For ores droping and smelting
2. it should pickup one ore from backpack and drop it under me
3. then i think i can use UO.usefromground
4. so thats all only one requipment that a script should be with a VAR (for easier configuration)

very thanks ;)


Top
   
 Post subject:
PostPosted: 2007-11-13 22:04:20 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
maybe something like this ?? maybe anyone can make it beter ? :)


sub drop()
pradz:
wait(30)
uo.findtype('0x19B9','-1','backpack')
if uo.findcount() then
uo.moveitem('finditem','1','ground')
wait(400)
uo.usefromground('0x19B7')
wait(200)
goto pradz
endsub


Top
   
 Post subject:
PostPosted: 2007-11-15 21:07:29 
Offline
User avatar

Joined: 2007-05-26 00:00:56
Posts: 173
Location: Украина, Ode$$a:[X-TEAM Group]
Code:
sub drop() 
var type  = '19b9'
var type2 = '19b7'

while not Uo.Dead()
  uo.findtype(type)
  if Uo.Findcount() > 0  then
     Uo.Drophere('finditem')
     wait(400)
     Uo.Usefromground(type2)
     wait(200)
wend
endsub

something like this ? =)

_________________
Image


Top
   
 Post subject:
PostPosted: 2007-11-17 08:36:19 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
yes aboslutly this :) thanks ;)


Top
   
 Post subject:
PostPosted: 2007-11-17 09:31:54 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
-=JoKeR=- wrote:
Code:
sub drop() 
var type  = '19b9'
var type2 = '19b7'

while not Uo.Dead()
  uo.findtype(type)
  if Uo.Findcount() > 0  then
     Uo.Drophere('finditem')
     wait(400)
     Uo.Usefromground(type2)
     wait(200)
wend
endsub

something like this ? =)


You have a mistake. COrrect this

Code:
sub 
  while
    if
  wend
end sub


You have to close if operator


Top
   
 Post subject:
PostPosted: 2007-11-17 09:58:19 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
there is a lot of mistakes ;) it drops 25 iron :D not 1 ;D


Top
   
 Post subject:
PostPosted: 2007-11-17 10:16:52 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Change

Code:
uo.Drophere 

to

Code:
uo.moveitem('finditem','1','ground')


Top
   
 Post subject:
PostPosted: 2007-11-17 10:25:54 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
Code:
sub metymas()
Dim Ruda[3]
Ruda[0] = '0x19B9' # then > 3
Ruda[1] = '0x19B8' # then = 3
Ruda[2] = '0x19BA' # then = 2
Ruda[3] = '0x19B7' # then = 1
Var i
for i = 0 to 3
   UO.FindType(Ruda[i],'-1','backpack')
   if uo.findcount() > 0 then
      uo.moveitem('finditem','1','ground')
      wait(400)
      UO.usefromground('0x19B7')
      wait(200)
wend
endsub


whats wrong here ? ;) i writed it by my self :)) i want something like this:)


Top
   
 Post subject:
PostPosted: 2007-11-17 10:53:41 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Mazer wrote:
Code:
sub metymas()
Dim Ruda[3]
Ruda[0] = '0x19B9' # then > 3
Ruda[1] = '0x19B8' # then = 3
Ruda[2] = '0x19BA' # then = 2
Ruda[3] = '0x19B7' # then = 1
Var i
for i = 0 to 3
   UO.FindType(Ruda[i],'-1','backpack')
   if uo.findcount() > 0 then
      uo.moveitem('finditem','1','ground')
      wait(400)
      UO.usefromground('0x19B7')
      wait(200)
wend
endsub


whats wrong here ? ;) i writed it by my self :)) i want something like this:)


1.U have 4 elements in array, but definition only for 3.
2.Close if operator


Top
   
 Post subject:
PostPosted: 2007-11-17 10:58:06 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
how to close if operation ? :/


Top
   
 Post subject:
PostPosted: 2007-11-17 11:02:08 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Not operation,- operator. Look for it in other scripts.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited