Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Nov 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0

    Mover item da mainbp Para lootbp

    Galera, pfv.. alguém pode me ajudar em como resolver a seguinte situação? Script abre a glooth bag normal e até consegui achar como fazer dropar os itens que não quero, porém ele abre a glooth bag na mainbp e eu quero que os loots como por exemplo "Glooth Blade" vai para a lootbp... alguem pode me ajudar em como ficaria um script assim.. seria basicamente mover os itens que eu quero da mainbp para a lootbp...
    Desde ja obrigado

  2. #2
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    21
    Please avoid to use portuguese here, also next time use Request section, not this one.

    Here's ur request:
    local itemsToMove = {"glooth blade", "item2", "item3"} -- add names between "".

    local bpLoot = "blue backpack" -- your loot backpack name
    local bpMain = itemname($back.id) -- don't need to change

    for _, v in ipairs(itemsToMove) do
    while itemcount(v, bpMain) > 0 and getcontainer(bpLoot).emptycount > 0 do
    moveitems(v, bpLoot, bpMain) waitping()
    end
    end
    Last edited by Donatello; 08-01-2017 at 05:17 PM.

  3. #3
    Free User kleibert's Avatar
    Join Date
    Feb 2016
    Location
    Venezuela
    Posts
    37
    Reputation
    10
    Rep Power
    0
    Hi, @Donatello when you run this script, this comes out in the console,

    error in Action script wptid:0:
    ["while(v, bpMain) > 0 and getcontainer(bpL..."]:Action: 0:7: ')' expected near ','

  4. #4
    Free User MenelZThais's Avatar
    Join Date
    Aug 2016
    Location
    Poland
    Posts
    253
    Reputation
    10
    Rep Power
    16
    Try change this to:
    Code:
    while(v) > 0 and getcontainer(bpLoot).emptycount > 0 do

  5. #5
    Free User kleibert's Avatar
    Join Date
    Feb 2016
    Location
    Venezuela
    Posts
    37
    Reputation
    10
    Rep Power
    0
    @MeneIZThais

    error in Action script wptid:0:
    ["while(v) > 0 do"]:Action: 0:21 attempt to compare number with string

  6. #6
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    21
    Quote Originally Posted by kleibert View Post
    @MeneIZThais

    error in Action script wptid:0:
    ["while(v) > 0 do"]:Action: 0:21 attempt to compare number with string
    I fixed it, check my old post.

 

 

Posting Permissions

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