Results 1 to 3 of 3

Thread: Need help with my action

  1. #1
    Normal User OkeNaos's Avatar
    Join Date
    Oct 2013
    Location
    North Galaxy
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Need help with my action

    Hiho, I have a problem with my CheckRefiller Action.

    if itemcount(AmmoName) <= AmmoCheck then
    gotolabel("Leave2")
    else
    gotolabel("Leave1")
    end

    Can you tell me why itemcount(AmmoName) is not counting the royal spears which I have in my hand? I mean my character is going back to depo, whenever it hits this action waypoint. Simple question how do I make my script to count the spears which I hold in my hand?

    Setup :
    AmmoID = itemid(AmmoName)

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Code:
    if itemcount(AmmoName) + weaponamount <= AmmoCheck then
    gotolabel("Leave2")
    else
    gotolabel("Leave1")
    end

  3. #3
    Normal User OkeNaos's Avatar
    Join Date
    Oct 2013
    Location
    North Galaxy
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    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
  •