PDA

View Full Version : Simple noob question



nielegalnyKUBA
03-16-2016, 04:54 AM
So i recently got intomakin full afks for xeno and ran into a issue with this code


elseif (labelName == "Potions") then
setWalkerEnabled(false)
delayWalker(10000)
Self.SayToNpc("hi")
sleep(math.random(800, 1700))
Self.SayToNpc("trade")
sleep(math.random(2000, 2400))
Self.ShopBuyItem(ManaPotID, (WantedManas-Self.ItemCount(ManaPotID)))
sleep(math.random(2000, 2400))
Self.ShopBuyItem(AvaID, (WantedAva-Self.ItemCount(AvaID)))
sleep(math.random(800, 1700))
Self.ShopBuyItem(SdID, (WantedSd-Self.ItemCount(SdID)))
sleep(math.random(2000, 2400))
setWalkerEnabled(true)

It's suppose to buy GMP's and avalanche runes as well as SD's, i declared akk if ID's at the top of the script like this:

local ManasToLeave = 70 -- Z iloma manasami wracać
local WantedManas = 200 -- Ile Manasow kupić
local ManaPotID = 238 -- Mana Potion ID
local ManaCost = 120 -- Mana Potion koszt

-- Ava runes --

local AvaToLeave = 40 -- Z iloma ava
local WantedAva = 300 -- Ile ava Kupić
local AvaID = 3161 -- ava ID
local AvaCost = 45 -- Koszt ava

-- SD runes --

local SdToLeave = 40 -- Z iloma SD
local WantedSd = 300 -- Ile SD Kupić
local SdID = 3155 -- SD ID
local SdCost = 108 -- Koszt SD


Any idea why the script open shop > close it . continue to hunt without refilling?