Results 1 to 2 of 2

Thread: Action weapon to change depending on the amount of monsters

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

    Action weapon to change depending on the amount of monsters

    And guys, was in need of an action that when I had two animals he uses a gun and knocks on full def and when you have 3 or more switches to another weapon and kills in balanced fight, Would anyone be able to help me thank.

    I tried to adapt a more pally of action did not work

    Code:
    local ArmaPraUsar = "Crowbar"
    local ArmaDePally = "Morning star"
    
    
    if weapon ~= ArmaDePally and itemcount(ArmaDePally) >= 2 and maround(0) == 0
    then moveitems(ArmaDePally, "all", "weapon", 100)
    setsettings("Settings\\Targeting\\Monsters\\Rotworm\\ListSettings\\Setting0\\Stance", "Reach")
    setsettings("Settings\\Targeting\\Monsters\\Rotworm\\ListSettings\\Setting0\\AttackMode", "Stand/Offensive")
    wait(1000)
    elseif weaponamount <= 1 and maround(0) == 0
    then moveitems(ArmaPraUsar, "all", "weapon", 100)
    setsettings("Settings\\Targeting\\Monsters\\Rotworm\\ListSettings\\Setting0\\Stance", "Reach")
    setsettings("Settings\\Targeting\\Monsters\\Rotworm\\ListSettings\\Setting0\\AttackMode", "Stand/Defensive")
    end

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    weapon ~= itemid(ArmaDePally

Posting Permissions

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