[ERROR]

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Azt
Posts: 43
Joined: 2007-09-03 16:31:57

[ERROR]

Post by Azt »

sub eggs()
   if UO.ObjAtLayer('Torso') == "" THEN
       uo.exec ("equipt Torso 0x277d")
       wait (600)
    END IF
end sub

where is the error?
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

Code: Select all

sub eggs() 
   if not UO.ObjAtLayer('Torso')  THEN
       uo.equipt ('Torso', '0x277d')
       wait (600)
    END IF
end sub
Azt
Posts: 43
Joined: 2007-09-03 16:31:57

Post by Azt »

mh no... i need a script that if there is at layer "egg" ITEM X, it disequip THEN Equip ITEM Y

so with ONE KEY, TWO item SWITCH
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

Code: Select all

sub eggs() 
   if not UO.ObjAtLayer('Torso')  THEN
       uo.equipt ('Torso', 'Item X')
       wait (600)
   else
       if uo.objatlayer('Torso')=='Item X' then
          uo.unequip('Torso')
          wait(600)
          uo.equip('Torso','Item Y')
          wait(600)
       else
            if uo.objatlayer('Torso')=='Item Y' then
                 uo.unequip('Torso')
                 wait(600)
                 uo.equip('Torso','Item X')
                 wait(600)
             endif
        endif
    END IF
end sub
Post Reply