PDA

View Full Version : Manual playing



zajcu
01-09-2016, 06:12 AM
I would like to see something similar to tibia flash client. Is possible to add some spells/runes, ring equiper and other very usefull scripts like direct on the screen with icons?

Second thing: now we can setup to show loot when something worth is inside and it ignore other bodies if configure well. In loot list I would like to see whole loot in green and just some of them in red, do you understund what I mean ? :)

XtrmJosh
01-10-2016, 04:30 AM
Do you mean you want the loot list HUD to show up green when certain items are in it? You can configure this manually from the HUD dialog by clicking advanced with the recent loot hud item selected.

zajcu
01-10-2016, 06:46 AM
07:44 Loot of a terramite: 8 gold coins, terramite eggs (all green)

"07:45 Loot of a terramite: 8 gold coins, terramite eggs" this part i would like to stay green, tower shield << certain items i would like to see at diffrent colour like red. Do you get my point? :)

Snurq
01-13-2016, 03:48 PM
It is in lua "examples" in Xenobot folder

Script named "recentLootChanell"



--[[
This is a XenoBot example script, intended to
teach new users about the scripting API and
act as script that is usable in actual play.

recentLootChannel.lua - highlights lootmessages
that contain items from a list

** DO NOT EDIT THIS FILE. INSTEAD, COPY IT TO
"Documents\XenoBot\Scripts" AND EDIT THE COPY. **
]]--

local items = {"fire sword", "golden armor"} --a list that stores all itemnames that should be highlighted

--this is a function that is triggered on user input
function onSpeak(channel, text)
--this says out loud everything you type into the custom-made channel just like any other native channel would do
Self.Say(text)
end

function onClose(channel)
--this prints a message into the server log channel to inform you that the custom-made channel was closed
print(channel .. " was closed.")
end

--this opens a custom-made channel window with the name Recent Loot and the callbacks onSpeak and onClose
local channel = Channel.New("Recent Loot", onSpeak, onClose)

--this is a function that is triggered by every new appearing lootmessage
function lootProxy(proxy, message)
local creature = string.match(message, "(.+):") --this stores the first part of the lootmessage "Loot of <monster>"
local loot = string.match(message, ": (.+)") --this stores everything after the first part of the lootmessage "a gold coin, meat, 2 worms"

local itemfound = false --we set this value false to see if it changes after the following loop

--this loops through every value in the table items from above
for _, item in ipairs(items) do
--this checks if any of the items within the items table matches to an item in the lootmessage, and sets itemfound true if so
if (loot:lower():match(item:lower())) then
itemfound = true
break --we break (stop) the loop as we have already found a match
end
end

--this checks if an item was found, and prints an orange lootmessage into the channel if so
if (itemfound) then
channel:SendOrangeMessage(creature, loot)
--this turns true for every other condition (e.g. no item was found), and prints a yellow lootmessage into the channel if so
else
channel:SendYellowMessage(creature, loot)
end
end

--this continuously waits for a new lootmessage to appear, executing the function lootProxy upon receiving
LootMessageProxy.OnReceive("lootProxy", lootProxy)


If u want HUD with highligted items use the Recent Loot from HUD
http://i.imgur.com/vCnW65C.jpg