Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Dec 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0

    Switch to strong weapon if 3 or more monsters attacking

    Hi,

    The title pretty much says it all...

    I wanna train a knight on a trolls cave, but i need a script to switch from the sickle to the orcish axe if theres 3 or more trolls attacking, and switch back to the sickle if theres only 1 or 2


    Thanks<3

  2. #2
    Free User
    Join Date
    Dec 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Nevermind, managed to find it on the forum

    #REQUEST to close

  3. #3
    Free User Enlaces's Avatar
    Join Date
    Nov 2016
    Posts
    62
    Reputation
    42
    Rep Power
    15
    local WeaponToUse  = itemid('Orcish Axe') --  Attack monsters with sword, axe or club, when not skill training
    local WeaponTraining = itemid('Sickle') -- Training weapon
    local MonstersToTrainer = 2 -- Maximum amount of monster you will continue to train


    auto(100,300)

    if maround() > MonstersToTrainer then
    equipitem(WeaponToUse, 'rhand')
    else
    equipitem(WeaponTraining, 'rhand')
    end

 

 

Posting Permissions

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