[SOLVED] Monitor Party Chat Twice
Posted: Fri Oct 07, 2016 8:04 am
Here is my waypoint file. I need multi-monitoring party chat but its working random, I mean when I write "buff" it doesn't working but if i spam that it working sometimes.I need multithread method I don't know much about that so I tried it with writing a function for that. Still same. I need a code for monitoring party chat twice. If I write "buff" it will goes to DruidBuff.xml waypoint file, if I write "Go!" it starts Druid.xml. Thanks
Code: Select all
<?xml version="0.1" encoding="utf-8"?><waypoints>
<onLoad>
function getCD(ID)
local offset = memoryReadRepeat("int", getProc(), GetItemAddress(ID) + addresses.skillRemainingCooldown_offset) or 0
if offset and offset ~= 0 then
return (memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4) or 0)/10
end
return 0
end
function checkMessagesFromParty(_string, _string1, _string2)
eventparty("".._string1.."")
repeat
_string = checkeventparty("".._string1.."", "".._string2.."")
until _string
return true
end
repeat
player:update();
RoMScript("TargetUnit('raid1');");
RoMScript("FollowUnit('raid1');");
checkMessagesFromParty(a, "nick", "Go!")
checkMessagesFromParty(b, "nick", "buff")
until a or b
if a then
RoMScript("UseAction(1)")
yrest(100)
loadPaths("Druid");
elseif b then
sendPartyChat('Buffing...')
yrest(100)
loadPaths("DruidBuff");
end
</onLoad>
</waypoints>