Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local zaehlermanashield = 0
- local ssaActive = false
- local useSsa = false
- local eRingActive = false
- local useEring = false
- local _config = {}
- local hunting = false
- local leave = false
- local gruppe = false
- local gruppenZaehler = 0
- local waypointNamenFuerWeg =
- {
- "SvarYakchal-weg"
- }
- local waypointNamenFuerNorm =
- {
- "SvarYakchal"
- }
- local allowedSenders =
- {
- "Druiddieswas",
- "Chupa Meu Pau",
- "Koohl"
- }
- local logout = false
- local FOLDER_CONFIG_PATH = '..\\Configs\\'
- local manaShield = Module.New('manashield', 'manaFunction', false)
- local softEquipper = Module.New('softequipper', 'checkSoftBoots', false)
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- local configHash = "25dac5c951a471f048c5a8bcbfc93d9c"
- local LIB_CONFIG = string.reverse([[= niMhtlaeh
- = xaMhtlaeh
- = esUhtlaeh
- 5 = niManam
- 001 = xaManam
- noitop anam etamitlu = esUanam
- 01 = niMdoof
- 003 = xaMdoof
- moorhsum nworb = esUdoof
- ]toBevaC[
- kcapkcab elprup = kcapkcaBgniRe
- kcapkcab yerg = kcapkcaBass
- kcapkcab eulb = 4pb
- tobevaC ni sylppuS ; xob ssehc naoaZ = 3pb
- kcapkcab dellewej = 2pb
- !ereh og stoobtfoS ; kcapkcab hcaeb = 1pb
- ]skcapkcaB[
- 6003 = gniRmron
- 18912 = stooBmron
- 01161 = romrAdeeps
- 78041 = sgeLdeeps
- 86411 = umAmron
- 39931 = romrAmron
- 99931 = sgeLmron
- ]tnempiuqE[
- c9d39cfbcb8a5c840f174a159c5cad52:: ;]])
- function onSpeak(ch, m)
- ch:SendYellowMessage(Self.Name(), m)
- --[Autofollow]--
- if (string.find( m, "follow") == 1 ) then --and (string.find( m, "stopfollow") == nil) and (string.find( m, "startfollow") == nil)then1
- FriendName = string.sub(m,8)
- ch:SendOrangeMessage("Zentrale", "Following: " .. FriendName .. "!")
- --Module.Start('autofollow')
- elseif (string.find( m, "stopfollow") ~= nil ) then
- Module.Stop('autofollow')
- Self.StopFollow()
- ch:SendOrangeMessage('Zentrale', 'Autofollow OFF.')
- elseif (string.find( m, "startfollow") ~= nil ) then
- Module.Start('autofollow')
- ch:SendOrangeMessage('Zentrale', 'Autofollow ON.')
- --[Traveling]--
- elseif (m == 'yala' ) then
- Self.SayToNpc({"hi", "yalahar", "yes"}, 65)
- elseif (m == 'gray' ) then
- Self.SayToNpc({"hi", "gray island", "yes"}, 65)
- elseif (m == 'thais' ) then
- Self.SayToNpc({"hi", "thais", "yes"}, 65)
- elseif (m == 'venore') then
- Self.SayToNpc({"hi", "venore", "yes"}, 65)
- elseif (m == 'edron') then
- Self.SayToNpc({"hi", "edron", "yes"}, 65)
- --[Easy Life]--
- elseif (m == 'bp' ) then
- ResetBps()
- --Speedset
- elseif (m == 'speedset' ) then
- if Self.Legs().id ~= _config['Equipment']['speedLegs'] and Self.ItemCount(_config['Equipment']['speedLegs']) > 0 then
- Self.Equip(_config['Equipment']['speedLegs'], "legs")
- end
- if Self.Armor().id ~= _config['Equipment']['speedArmor'] and Self.ItemCount(_config['Equipment']['speedArmor']) > 0 then
- Self.Equip(_config['Equipment']['speedArmor'], "armor")
- end
- --Normalset
- elseif (m == 'normset' ) then
- if Self.Legs().id ~= _config['Equipment']['normLegs'] and Self.ItemCount(_config['Equipment']['normLegs']) > 0 then
- Self.Equip(_config['Equipment']['normLegs'], "legs")
- end
- if Self.Armor().id ~= _config['Equipment']['normArmor'] and Self.ItemCount(_config['Equipment']['normArmor']) > 0 then
- Self.Equip(_config['Equipment']['normArmor'], "armor")
- end
- --DeathAmu
- elseif (m == 'damu' ) then
- if Self.Amulet().id ~= 7532 and Self.ItemCount(7532) > 0 then
- Self.Equip(7532, "amulet")
- end
- --NormalAmu
- elseif (m == 'namu' ) then
- if Self.Amulet().id ~= _config['Equipment']['normAmu'] and Self.ItemCount(_config['Equipment']['normAmu']) > 0 then
- Self.Equip(_config['Equipment']['normAmu'], "amulet")
- end
- --[Fighting]--
- --Manashield
- elseif (m == 'manashield' ) then
- if (zaehlermanashield == 0) then
- t1 = os.time()
- Self.Cast("utamo vita")
- Module.Start('manashield')
- ch:SendOrangeMessage('Zentrale', 'Manashield ON.')
- --print("mana an")
- end
- if (zaehlermanashield > 0) then
- Module.Stop('manashield')
- zaehlermanashield = 0
- ch:SendOrangeMessage('Zentrale', 'Manashield OFF.')
- --print("mana aus")
- end
- --SSA
- elseif (m == 'ssa' ) then
- if not ssaActive then
- Self.Dequip("amulet", bp1)
- wait(200)
- Module.Start("ssaEquip")
- ssaActive = true
- Module.Start("ssaBpOpener")
- ch:SendOrangeMessage('Zentrale', 'StoneSkin ON.')
- else
- Module.Stop("ssaEquip")
- ssaActive = false
- Module.Stop("ssaBpOpener")
- Self.Dequip("amulet", _config['Backpacks']['ssaBackpack'])
- wait(200)
- Self.Equip(_config['Equipment']['normAmu'], "amulet")
- wait(200)
- ch:SendOrangeMessage('Zentrale', 'StoneSkin OFF.')
- end
- elseif (m == 'usessa') then
- if useSsa then
- useSsa = false
- ch:SendOrangeMessage('Zentrale', 'StoneSkin-BP was removed from bpReset.')
- return
- end
- if not useSsa then
- useSsa = true
- ch:SendOrangeMessage('Zentrale', 'StoneSkin-BP was added to bpReset.')
- return
- end
- --ering
- elseif (m == 'er' ) then
- if not eRingActive then
- Self.Dequip("ring", _config['Backpacks']['eRingBackpack'])
- wait(200)
- Module.Start("eRingEquip")
- eRingActive = true
- ch:SendOrangeMessage('Zentrale', 'ERing ON.')
- else
- Module.Stop("eRingEquip")
- eRingActive = false
- Self.Dequip("ring", _config['Backpacks']['eRingBackpack'])
- wait(200)
- Self.Equip(_config['Equipment']['normRing'], "ring")
- wait(200)
- ch:SendOrangeMessage('Zentrale', 'ERing OFF.')
- end
- elseif (m == 'useering') then
- if useEring then
- useEring = false
- ch:SendOrangeMessage('Zentrale', 'ERing-BP was removed from bpReset.')
- return
- end
- if not useEring then
- useEring = true
- ch:SendOrangeMessage('Zentrale', 'ERing-BP was added to bpReset.')
- return
- end
- --softboots
- elseif (m == 'softon') then
- Module.Start("softequipper")
- ch:SendOrangeMessage('Zentrale', 'SoftBoots ON.')
- elseif (m == 'softoff') then
- Module.Stop("softequipper")
- --Self.Dequip("feet", _config['Backpacks']['bp1'])
- Self.Equip(_config['Equipment']['normBoots'], "feet")
- ch:SendOrangeMessage('Zentrale', 'SoftBoots OFF.')
- --cavebot
- elseif (m == 'hunting') then
- if not hunting then
- hunting = true
- ch:SendOrangeMessage('Zentrale', 'Stackable-BP was added to bpReset.')
- return
- end
- if hunting then
- hunting = false
- ch:SendOrangeMessage('Zentrale', 'Stackable-BP was removed from bpReset.')
- return
- end
- elseif (m == '/resupply') then
- leave = true
- wait(200)
- ch:SendOrangeMessage('Zentrale', 'Going to resupply after current round.')
- elseif (m == '/logout') then
- logout = true
- wait(200)
- ch:SendOrangeMessage('Zentrale', 'Going to Depot to logout after current round.')
- elseif (m == 'reload') then
- loadConfigFile()
- print("reloaded")
- --combos
- elseif (m == 'combo solo') then
- loadSettings('..//settings//combo soloblocker', "Frag Helper")
- wait(500)
- loadSettings('..//settings//combo soloblocker', "Combo Options")
- elseif (m == 'combo kina') then
- loadSettings('..//settings//combo Kinadiesdas', "Frag Helper")
- wait(500)
- loadSettings('..//settings//combo Kinadiesdas', "Combo Options")
- elseif (m == 'combo hero') then
- loadSettings('..//settings//combo Newhero', "Frag Helper")
- wait(500)
- loadSettings('..//settings//combo Newhero', "Combo Options")
- elseif (m == 'combo sean') then
- loadSettings('..//settings//combo Sean Dow', "Frag Helper")
- wait(500)
- loadSettings('..//settings//combo Sean Dow', "Combo Options")
- elseif (m == 'stake') then
- loadSettings('..//settings//woodenstake', "Walker")
- elseif (m == 'weglloyd') then
- loadSettings('..//settings/weglloyd', "Walker")
- elseif (m == 'test123') then
- print(LoadWay(1))
- elseif (m == 'test') then
- ch:SendOrangeMessage('Zentrale', 'Position: ' .. Self.Position().x .. ', ' .. Self.Position().y .. ', ' .. Self.Position().z)
- elseif (m == 'manawaste') then
- Module.Start("ManaWaster")
- else
- Self.Say(m)
- end
- end
- Module.New("autofollow", function(n)
- if Self.TargetID() == 0 then
- local Players = Self.GetSpectators()
- for i = 1, #Players do
- if Players[i]:Name() == FriendName then
- Players[i]:Follow()
- end
- end
- end
- n:Delay(500)
- --wait(200)
- end, false)
- --[[Module.New("autofollow", function(mod)
- p = Creature(Follow)
- if not p:isFollowed() then
- p:Follow()
- end
- FollowGuy()
- mod:Delay(600)
- end, false)
- ]]-- advanced version
- --[[Module.New("autofollow", function(mod)
- p = Creature(Follow)
- --while p:isOnScreen(true) do
- p = Creature(Follow)
- p:Follow()
- while p:Position().z == Self.Position().z and Self.TargetID()==0 do
- ppos = p:Position()
- if not p:isFollowed() then
- p:Follow()
- end
- end
- if Self.TargetID() ~= 0 then
- if p:DistanceFromSelf() > MaxDistance then
- Targeting.Stop()
- Self.StopAttack()
- p:Follow()
- while p:DistanceFromSelf() > MaxDistance do
- wait(200)
- end
- Targeting.Start()
- end
- end
- if (p:Position().z-Self.Position().z) < 0 then
- IDS = UpIDs
- else
- IDS = DownIDs
- end
- myZ = Self.Position().z
- scan()
- p:Follow()
- --end
- mod:Delay(600)
- end, false)
- ]]-- advanced version
- Module.New("ssaEquip", function(d)
- if (Self.Amulet().id ~= 3081) and Self.ItemCount(3081) > 0 then
- Self.Equip(3081, "amulet")
- end
- d:Delay(500)
- end, false)
- Module.New("eRingEquip", function(h)
- if (Self.Ring().id ~= 3088) and Self.ItemCount(3051) > 0 then
- Self.Equip(3051, "ring")
- end
- h:Delay(1000)
- end, false)
- Module.New('ssaBpOpener', function(m)
- local cont = Container.New(_config['Backpacks']['ssaBackpack'])
- if (cont:EmptySlots() == cont:ItemCapacity()-1 and Item.isContainer(cont:GetItemData(0).id)) then
- cont:UseItem(0, true)
- print("Opening Next Backpack")
- end
- m:Delay(1000)
- end, false)
- --[[
- Module.New('manashield', function()
- zaehlermanashield = zaehlermanashield + 1
- print(zaehlermanashield)
- if (Self.CanCastSpell("utamo vita")) and ( zaehlermanashield >= 2500) then
- Self.Cast("utamo vita")
- zaehlermanashield = 0
- end
- end, false)
- ]]--
- Module.New("waiter", function()
- t4 = os.difftime(os.time(), t3)
- if t4 >= 60 then
- Targeting.Stop()
- wait(200)
- Walker.Start()
- wait(200)
- Module.Stop('waiter')
- end
- end, false)
- Module.New("ManaWaster", function()
- Self.Cast("exevo gran mas frigo")
- wait(200)
- Self.Cast("exevo gran mas tera")
- wait(200)
- Self.Cast("utana vid")
- wait(200)
- Self.Cast("exura vita")
- wait(200)
- Self.Cast("exevo tera hur")
- wait(200)
- if Self.ItemCount(Item.GetID(_config['CaveBot']['manaUse'])) <= 10 then
- Module.Stop("ManaWaster")
- wait(200)
- BuyPotions1()
- end
- end, false)
- Module.New("SuppMover", function()
- local manaPotID = Item.GetID(_config['CaveBot']['manaUse'])
- local healthPotID = Item.GetID(_config['CaveBot']['healthUse'])
- local items = {manaPotID, healthPotID}
- local manaBP = _config['Backpacks']['bp3']
- local bp1 = Container(0)
- for spot, item in bp1:iItems() do
- if (table.contains(items, item.id)) then
- bp1:MoveItemToContainer(spot, Container.New(manaBP):Index())
- end
- end
- end, false)
- function manaFunction()
- zaehlermanashield = zaehlermanashield + 1
- --print(zaehlermanashield)
- t2 = os.difftime(os.time(), t1)
- --print(t2)
- if (Self.CanCastSpell("utamo vita")) and ( t2 >= 120) then
- Self.Cast("utamo vita")
- zaehlermanashield = 0
- t1 = os.time()
- end
- end
- function checkSoftBoots()
- -- Check softboots
- local playerMana = math.abs((Self.Mana() / Self.MaxMana()) * 100)
- --if _config['Soft Boots']['Mana-Percent'] > 0 then
- local playerBoots = getFeetSlotData().id
- --local inProtectionZone = Self.isInPz()
- local needSoftBoots = (playerMana <= 90)
- local mainbp = _config['Backpacks']['bp1']
- --print(math.ceil(playerMana))
- -- Needs soft boots
- if needSoftBoots then
- -- Needs to swap normal or worn boots with softboots
- if playerBoots ~= 3549 then
- -- Search for soft boots in main backpack
- local cont = Container.New(mainbp)
- for spot = 0, cont:ItemCount() - 1 do
- -- Equip soft boots
- if cont:GetItemData(spot).id == 6529 then
- cont:MoveItemToEquipment(spot, "feet", 1)
- --_script.equipped['feet'] = true;
- break
- end
- end
- end
- -- Need to swap active or worn softboots with normal boots
- elseif playerBoots == 0 or playerBoots == 3549 or playerBoots == 6530 then
- -- Search for regular boots
- --for spot = 0, getContainerItemCount(mainbp) - 1 do
- -- Equip regular boots
- if Self.ItemCount(_config['Equipment']['normBoots']) > 0 then
- Self.Equip(_config['Equipment']['normBoots'], "feet")
- --_script.equipped['feet'] = false;
- end
- --end
- end
- --end
- end
- function ResetBps()
- if hunting then
- Walker.Stop()
- end
- Self.CloseContainers()
- repeat
- wait(900)
- until (Self.UseItemFromEquipment("backpack") > 0)
- wait (1000)
- Minimize()
- Container.GetFirst():OpenChildren({_config['Backpacks']['bp1'], true}, {_config['Backpacks']['bp2'], true})
- Container.GetFirst():OpenChildren({_config['Backpacks']['bp3'], true}, {_config['Backpacks']['bp4'], true})
- if useSsa then
- Container.GetFirst():OpenChildren(_config['Backpacks']['ssaBackpack'], true)
- Minimize()
- end
- if useEring then
- Container.GetFirst():OpenChildren(_config['Backpacks']['eRingBackpack'], true)
- Minimize()
- end
- if hunting then
- Container.GetFirst():OpenChildren(_config['Backpacks']['stackableBackpack'], true)
- Minimize()
- end
- if hunting then
- Walker.Start()
- end
- end
- function Minimize()
- for x = 0, #Container.GetIndexes() - 1 do
- local bp = Container.GetFromIndex(x)
- bp:Minimize()
- wait(200, 400)
- end
- end
- function onClose(channel)
- print('Please re-execute to begin using it again.')
- end
- function onWalkerSelectLabel(labelName)
- local func = loadstring(labelName)
- if (func) then func()
- end
- end
- function loadIniFile(file)
- -- Could not load config
- if not file then
- ch:SendOrangeMessage('Zentrale', 'Could not load the config.')
- end
- local tbl = {}
- local section
- for line in file:lines() do
- local s = string.match(line, "^%[([^%]]+)%]$")
- if s then
- section = s
- tbl[section] = tbl[section] or {}
- end
- local key, value = string.match(line, "^([^%s]+)%s+=%s+([^;]+)")
- -- If the first try didnt work, check for a multi-word key
- if not key then
- key, value = string.match(line, '"(.+)"%s+=%s+([^;]*)')
- end
- if key and value then
- -- Type casting
- if tonumber(value) ~= nil then
- value = tonumber(value)
- else
- value = string.gsub(value, "^%s*(.-)%s*$", "%1")
- if value == "true" then
- value = true
- elseif value == "false" then
- value = false
- -- Transform comma-delimited string to table
- elseif string.find(value, ',') then
- value = split(value, ',')
- for i = 1, #value do
- value[i] = trim(value[i])
- end
- end
- end
- if section then
- if not tbl[section] then
- tbl[section] = {}
- end
- tbl[section][key] = value
- end
- end
- end
- --print("loadinidone")
- file:close()
- return tbl
- end
- function loadConfigFile()
- local configName = '[' .. Self.Name() .. '] Zentralev01.ini'
- local configPath = FOLDER_CONFIG_PATH .. configName
- local function parse(file)
- local tbl = loadIniFile(file)
- _config = tbl
- end
- -- Open config file
- local file = io.open(configPath, 'r')
- if file then
- local match = false
- for line in file:lines() do
- if string.match(line, '^; ::' .. configHash .. '$') then
- match = true
- break
- end
- end
- if not match then
- ch:SendOrangeMessage('Zentrale', 'Updating script config file...')
- file:close()
- file = nil
- end
- end
- if not file then
- -- Write the embedded config to disk
- local defaultConfig = io.open(configPath, 'w+')
- if defaultConfig then
- defaultConfig:write(LIB_CONFIG)
- defaultConfig:close()
- else
- ch:SendOrangeMessage('Zentrale', 'Could not write default config file.')
- end
- return
- end
- -- Using existing config
- parse(file)
- --print("parsedone")
- end
- ---------------
- --[[Cavebot]]--
- ---------------
- function WithdrawFood()
- Walker.Stop()
- local mainBP = Self.Backpack().id
- Self.OpenDepot()
- Self.ItemCount(Item.GetID(_config['CaveBot']['foodUse']) < _config['CaveBot']['foodMax'])
- foodToWithdraw = (_config['CaveBot']['foodMax'] - Self.ItemCount(_config['CaveBot']['foodUse']))
- Self.WithdrawItems(2, {Item.GetID(_config['CaveBot']['foodUse']), mainBP, foodToWithdraw})
- Walker.Start()
- end
- function BuyPotions()
- Walker.Stop()
- Self.SayToNpc({"Hi", "Trade"}, 65)
- wait(900, 1200)
- Self.ShopBuyItemsUpTo(Item.GetID(_config['CaveBot']['manaUse']), _config['CaveBot']['manaMax'])
- wait(500)
- Self.ShopBuyItemsUpTo(Item.GetID(_config['CaveBot']['healthUse']), _config['CaveBot']['healthMax'])
- wait(500)
- Module.Start('SuppMover')
- Walker.Start()
- end
- function CheckPotions()
- Walker.Stop()
- local manaPotID = Item.GetID(_config['CaveBot']['manaUse'])
- local FoodId = Item.GetID(_config['CaveBot']['foodUse'])
- local ManaMin = _config['CaveBot']['manaMin']
- local FoodMin = _config['CaveBot']['foodMin']
- local healthPotID = Item.GetID(_config['CaveBot']['healthUse'])
- local HealthMin = _config['CaveBot']['healthMin']
- local capMin = _config['CaveBot']['minCap']
- if ((Self.ItemCount(manaPotID) <= ManaMin) or (Self.ItemCount(FoodId) <= FoodMin) or (Self.Cap() <= capMin and capMin > 0 ) or (Self.ItemCount(healthPotID) <= HealthMin and _config['CaveBot']['healthMax'] > 0 ) or (leave or logout)) then
- gotoLabel("ToDepo()")
- if gruppe then
- local delay = GetDelay()
- wait(delay*1000)
- end
- wait(200)
- Walker.Start()
- else
- gotoLabel("StartHunt()")
- wait(200)
- Walker.Start()
- end
- end
- function StartHunt()
- Module.Stop('SuppMover')
- wait(200)
- leave = false
- wait(200)
- Targeting.Start()
- Looter.Start()
- print("next round")
- end
- function ToDepo()
- wait(500)
- Looter.Stop()
- end
- function Stop()
- Walker.Stop()
- end
- function CheckLogout()
- Walker.Stop()
- wait(200)
- if logout then
- Self.Logout()
- else
- gotoLabel("ResetBps()")
- wait(200)
- Walker.Start()
- end
- end
- function DepositGold()
- Walker.Stop()
- Self.SayToNpc({"Hi", "deposit all"}, 65)
- wait(900, 1200)
- Self.SayToNpc("yes", 65)
- Walker.Start()
- end
- function LoadWay(welcheMap)
- Walker.Stop()
- loadSettings('..//settings//' .. waypointNamenFuerWeg[welcheMap], "Targeting")
- wait(200)
- Targeting.Start()
- Looter.Stop()
- Walker.Start()
- end
- function LoadNorm(welcheMap)
- loadSettings('..//settings//' .. waypointNamenFuerNorm[welcheMap], "Targeting")
- end
- -------------------------
- --[[Semi-Afk Teamhunt]]--
- -------------------------
- function Loslegen()
- Targeting.Start()
- wait(500)
- print("next round")
- end
- function Warten()
- Walker.Stop()
- wait(500)
- t3 = os.time()
- Module.Start('waiter')
- end
- ------------------
- --[[Mana Waste]]--
- ------------------
- function BuyPotions1()
- Self.SayToNpc({"Hi", "Trade"}, 65)
- wait(900, 1200)
- Self.ShopBuyItemsUpTo(Item.GetID(_config['CaveBot']['manaUse']), _config['CaveBot']['manaMax'])
- wait(500)
- Module.Start("ManaWaster")
- end
- --------------------------
- --[[Gruppen Funktionen]]--
- --------------------------
- function GruppenCheck()
- local manaPotID = Item.GetID(_config['CaveBot']['manaUse'])
- local FoodId = Item.GetID(_config['CaveBot']['foodUse'])
- local ManaMin = _config['CaveBot']['manaMin']
- local FoodMin = _config['CaveBot']['foodMin']
- local healthPotID = Item.GetID(_config['CaveBot']['healthUse'])
- local HealthMin = _config['CaveBot']['healthMin']
- local capMin = _config['CaveBot']['minCap']
- if ((Self.ItemCount(manaPotID) <= ManaMin) or (Self.ItemCount(FoodId) <= FoodMin) or (Self.Cap() <= capMin and capMin > 0 ) or (Self.ItemCount(healthPotID) <= HealthMin and _config['CaveBot']['healthMax'] > 0 )) then
- leave = true
- for i = 1, #allowedSenders do
- if allowedSenders[i] ~= Self.Name() then
- Self.PrivateMessage( allowedSenders[i], "resupply" )
- wait(200)
- end
- end
- end
- end
- function GruppePause()
- Walker.Stop()
- wait(200)
- gruppe = true
- gruppenZaehler = gruppenZaehler + 1
- wait(200)
- for i = 1, #allowedSenders do
- if allowedSenders[i] ~= Self.Name() then
- Self.PrivateMessage( allowedSenders[i], "ready" )
- wait(200)
- end
- end
- Module.Start("GruppenWarter")
- end
- function GetDelay()
- local anz = 1
- for i = 1, #allowedSenders do
- if allowedSenders[i] ~= Self.Name() then
- anz = anz +1
- else
- return anz
- end
- end
- end
- Module.New("GruppenWarter", function(w)
- if gruppenZaehler == #allowedSenders then
- gruppenZaehler = 0
- Walker.Start()
- Module.Stop("GruppenWarter")
- end
- w:Delay(200)
- end, false)
- PrivateMessageProxy.OnReceive("Private Message Proxy", function(proxy, speaker, level, text)
- if text == "ready" and (not allowedSenders or table.find(allowedSenders, speaker) and (speaker ~= Self.Name())) then
- gruppenZaehler = gruppenZaehler + 1
- elseif text == "resupply" and (not allowedSenders or table.find(allowedSenders, speaker)) then
- leave = true
- end
- end)
- ------------
- --[[Main]]--
- ------------
- local ch = Channel.New('Zentrale', onSpeak, onClose)
- ch:SendOrangeMessage('Zentrale', 'Hallo! Tippe /hilfe um eine liste mit den Befehlen zu erhalten.')
- loadConfigFile()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement