it works fantastic...But one thing I'd like to improve it.
<<<<<<<<<<<<if Out of Combat then
BodyStatus:SetText("6")
else
count=0; -- initialize variable
-- define the AddCallback function
function AddCallback(object, event, callback)
if (object[event] == nil) then
object[event] = callback;
else
if (type(object[event]) == "table") then
table.insert(object[event], callback);
else
object[event] = {object[event], callback};
end
end
return callback;
end
ChatMonitor = Turbine.Chat;
ChatReceived = function(f, args)
local msg = args.Message;
<<<<<<<<<<<<
if(args.ChatType == Turbine.ChatType.PlayerCombat) then
if string.find (args.Message,"Verbesserter Gnadenschuss",1,true)~=nil then
BodyStatus:SetText("6")
else
if killcount==0 then
do_update()
else
if string.find (args.Message,"Verbesserter Schneller Bogen",1,true)~=nil then
killcount=killcount-0.333
do_update()
end
end
end
end
end
AddCallback(Turbine.Chat, "Received", ChatReceived)
can you help me there too?
have a nice day
elliss11
|