Results 1 to 3 of 3

Thread: Triggering targeting off when x amount of spears.

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Triggering targeting off when x amount of spears.

    Hey, as in title, I need script which will turn targeting off when I have less than x spears so that my character wont atk monsters and wont ran out of ammo. Is it possible?

  2. #2
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    PHP Code:
    local mincount -- // minimum spear amount
    local total_spearcount itemcount("spear") + weaponamount

    if (total_spearcount mincountthen
          settargeting
    ("no")
    else
          
    settargeting("yes")
    end 

  3. #3
    Normal User
    Join Date
    Oct 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    works fine, thanks

Posting Permissions

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