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

[Plugin] MaxGame Time

emc

New Member
Joined
Jun 15, 2012
Messages
190
Reaction score
3
What does this do?
Restarts the game after X seconds.

Setup
Extract to your plugins folder.

Configuration
Edit the ./Plugins/MaxGame/config.txt file to configure:
Line1: Time (in seconds)

You need to restart DB for the config changes to take effect.

Basic math
  1. 60 seconds in 1 minute
  2. 60 minutes in 1 hour
  3. 60*x to run for x minutes.
  4. 3600*x to run for x hours

[table="width: 500, class: grid, align: left"]
[tr]
[td]File[/td]
[td]Version[/td]
[/tr]
[tr]
[td]View attachment MaxGame-1.0.zip[/td]
[td]1.0[/td]
[/tr]
[/table]


This plugin was a request.
 
That is one way to do it but why not add 2 new events

GameEvents.OnGameJoined += new EventHandler<EventArgs>(GameEvents_OnGameJoin);
GameEvents.OnGameLeft += new EventHandler<EventArgs>(GameEvents_OnGameLeft);
 
That is one way to do it but why not add 2 new events

GameEvents.OnGameJoined += new EventHandler<EventArgs>(GameEvents_OnGameJoin);
GameEvents.OnGameLeft += new EventHandler<EventArgs>(GameEvents_OnGameLeft);


I don't follow, what would I do in those events?
 
does not work!!!!i finished the run in 40secs and when i got in the next run in 60 secs it ended the game!!!
 
does not work!!!!i finished the run in 40secs and when i got in the next run in 60 secs it ended the game!!!

Can you post your config settings? If you set the maxtime to 60, then the game will end in 60seconds.
 
GameEvents.OnGameJoined += new EventHandler<EventArgs>(GameEvents_OnGameJoin);
GameEvents.OnGameLeft += new EventHandler<EventArgs>(GameEvents_OnGameLeft);

does this work for your in current version ? The doesnt seem to have this implemented from the beta :(. So this doesnt work. Well this is just for me. Anyway. I dont know how this works for anybody without doing anything with the profile. It trys to continue old profile for me.
 
10800=seconds?

Yeah, thats 10800 seconds, which is 3hrs.

The person requested didn't give me a clear picture on what they wanted, just that the game should restart and create a new game. If you think of some improvements, let me know.
 
GameEvents.OnGameJoined += new EventHandler<EventArgs>(GameEvents_OnGameJoin);
GameEvents.OnGameLeft += new EventHandler<EventArgs>(GameEvents_OnGameLeft);

does this work for your in current version ? The doesnt seem to have this implemented from the beta :(. So this doesnt work. Well this is just for me. Anyway. I dont know how this works for anybody without doing anything with the profile. It trys to continue old profile for me.

Not sure, I didn't use the gamejoined and left events.
 
Yeah, thats 10800 seconds, which is 3hrs.

The person requested didn't give me a clear picture on what they wanted, just that the game should restart and create a new game. If you think of some improvements, let me know.

the problem i see is you lose alot of gph when just loging out. it takes 10sec to do so i don't know why you would restart it after 3h. however, if it would log out instantly of the game to boost your gph like does with the immortal bot then this would be an improvement to db.
 
] [Icool's Sarkoth farm helper v0.1] Disabeling KillMonsters & PickupLoot
[23:11:06.974 N] MaxGame: Game will restart in 00:05:00
[23:13:13.185 N] Path with 64 hops received (partial: True)
[23:14:22.002 N] Path with 64 hops received (partial: True)
[23:16:07.207 N] MaxGame: Restarting game.
[23:16:11.226 N] Creating new game, Params: <Act:A1 Difficulty:Inferno Quest:72095 QuestStep:51 ResumeFromSave:True IsPrivate:True>

At the point where it creates new game we need the plugin to reload the profile from the start rather than 'ResumeFromSave' , is this possible?
 
I am not sure I will have to check. Let me ask you in the above scenario why are you restarting in 5min? Is the bot stuck? What is going on there?
 
Bot sometimes gets stuck salvaging he cant quite talk to the blacksmith so it just gets jammed there. Also sometimes the bot ends up at the gates to town , not quite sure what happens at that one probably due to a death!
 
Okay my next question is, why are you resuming from save? If you change ResumeFromSave:False, the profile will start from the beginning rather than continuing in the middle.
 
becuase if it opens up a new game and continues from the middle it seems to run into the same wall, however if i manually stop and start the profile so that it gos from the beginning it seems to work fine.

Thanks for the plugin and help by the way!
 
Back
Top