Witam jestem nowym użytkownikiem XenoBota i gram na Gunzodus.net chciałybm sie dowiedzieć kilka rzeczy odnośnie skryptu .lua
1. rzecz co napisałem źle że plik .lua po wcisnieciu Execute pojawia sie w prawej tabeli XenoBota i zaraz znika, plik .lua wyglada tak:
--Mana Potions--
local ManasToLeave
local WantedManas
local ManaPotID
local ManaCost = 144
--Health Potions--
local GfbToLeave
local WantedGfb
local GfbID
local GfbCost = 45
--Other Options--
local MainBP = 2854 -brown
local ItemBP = 8860 -brocade
local GoldBP = 2871 -golden
local STackBP = 2869 -blue
local SuppliesBP = 5801 -jewelled
local RingBP = 5949 -beach
local MinCap = 150
local HideEquipment = true
Targeting.Start()
Looter.Start()
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
local info = [[]]
wait (5000)
function onWalkerSelectLabel(labelName)
if (labelName = Checker) then
WalkerConditionalGoto (Self.ItemCount(ManaPotID) < MinMana)
elseif (labelName = Venore) then
setWalkerEnabled(false)
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Venore")
sleep(math.random(700, 1400))
SelfSay("yes")
elseif (labelName = Thais) then
setWalkerEnabled(false)
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Thais")
sleep(math.random(700, 1400))
SelfSay("yes")
elseif (labelName = Carlin) then
setWalkerEnabled(false)
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Carlin")
sleep(math.random(700, 1400))
SelfSay("yes")
elseif (labelName = "Deposit") then
setWalkerEnabled(false)
end)
2. rzecz to chciałbym sie dowiedzieć czy te odstępy pod elseif są potrzebne chodzi mi dokładnie o tab czy spacje w linijce Self.Say("hi") no to czy ten odstęp na początku jest potrzebny
Z góry dziekuje i pozdrawiam.
Zakładki