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

[Plugin] Leave Game on Death and after X Seconds

Eggator

New Member
Joined
Jun 11, 2012
Messages
40
Reaction score
0
Hey Guys, just wrote this Plugin to help me getting my bot beeing full afkable and just wanted to share this with u.

What it does
You edit the LeaveGame.cs to fit to your needs. You have to fill in the full path to the profile ure using and the maximum game time. This Plugin will then Leave the Game after u reached the maximum Game time and reset the Profile. It also leaves the game if the Player dies. Im using this to avoid Adrias Hut Bug on Sarkoth. It also helped me fix some issues where i got stuck in game, but still was running around. So Unstucker wasnt able to get the job done.

What to do
1. Download "LeaveGame.zip" from attachments
2. Extract the Zip File "LeaveGame.zip" and put the content into your Plugin folder.
3. Edit the LeaveGame.cs to fit to your needs. leaveGameSeconds is your max game time in seconds - I recomment 120 Seconds for Sarkoth Runs if u loot sell salvage 50 Secs if u dont.
Code:
//Has to be edited to fit your needs
private static int leaveGameSeconds = 50;
            
//Insert your Profile Path here
private static string profilePath = @"C:\Users\Eggat\Desktop\Demonbuddy 1.0.607.146\Profiles\Carguy's Ultimate DH Sarkoth v1.2 - 12ms.xml";
4. Activate Plugin in your Plugin List

What am I using this with
I use this Plugin in Combination with:
Carguy's Ultimate DH Sarkoth Profile v1.2
Icool's Sarkoth farm helper v0.1
Demon Monitor
NotificationOKClick v0.7

Big Thanks to the creators of this Profiles & Plugins

Final Words
I tested this plugin one night on three accounts and it worked fine. Was able to fully afk for 7 hours on three accounts, but its still on the testing Phase. Ill deliver Updates as soon as i find some bugs, but more testers means more reliability, so feel free to report bugs, with Diagnostic Log attached.
 

Attachments

  • Plugin.webp
    Plugin.webp
    16.2 KB · Views: 534
  • LeaveGame.zip
    LeaveGame.zip
    1.5 KB · Views: 1,058
  • LeaveGameV02.cs
    LeaveGameV02.cs
    6.7 KB · Views: 327
Last edited:
thanks buddy,this is what exactly i am looking for a long time ! gonna test it now !
 
So far so good, will leave more feedback after i leave my bot in several hours. thanks!

Updated:
Everything works excellent except with two things:

1. Something it doesn't summon ferret in the cellar
2. It's trying to do a spell/skill after tping in the camp before leaving the game.
3. and it still goes to adrias hut

that's all i saw from now, will feedback if i see something wrong.
I love this plugins its better than unstucker at this moment and i am doing great amount of gph.

Thanks bro!
 
Last edited:
Thx for the feedback. Adras hut bug only appeared for me when dieing in cellar and trying to revive, since i leave there, it should not be longer a problem, but well, if u notice it maybe u can describe the circumstances. To 1. Which Profile do you use ? If u use the 1.2 Version of Carguys use my attached one(added some trap feature too, ( requires you to have traps with stun) ) or edit this part yourself:
Code:
		<!-- Inserting waitTimer might fix the not spawning ferrets bug-->
		<WaitTimer questId="1" waitTime="500" />
		<!-- Summon ferrets -->
If it still appears increase the waitTime while 1000 being 1 Second

Onto 3. Dunno what hes doing in town for 2-3 secs right now, but at the moment this seems like a bug in .146 so it cannot be fixed. Keep an eye on Carguys Thread, maybe he finds a solution for this.

So far so good, will leave more feedback after i leave my bot in several hours. thanks!

Updated:
Everything works excellent except with two things:

1. Something it doesn't summon ferret in the cellar
2. It's trying to do a spell/skill after tping in the camp before leaving the game.
3. and it still goes to adrias hut

that's all i saw from now, will feedback if i see something wrong.
I love this plugins its better than unstucker at this moment and i am doing great amount of gph.

Thanks bro!
 

Attachments

This time bot goes to adris hut after selling items

and after tranfering rare items to stash it leaves the game and resume them sell magic items.
 
Im not having any issues with adrias hut anymore. plz attach your diagnostic log to see what happens there.

If the plugin leaves while selling or stashing, adjust ur leave timer. U should be able to do a full game with kill sarkoth, stash, sell, selvage in your time. Otherwise it doesnt make sense.
 
Could you please update it to leave game after 3 deaths? Thank you very much
 
hey, yeah, u can test this one. U can edit your death counter to whatever u want.

Code:
            //Edit your death count after which the plugin leaves the game
            private static int maxDeaths = 3;
 

Attachments

I was just editing similar thing to your new attach. Anyways, thank you very much.
 
seems not to always works (i'm on DB 155)

I have an issue where sometimes a bot gets stuck trying to enter the cellar when its open (its spams "interacting with object blah" over and over). Plugin is enabled and i'm waiting for it to leave the game and doesn't.
 
where can i change the state of death...i will that the bot log out after 3 death...but i dont find this part :(
 
where can i change the state of death...i will that the bot log out after 3 death...but i dont find this part :(
//Edit your death count after which the plugin leaves the game
private static int maxDeaths = 1;

Its only possible in the Version 0.2 attached to this post.


how do u edit the time from 50 to 150???

//Has to be edited to fit your needs
private static int leaveGameSeconds = 150;
 

Attachments

Could you add an option where it will use the town portal first before it leaves the game? Would be great! Other than that it seems to be working just fine. Good work.
 
Back
Top