Results 1 to 5 of 5

Thread: Moveitems()

  1. #1
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    Moveitems()

    is there any way to use the moveitems function with a string of items eg
    Code:
    moveitems("Bat Wing", "Honeycomb", "Spider Fangs", "Bunch of Troll Hair", "Chicken Feather", "Turtle Shell", "Spider Silk", "White Pearl", "Piggy Bank", "Book of Prayers", "Iron Ore", "Fish Fin", "Plague Bell", "Plague Mask", "Boots of Haste", "Flask Warriors Sweat", "Slug Drug",MainBp)
    or does this function already work like this??



    Edit: also how would i get the last msg of a npc ?? heres what im trying to do

    Code:
    reachcreature("Ottokar")
    say("hi")
    npcsay("Medicine pouch")
    npcsay("yes")
    while ncp  not say "11:08 Ottokar: Sorry, you don’t have any medicine pouch with you." do
    npcsay("Medicine pouch")
    npcsay("yes")
    dropitems("Worn Leather Boots", "Dirt Cape", "Broken Piggy Bank", "eggs", "Worms", "white Mushroom", "Knife", "Scarf", "Garlic Necklace", "Doll")
    moveitems("Bat Wing", "Honeycomb", "Spider Fangs", "Bunch of Troll Hair", "Chicken Feather", "Turtle Shell", "Spider Silk", "White Pearl", "Piggy Bank", "Book of Prayers", "Iron Ore", "Fish Fin", "Plague Bell", "Plague Mask", "Boots of Haste", "Flask Warriors Sweat", "Slug Drug",MainBp)
    end
    Last edited by Glitch; 08-27-2012 at 12:11 PM.

  2. #2
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    bumping......

  3. #3
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    I don't know if it can be used like that but here is a way to use it

    PHP Code:
    local items = {"Bat Wing""Honeycomb""Spider Fangs""Bunch of Troll Hair""Chicken Feather""Turtle Shell""Spider Silk""White Pearl""Piggy Bank""Book of Prayers""Iron Ore""Fish Fin""Plague Bell""Plague Mask""Boots of Haste""Flask Warriors Sweat""Slug Drug"}

    for 
    i,j in ipairs(items) do
    moveitems(jMainBP)
    end 
    And for the last msg you can use

    PHP Code:
    getnewmessages('NPCs'

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    680
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    0
    or try
    PHP Code:
    local items = {"lots of stuff in here"}

    moveitems(unpack(items), MainBP
    also wth is "while not npc say"? Why do yo uhave a loop there, it's a typo in npc etc.

  5. #5
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Ropiderz View Post
    moveitems moves only 1 item, if you wanna deposit more onto another backpack should use depotdeposit(BP, items.....)
    i thought about that but does depotdeposit work on an open backpack or does it have to move it onto the backpack from a backpack?

Posting Permissions

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