Results 1 to 4 of 4

Thread: Enchanting weapon

  1. #1
    Normal User
    Join Date
    Apr 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Enchanting weapon

    Hello, i have a problem with my script.
    I'm hunting with an enchanted weapon right now, but i would like my bot to enchant my weapon when it's "out of energy"

    local gem = 'small enchanted ruby'

    if (weapon == 7415) then
    pausewalking(1500)
    useitem(gem, "weapon")
    wait(500)
    end
    7415 is the item nr of my weapon right now (which is carnial basher)
    I think the problem with this script is that he have to move the basher down from weapon spot, into the backpack, enchant it and bring it back up.
    would be nice if he "didn't care" about it if there was no more small rubies in the backpack as well.


    all help is appreciated

    thanks.
    Last edited by odegaard90; 05-04-2013 at 09:27 PM.

  2. #2
    Normal User mattos123's Avatar
    Join Date
    Sep 2012
    Location
    Brasil
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    i think the propely function would be "useitemonitem"
    Se ontem fosse anti-ontem, e hoje fosse ontem, hoje seria oque ?





    ~O amanhã


  3. #3
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    local GEM = "small enchanted ruby"
    local WEAPON_ID = 7415

    if weapon == WEAPON_ID and itemcount(GEM) > 0 then
    useitemonitem(GEM, WEAPON_ID, "weapon")
    wait(200, 400)
    end

  4. #4
    Normal User
    Join Date
    Apr 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks raph, works perfect!

    rep + from me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •