Results 1 to 4 of 4

Thread: Selling items to npc

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Selling items to npc

    I am picking items like : mace ,sword, brass shield, and i dont want deposit them in depo i just want to sell them right to the npc , anyone know how to do that?

  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 ITEMS = {"mace""sword""brass shield"}

    for 
    i,j in pairs(ITEMS) do
         while (
    itemcount(ITEMS[i]) >= 1) do
                     
    sellitems(ITEMS[i], 100)
                     
    wait(400,700)
         
    end
    end 
    this action will sell your items

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thank you very much

  4. #4
    Normal User nemiks's Avatar
    Join Date
    Aug 2012
    Posts
    225
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Quote Originally Posted by Balbek View Post
    PHP Code:
    local ITEMS = {"mace""sword""brass shield"}

    for 
    i,j in pairs(ITEMS) do
         while (
    itemcount(ITEMS[i]) >= 1) do
                     
    sellitems(ITEMS[i], 100)
                     
    wait(400,700)
         
    end
    end 
    this action will sell your items
    this scripts checking count of item, if you have more bp of items, scripts will stop when sell items from first bp, example. if you have in firstt bp only mace, you dont sell armor or shiled try it:

    PHP Code:
    local ITEMS = {"mace""sword""brass shield"}
    local NameBP "Golden Backpack"

    for i,j in pairs(ITEMS) do
         while (
    itemcount(ITEMS[i]) >= 1) do
                     
    sellitems(ITEMS[i], 100)
                     
    wait(400,700)
                     if 
    itemcount(ITEMS[i], NameBP) == 0 then
                           openitem
    (NameBPNameBPfalse)
                           
    wait(200)
                     
    end
         end
    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
  •