XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 9 of 9

Thread: Gold Converter script :)

  1. #1

    Join Date
    Nov 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Gold Converter script :)

    Hello Xenobotters ,
    i need script which use gold converter if 100+ gold, ty for your time

  2. #2

    Join Date
    Apr 2015
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jey9494 View Post
    Hello Xenobotters ,
    i need script which use gold converter if 100+ gold, ty for your time
    i need that tho

  3. #3

    Join Date
    May 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Schneeider View Post
    i need that tho
    i do aswell

  4. #4

    Join Date
    Apr 2015
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    please guys we need that script

  5. #5

    Join Date
    Nov 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i need too :S

  6. #6
    Fetbojj's Avatar
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    90
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I don't know how to make luas but I found this on the forum when searching for a rust remover user script:

    Code:
    CONFIG = {
    
      PRIMARY = 9016,
    
      SECONDARY = {8894, 8895, 8896, 8897, 8898, 8899}
    
    }
    
     
    
    Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
    
    local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
    
      for i = 0, 15 do
    
      local cont = Container.New(i)
    
        if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
    
          for SPOT = cont:ItemCount() - 1, 0, -1 do
    
          local tmp = cont:GetItemData(SPOT)
    
            if (tmp.id == CONFIG.PRIMARY) then
    
              PRIMARY = cont
    
              SPOTS[1] = SPOT
    
            elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
    
              SECONDARY = cont
    
              SPOTS[2] = SPOT
    
            end
    
          end
    
        end
    
      end
    
      if (PRIMARY ~= nil and SECONDARY ~= nil) then
    
        PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
    
      end
    
    moduleObject:Delay(1000)
    
    end)
    Now all we need to do is replace the primary with the item id of the gold converter and the secondary with the gold id. Plus we need to add a counter so that it only tries to use the primary on the secondary while count => 100. So lets seee.... :


    Code:
    CONFIG = {
    
      PRIMARY = goldconverterid,
    
      SECONDARY = {3031}
    
    }
    
     
    
    Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
    
    local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
    
      for i = 0, 15 do
    
      local cont = Container.New(i)
    
        if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
    
          for SPOT = cont:ItemCount() - 1, 0, -1 do
    
          local tmp = cont:GetItemData(SPOT)
    
            if (tmp.id == CONFIG.PRIMARY) then
    
              PRIMARY = cont
    
              SPOTS[1] = SPOT
    
            elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
    
              SECONDARY = cont
    
              SPOTS[2] = SPOT
    
            end
    
          end
    
        end
    
      end
    
      if (PRIMARY ~= nil and SECONDARY > 100) then
    
        PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
    
      end
    
    moduleObject:Delay(1000)
    
    end)
    I don't have a gold converter so I don't know the item id, so please if you try this make sure to replace goldconverterid with the numbers of the id. And please report back if it works or if you get an error (and paste the error here please).

    edit: it might not work because if for example you have 95 gold coins and you loot 12 you will have a first stack of 7 and then 100 with exactly the same item id. So the script will probably try to use the converter on the 7 instead of the 100. Again, I don't know a lot about luas just copy pasta.
    Last edited by Fetbojj; 12-08-2016 at 10:23 AM.

  7. #7

    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nvm i cant read

  8. #8

    Join Date
    Apr 2015
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Arrow

    Quote Originally Posted by Fetbojj View Post
    I don't know how to make luas but I found this on the forum when searching for a rust remover user script:

    Code:
    CONFIG = {
    
      PRIMARY = 9016,
    
      SECONDARY = {8894, 8895, 8896, 8897, 8898, 8899}
    
    }
    
     
    
    Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
    
    local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
    
      for i = 0, 15 do
    
      local cont = Container.New(i)
    
        if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
    
          for SPOT = cont:ItemCount() - 1, 0, -1 do
    
          local tmp = cont:GetItemData(SPOT)
    
            if (tmp.id == CONFIG.PRIMARY) then
    
              PRIMARY = cont
    
              SPOTS[1] = SPOT
    
            elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
    
              SECONDARY = cont
    
              SPOTS[2] = SPOT
    
            end
    
          end
    
        end
    
      end
    
      if (PRIMARY ~= nil and SECONDARY ~= nil) then
    
        PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
    
      end
    
    moduleObject:Delay(1000)
    
    end)
    Now all we need to do is replace the primary with the item id of the gold converter and the secondary with the gold id. Plus we need to add a counter so that it only tries to use the primary on the secondary while count => 100. So lets seee.... :


    Code:
    CONFIG = {
    
      PRIMARY = goldconverterid,
    
      SECONDARY = {3031}
    
    }
    
     
    
    Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
    
    local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
    
      for i = 0, 15 do
    
      local cont = Container.New(i)
    
        if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
    
          for SPOT = cont:ItemCount() - 1, 0, -1 do
    
          local tmp = cont:GetItemData(SPOT)
    
            if (tmp.id == CONFIG.PRIMARY) then
    
              PRIMARY = cont
    
              SPOTS[1] = SPOT
    
            elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
    
              SECONDARY = cont
    
              SPOTS[2] = SPOT
    
            end
    
          end
    
        end
    
      end
    
      if (PRIMARY ~= nil and SECONDARY > 100) then
    
        PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
    
      end
    
    moduleObject:Delay(1000)
    
    end)
    I don't have a gold converter so I don't know the item id, so please if you try this make sure to replace goldconverterid with the numbers of the id. And please report back if it works or if you get an error (and paste the error here please).

    edit: it might not work because if for example you have 95 gold coins and you loot 12 you will have a first stack of 7 and then 100 with exactly the same item id. So the script will probably try to use the converter on the 7 instead of the 100. Again, I don't know a lot about luas just copy pasta.
    not working bro....
    the id of gold converter is 23722 if u wanna help us +rep

  9. #9
    Flexderec's Avatar
    Join Date
    Nov 2019
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know which is better but I'll use this onlineconvertfree.com online file converter for it because it simple and useful tool. What do you think about it?

Tags for this Thread

Posting Permissions

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