API question regarding public encounters

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
radulfizz
Posts: 19
Joined: Thu Sep 23, 2010 7:09 am

API question regarding public encounters

#1 Post by radulfizz » Sun Nov 27, 2011 6:08 am

Hey all,

just wondering if there's a way to figure out the state of one of those public events (like dalanis pearl events etc)
or the time left on the timer.

Been browsing through the list of API functions and the code of the old Tonk manager, but to no real avail.

There is a function

Code: Select all

PublicEncounterFrame_RetainTime()
in the API, that sounds like having something to do with it,
but i couldnt get it to cooperate.


Any input appreciated.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: API question regarding public encounters

#2 Post by rock5 » Sun Nov 27, 2011 8:13 am

That function doesn't seem to do much. Here it is.

Code: Select all

function PublicEncounterFrame_RetainTime(this)
	this.state = 1;	
	this.RetainTime = 15;
end
Not sure what 'this' is.

The only place I see it used is in the PEF onevent function

Code: Select all

	if( event == "PE_SUCCESS" or event == "PE_FAILED") then  --������Ȧ��\�Υ��ѵ���
		local Index = arg1;
		if( Index >=1 and Index <= 10) then
			local obj = getglobal("PEFs_Item"..Index);
			PublicEncounterFrame_RetainTime(obj);
		end
	end
I still don't know what to make of it.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests