Postado Abril 16, 2015 10 anos --[[ Auto Healer Version 1.02 Created by Syntax ]] local config = { WhiteList = {"DarkstaR", "Syntax"}, healWhiteList = true, -- heal players specified in the whitelist healParty = true, -- heal party members healAlly = true, -- heal war allies range = 4, -- max distance to heal players mana = 140, -- minimum mana needed to cast health = 65, -- % of friend's health to heal at method = "exura sio" -- this is the only method currently, rune healing will be added later } local function sio(name) if(Self.Mana() >= config.mana)then Self.Say("exura sio \"NomeDoChar") sleep(math.random(200,600)) end end local function think() for i = CREATURES_LOW, CREATURES_HIGH do local creature = Creature.GetFromIndex(i) if (creature:isValid()) then if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then local name = creature:Name() if(creature:isWarAlly() and config.healAlly) or (creature:isPartyMember() and config.healParty) or (table.find(config.WhiteList, name, false) and config.healWhiteList)then if(creature:DistanceFromSelf() <= config.range) and (creature:HealthPercent() <= config.health)then if(config.method == "exura sio")then sio(name) else displayInformationMessage("Unsupported method type in Auto Healer Script!") end end end end end end sleep(math.random(100,300)) think() end local function display() local display = "Auto Healer by Syntax (v1.02)\n------------------\n\nMethod: " .. config.method .. "\nHeal Party: " .. tostring(config.healParty) .. "\n" .. "Heal War Allies: " .. tostring(config.healAlly) if(config.healWhiteList)then display = display .. "\n" .. "Heal Players:" .. table.concat(config.WhiteList, ", ") end displayInformationMessage(display) end display() think() Cria um bloco de notas; Copia o codigo que postei, cola nesse bloco de notas. Vai em Arquivo > Salvar Como > em "Nome" vc coloca qualquer nome só que tem q coloca .lua no final. em "Tipo" vc coloca "Todos Arquivos". e clica em salvar. poe na pasta Scrips do xenobot nos Meus Documentos. range = 4, -- max distance to heal players mana = 140, -- minimum mana needed to cast health = 65, -- % of friend's health to heal at Self.Say("exura sio \"NomeDoChar") no code que eu postei tem essas linhas range = Distancia pra curar. mana = o tanto de mana q a magia consome. health = com quantos % de vida vai dar sio no outro char? ai ta 65% quando o char estiver com 65% de vida ele vai curar. self.say = em "NomeDoChar" tu poe o nick do char q vai curar. funfo 100% comigo. Editado Abril 16, 2015 10 anos por Lukz (veja o histórico de edições) [VIDEOS] Quase Tudo Sobre o XenoBOT! [VIDEOS] XenoBOT Script 100% AFK
Postado Abril 16, 2015 10 anos local function healer() for index = CREATURES_LOW, CREATURES_HIGH do local creature = Creature.GetFromIndex(index) if (creature:isValid()) then if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then if (creature:Name() == "NOME DO AMIGO" and creature:HealthPercent() <= 45) then if Self.Mana() >= 140 then Self.Say('Exura Sio "NOME DO AMIGO') end end end end end sleep(math.random(100,300)) healer() end healer()
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.