Phbot Scripts [patched] -

If a bot doesn't buy potions, ensure the items are correctly configured in the Town tab and that the character has enough gold.

tick(): snapshot = readWorld() if snapshot.player.dead: handleRespawn(); return if needsImmediateHeal(snapshot): performHeal(); return target = selectTarget(snapshot.creatures) if target: if inRange(target): attack(target) else: moveTowards(target) else: patrolNextWaypoint() phbot scripts