zze
-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by zze
-
-
I am trying to get the bots logic to loop through a little better in the sense of checking itself after each fight,
I would like to have it stop itself after each fight for check of (do I have a pet, is my hp/mp above X %) that kinda thing
so far I've tried something like
internal void Rotation() { while (_running) { try { if (!ObjectManager.Me.IsDeadMe) { if (!ObjectManager.Pet.IsAlive) { PSpawn(); //Pet spawner return; } Buff(); if (Fight.InFight && ObjectManager.Me.Target > 0) { Pull(); CombatRotation(); } .....................
which seems to help but not quite full proof, so just wondering is there a better way to basically have it reinitialize, or just have a section of code it executes after it exits combat each time ?
-
33 minutes ago, fantasia said:
Maybe you use Sleep somewhere that blocks the code from running (not sure if it would block the pathfinding from running its code).
Maybe you need to enclose your buff and combat code in a "if (!ObjectManager.Me.IsDeadMe)".
That is the only 2 things I can come up with that could possibly affect it.
after messing around with it more found was just the area desolace being werid with pathing after i died :3 now its working ?
if (!ObjectManager.Me.IsMounted && ItemsManager.GetItemCountById(6265) <= 8 && ObjectManager.Target.HealthPercent <= 15) { DrainSoul.Launch(); System.Threading.Thread.Sleep(700); return; }
thank you very much for you help ?
-
its something with the fightclass forsure, without it or with normal xml one it works ? think its just my hacked together thing thats breaking it for some reason
-
next silly question is, how do i get the the bot to path back to the body after it dies? currently just stands still after death :<
-
3 minutes ago, fantasia said:
I have not tried this, but I think this would work: ItemsManager.GetItemCountById(6265) <= 10
HasItemById is just a bool (true/false if we have it or not)
❤️ thank you ?
-
hello, trying to do a warlock fightclass, and one thing i am working on is trying to have it drain soul shards when im getting low...
I tried
if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(6265) && ObjectManager.Target.HealthPercent <= 10) { // drain soul }
works but only checks for one shard... so then tried
if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(6265) <= 10 && ObjectManager.Target.HealthPercent <= 10) { // drain soul }
but doesn't seem to like the idea of stacks... also tried ItemsManager.HasItemStacksById but dont think that exists ?
any ideas?
having trouble getting to the bot to loop in the way I want...
in Developers assistance
Posted
its not after the fight but seems to have fixed it just carrying out to the next target without resummoning ?