Signup Now
Results 1 to 3 of 3
  1. #1
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    28

    tradecount() counting equipment

    As topic says, function tradecount() is counting equipment, and i belive it shouldnt.
    Example:
    ITEMS = {"longsword", "copper shield", "chain armor", "steel shield", "battle axe", "morning star", "plate legs", "double axe", "steel helmet", "halberd", "two handed sword"}
    for _, item in ipairs(ITEMS) do
    while tradecount("sell", item) > 0 do
    sellitems(item, 100)
    waitping()
    end
    end


    In this case, its trying to sell plate legs/steel helmet which i wear on my noobchar
    Last edited by Imba; 01-06-2014 at 03:08 AM.

  2. #2
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    22
    That's true, It should not count, probably Lucas will fix it asap, about your code you can use like that before it gets fixed:
    init start
    local ITEMS = {"longsword", "copper shield", "chain armor", "steel shield", "battle axe", "morning star", "plate legs", "double axe", "steel helmet", "halberd", "two handed sword"}
    init end

    table.itemid(ITEMS)

    for _, v in ipairs(ITEMS) do
    sellitems(v, 100)
    waitping()
    end

  3. #3
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    28
    Thank you for your help
    By the way, can you tell me whats the difference between those 2 codes?
    init start
    local something~
    init end

    and
    local something~

 

 

Posting Permissions

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