What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

How to check if character is fully loaded into the game?

Myster2

New Member
Joined
Aug 18, 2015
Messages
26
Reaction score
0
Hello,

I'm trying to setup a plugin to run with the scheduler and the auto start command. I'm noticing the plugin is running before my character is in the game causing the plugin to fail. How do i check do see if my character is fully loaded in the game first?

I have a work around in that i can just start the plugin with a 2 minute sleep timer or something but I am wondering if there is a proper way to do this?
 
Hello,

I'm trying to setup a plugin to run with the scheduler and the auto start command. I'm noticing the plugin is running before my character is in the game causing the plugin to fail. How do i check do see if my character is fully loaded in the game first?

I have a work around in that i can just start the plugin with a 2 minute sleep timer or something but I am wondering if there is a proper way to do this?

Try this:

Code:
            // Wait until character is Ingame
            Log("Checking if character is Ingame ...");
            while (me == null || gameState != GameState.Ingame)
            {
                Thread.Sleep(100);
            }
 
Back
Top