IPB

Welcome Guest ( Log In | Register )

 
 Questions about detecting game state (skapi.plig/.hwndAC)
Morkai
post Mar 8 2010, 04:55 PM
Post #1


Crazy Poster


Group: Members
Posts: 136
Joined: 19-September 03
From: St Louis, MO
Member No.: 1,499



Hi everyone! I'm working on a macro project again, and I'm a little confused about a few things, but haven't yet resubscribed to be able to test.

Would you guys be so kind as to correct me if necessary and fill in my blanks? This is how I'm thinking it works:

1. .plig starts at 0 as well as .hwndAC
2. when client starts, .hwndAC then has some value
3. .plig = 1 only after client connects, patches, and is sitting at the character login screen
4. .plig = 2, OnLogon, OnStartPortalSelf and OnStart3D all fire when a character begins to enter the world
5. .plig = 3, OnEndPortalSelf fire when character fully materializes
6. .plig = 2, OnStartPortalSelf fire when entering portals and using recalls
7. .plig = 2, OnStartPortalSelf and OnEnd3D fire when logging character out of game world, .plig = 1 when fully back to login screen
8. OnDisconnect fires when connection is lost, .plig = ???, but .hwndAC is still some value
9. When game client crashes, no events fire and .plig remains unchanged, but .hwndAC becomes 0
10. When game is Alt+F4'd, same as #9?
11. If the game is restarted, swfilter reconnects to my existing instance of skapi?

If it makes any difference, my macro is a compiled Active-X COM DLL. I'm using a short piece of VBScript to instantiate my class and kick things off, then grabbing a reference to the skapi using the getskapi.skapi method.
Go to the top of the page
 
+
GKusnick
post Mar 8 2010, 10:59 PM
Post #2


Forum Master


Group: Members
Posts: 747
Joined: 27-April 03
From: Seattle
Member No.: 244



It all sounds plausible, but you'll probably want to verify all that by experimentation.


--------------------
-- Greg
Go to the top of the page
 
+


 



Lo-Fi Version Time is now: 6th September 2010 - 03:02 AM