Log in

View Full Version : How to make luas working?



korre21gr
03-17-2016, 09:46 PM
I have tried alot of luas and i dont get it to work. Its just deletes when i try to execute it.
I use notepad ++ to make the luas. I Have tried luas like autoheal,Tibialyzer,Sync attack with spells.

Any help or solution?

texmex47
03-20-2016, 06:21 PM
can you post the lua script you try to execute here?

dudinhopac
03-26-2016, 03:31 AM
i have the same problem, need a script to use sio in my friend and i found this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local targets = {}
targets[#targets + 1] = { name = "Nakux", hp = 80 }

Module("ssSio", function(module)
for k,v in ipairs(targets) do
local player = Creature(v.name)
if player:isOnScreen(false) and (player:HealthPercent() <= v.hp) then
if Self.CanCastSpell("exura") and (Self.Mana() > 100) then
Self.Cast("exura sio "" .. v.name)
end
end
end
end, false)

function onSpeak(chat, msg)
chat:SendYellowMessage(Self.Name(), msg)
if (msg == "start") then
Module("ssSio"):Start()
chat:SendOrangeMessage("ssSio", "ssSio has started.")
elseif (msg == "stop") then
Module("ssSio"):Stop()
chat:SendOrangeMessage("ssSio", "ssSio has stopped.")
else
targets[#targets + 1] = { name = msg, hp = 80 }
chat:SendOrangeMessage("ssSio", "Added " .. msg .. " to the healing list.")
end
end

function onClose() end

local chat = Channel("ssSio", onSpeak, onClose)

but i dont know how to use

Maracudos
03-27-2016, 10:29 AM
Save the .lua file into : C:\Users\username\Documents\XenoBot\Scripts.

And In-Game just execute it like all other it's working...

Sheradial
03-27-2016, 11:23 AM
local friends = { -- add targets you want to heal and at what percent
['Draadloos'] = 80,
['Furpan'] = 70
}

Module.New('HEAL', function(mod)
for name, percent in pairs(friends) do
local c = Creature.New(name)
if c:isOnScreen() then
if c:HealthPercent() <= percent then
Self.Say('exura sio "' .. name)
break
end
end
end
mod:Delay(500)
end)


Save this as sio.lua in Xenobot/Scripts
Configure and add the people you want it to sio

Inject Xenobot into Tibia. log in your character, right click on yourself and go to Scripts. Select sio.lua and click Execute Script.