Log in

View Full Version : Colecting Gold problem



Andrast
11-13-2013, 11:08 PM
Hello i ahve problem with one think in Yalahar Giant spider Scipt all works well beside 1 think.
When i need to refill all thinks its all good but when he resets gold bp he open new backpack for gold and dont close the first one, so when he goes for Exp he dont loot gold because when i set to collect gold to 2 backpack when he change it in depo it makes it 3 backpack... someone can help me?


--[[

,--.-, ,-.--, ,-,--. _,.----. .=-.-. _ __ ,--.--------. ,-,--.
|==' -|.--.-. /=/, .' ,-.'- _\ .' .' - \ .-.,.---. /==/_ /.-`.' ,`./==/, - , -\,-.'- _\
|==|- |\==\ -\/=/- / /==/_ ,_.'/==/ , ,-' /==/ ` \|==|, |/==/, - \==\.-. - ,-./==/_ ,_.'
__|==|, | \==\ `-' ,/ \==\ \ |==|- | .|==|-, .=., |==| |==| _ .=. |`--`\==\- \ \==\ \
,--.-'\=|- | |==|, - | \==\ -\ |==|_ `-' \==| '=' /==|- |==| , '=',| \==\_ \ \==\ -\
|==|- |=/ ,| /==/ , \ _\==\ ,\ |==| _ , |==|- , .'|==| ,|==|- '..' |==|- | _\==\ ,\
|==|. /=| -|/==/, .--, - \ /==/\/ _ |\==\. /==|_ . ,'.|==|- |==|, | |==|, | /==/\/ _ |
\==\, `-' / \==\- \/=/ , / \==\ - , / `-.`.___.-'/==/ /\ , )==/. /==/ - | /==/ -/ \==\ - , /
`--`----' `--`-' `--` `--`---' `--`-`--`--'`--`-``--`---' `--`--` `--`---'

__________________________________________________ __________________________________________________ _________

Copyright (c)2013 JX Scripts.
Yalahar Giant Spiders - Mage Version
Version 1.0
(Updated: April 28, 2013)
__________________________________________________ __________________________________________________ _________

.----. .--. .----..-..-..-.-. .--. .----..-..-. .----.
| {_} } / {} \ | }`-'| ' / | } }}/ {} \ | }`-'| ' / { {__-`
| {_} }/ /\ \| },-.| . \ | |-'/ /\ \| },-.| . \ .-._} }
`----' `-' `-'`----'`-'`-``-' `-' `-'`----'`-'`-``----'
__________________________________________________ _________

[BACKPACK #1] Main
[BACKPACK #2] Rares
[BACKPACK #3] Products
[BACKPACK #4] Gold
[BACKPACK #5] Gold
[BACKPACK #6] Gold

.----. .----..-.-. .---. .-----.
} {-. \} |__}| } }}/ {-. \`-' '-'
} '-} /} '__}| |-' \ '-} / } {
`----' `----'`-' `---' `-'
__________________________________________________ _________

[DEPOT #1] Rares
[DEPOT #2] Products
[DEPOT #3] Strong Mana Potions (OPTIONAL)

INSTRUCTIONS:
Put a knife in your main backpack.

DETAILS:
This script will break the silk wall only if
your character is stuck on this floor, without
moving for more than 15 seconds.
]]

------ REFILL SETTINGS ------
MinMana = 50 --- How many mana potions when you leave the hunt?
MaxMana = 300 --- How many mana potions when you begin the hunt?
------- HUNT SETTINGS -------
MinCap = 50 --- How much capacity when you leave the hunt?
MutatedBats = false --- Do you want to kill the mutated bats?
SafeStrike = true --- Do you want to turn away from players while casting spells?
----- BACKPACK SETTINGS -----
GoldBP = 10324 -- id of gold backpack
loot1 = 5926 -- id of first loot backpack

------- EXTRA SETTINGS ------
MushroomRefiller = true --- Do you want to use the white mushroom refiller?
MaxMushrooms = 40 --- How many white mushrooms you begin the hunt with?
LogoutStamina = true --- Do you want to logout at 16 hours? (Inside the depot)
HideEquipment = false --- Do you want to minimize your equipment?
Loot = true -- Do you want to loot creatures?
DropGold = true -- Do you want to drop gold below 100 capacity?

--[[ DO NOT EDIT BELOW ]]

dofile("[JX] Library.lua")
i need to cut some of code here

function resetBps()
Walker.Stop()
Self.CloseContainers()
repeat
wait(900)
until (Self.UseItemFromEquipment("backpack") > 0)
wait (1000)
Container.GetFirst():OpenChildren(stackBP, lootBP, goldBP)
Walker.Start()
end



this is how this script look like, please help me.