Commit Graph

140 Commits

Author SHA1 Message Date
Yunfan Li
4a00c954ed RPG update travel flight status (#1445) 2025-07-23 23:37:41 +08:00
kadeshar
3f39a57fe2 Merge pull request #1426 from NoxMax/delete-all-the-orphans
Fix: DeleteRandomBotAccounts sometimes leaves orphans. Also fix accumulating orphan pet data in DB
2025-07-06 09:51:31 +02:00
NoxMax
78f4bd6d29 Ensuring data orphans are deleted 2025-07-05 18:59:30 -06:00
Yunfan Li
f0c6aaff0b Random bots gear related enhancements 2025-07-05 20:29:34 +08:00
kadeshar
c24b7a7bb3 - Added disabled without real player feature (#1335) 2025-05-24 20:51:44 +08:00
NoxMax
b5426152fb Expose zone level brackets to user configuration (#1309)
* Make variable name more intuitive

* Make variable name more intuitive

* Make variable name more intuitive and clarify function

* Update playerbots.conf.dist

* Update PlayerbotAIConfig.cpp

* Update PlayerbotAIConfig.h

* Update RandomPlayerbotMgr.cpp

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist
2025-05-18 19:31:32 +08:00
NoxMax
aaad67f7b9 Clarify EnableNewRpgStrategy relation to RandomBotTeleLowerLevel and RandomBotTeleHigherLevel, and making them more intuitive (#1294)
* Make variable name more intuitive

* Make variable name more intuitive

* Make variable name more intuitive and clarify function

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Update playerbots.conf.dist
2025-05-16 01:30:58 +02:00
Cryo81
07e4dec70d Warning fix + ilvl function fix (#1210)
* 1 variable order warning fixed
70 unused variable warning fixed

* Fixed GetEquipGearScore function

---------

Co-authored-by: Julien MAS <julien.mas81@gmail.com>
2025-04-20 14:26:42 +08:00
Paolo
7737f9ab72 Add additional trading options (#1186)
* Add addclass bots to trading list, differentiate between buying and selling.

* typos

* Try calling playerguid

* point IsAddclassBot to IsRandomBot

* typo

* Fix through IsAddClassbot

* Working Version

* Minor typos.
2025-04-17 11:52:14 +08:00
Yunfan Li
19447c3914 Enable new rpg strategy by default (#1192)
* Add RandomBotMinLevelChance

* Save mana only for healer

* Disable addclass dk for low level player

* Target selection and debuff cast with less players in group

* Change default rpg strategy and bots count in config

* Logs clean up

* Improve init=auto

* Remove login logs after initialization

* Rndbots stats for quest

* Prediction chase in reach combat

* Poor & Normal items ensurence for init=auto
2025-04-11 20:31:38 +08:00
Yunfan Li
f039e88393 Fix faction count calculation error (#1085)
* Fix faction count on add randombots

Co-authored-by: kadeshar <kadeshar@gmail.com>

* Fix class balance issue with periodic login and logout

---------

Co-authored-by: kadeshar <kadeshar@gmail.com>
2025-03-17 19:40:03 +01:00
Yunfan Li
38912d4a8a Auto do quest feature (new rpg strategy) (#1034)
* New rpg startup speed up and refactor

* New rpg do quest

* Fix invalid height in quest poi

* Add quest accept and reward limitation

* New rpg quest improvement

* Organize quest log, reward quests and fix grind target

* Quest dropped statistic and remove redundant code

* Decrease grind relevance lower than loot

* Fix new rpg drop quest

* Go to reward quest instead of innkeeper when quest completed

* Fix incorrect logic in do quest reward

* Fix reset quests in factory

* Fix crash on grind target value

Co-authored-by: SaW <swerkhoven@outlook.com>

* Fix a minor error in DoCompletedQuest

* Let bots get rid of impossible quests faster

* Increase loot fluency (especially for caster)

* Remove seasonal quests from auto accept

* Enhance quest accept condition check

* Add questgiver check (limit acceptation of quest 7946)

* Questgiver check and localization

* Near npc fix

* Fix quest item report

* Add lowPriorityQuest set for quests can not be done

* Improve gameobjects loot

* Do complete quest

* FIx move far to teleport check

* Accept or reward quest from game objects

* Fix possible crash in rpg game objects

* Fix ChooseNpcOrGameObjectToInteract crash

---------

Co-authored-by: SaW <swerkhoven@outlook.com>
2025-03-14 21:31:33 +08:00
Yunfan Li
fbfcbbcddc EnablePeriodicOnlineOffline config and modify CalculateTotalAccountCount (#1043)
* EnablePeriodicOnlineOffline config

* Add Comments on PeriodicOnlineOfflineRatio
2025-03-01 21:05:43 +08:00
Yunfan Li
14bdc0ec5a Always allow addclass bots login and init (#946)
* Change the way to check addclass bots and allow adding them by characters name

* Always addclass bots login and init

* Comments and message
2025-02-05 12:56:37 +08:00
Yunfan Li
9bbe183763 Improve random accounts creation (#942)
* Duplicate name check and improve name cache

* Sync wait for the first time creation of random bots
2025-02-03 16:39:45 +01:00
Yunfan Li
e571694a88 Reset added rndbots on server restart to automatically apply configuration changes (#913)
* Refactor RandomPlayerbotMgr and delete add value on restart server

* Remove reset tips in conf file
2025-01-26 12:06:29 +01:00
SaW
4e7d00b1a3 BG: restore !bot->IsInWorld() check (#891)
* Update RandomPlayerbotMgr.cpp

* Restore !bot->IsInWorld()
2025-01-22 16:44:44 +01:00
SaW
d3e3372121 BG: Final fix against potential inconsistencies
* Check both bgInstanceCount / bgInstances.size

to help counter against possible inconsistencies

* Final fix against inconsistencies
2025-01-22 14:12:38 +01:00
SaW
c6a332a729 Fix over-queuing in BG's (#887)
* Fix overqueue

* Update RandomPlayerbotMgr.cpp

* Restore if self-bot

* Update RandomPlayerbotMgr.cpp
2025-01-22 10:33:51 +01:00
SaW
be21018f0c Feature: Have bots auto join/start all supported BG's (if enabled) (#877)
* Update RandomPlayerbotMgr.cpp

* Update playerbots.conf.dist

* Update PlayerbotAIConfig.h

* Update PlayerbotAIConfig.cpp

* Update playerbots.conf.dist

* Update playerbots.conf.dist

* Updated information

* Update RandomPlayerbotMgr.cpp

Avoid reverting https://github.com/liyunfan1223/mod-playerbots/pull/870/files

* Update playerbots.conf.dist

set capitals on Random

* Final update on settings documentation

* Update playerbots.conf.dist

* Fix bots loving to do BG's a bit too much

* Final fix bots over-queuing

* pt2 - Limit over-queuing to ~1 instance

Try and prevent over-queuing to a max of 1 instance.

* Add new queue instead of instance if necessary

* Update RandomPlayerbotMgr.cpp

* Final commit

* Update RandomPlayerbotMgr.cpp

* Fix timer

* Updated docu

* Update playerbots.conf.dist

* Update RandomPlayerbotMgr.cpp

Set BgCheckTimer to 45 as it is sufficient.
2025-01-20 14:21:35 +01:00
Yunfan Li
bf4deff717 Fix playerbots database request queue stacking (#870)
* Clear added random bots on server start

* Remove duplicate set login event

* Remove login event value

* Remove deletion of add event value
2025-01-14 20:30:06 +01:00
Yunfan Li
568592f188 Minor fixes to spell and mount init (#863)
* Make summon imp non-temporary

* Remove horse mount from troll

* Set facing to during spell casting

* Allow rpg status command

* Init unarmed skill and fix skill clear

* Cast delay after interrupt spell
2025-01-12 18:03:27 +01:00
bash
b16a44c711 [performance] smart scaling configurable (#834) 2025-01-02 19:02:06 +01:00
Yunfan Li
1c22a9a9ff Add ratio config for alliance and horde rndbots (#818) 2024-12-25 20:42:35 +01:00
Yunfan Li
677ee83e45 Update locs level 2024-12-15 22:30:24 +08:00
Yunfan Li
45629cb3df Starter location collection 2024-12-15 21:36:26 +08:00
Yunfan Li
a91aa3e392 New rpg bug fix that preventing bots from long distance movement 2024-12-15 16:46:44 +08:00
Yunfan Li
9b41798eee Fix get zone id 2024-12-14 22:35:24 +08:00
Yunfan Li
a5d1d7579d EnableNewRpgStrategy switch for initialization 2024-12-14 21:46:33 +08:00
Yunfan Li
2656b2d0d9 Update starter position 2024-12-14 16:23:33 +08:00
Yunfan Li
be71872112 Update far move to prevent invalid movement 2024-12-14 02:33:52 +08:00
Yunfan Li
1f8d0d244c Update starter position 2024-12-14 01:33:39 +08:00
Yunfan Li
a7496b3eb5 Merge branch 'master' into new_rpg_strats 2024-12-13 18:51:55 +08:00
Yunfan Li
0cfae2673f [Crash fix] Fix race condition on BattlegroundData 2024-12-10 20:22:52 +08:00
Yunfan Li
31f82cc322 locsPerLevelCache faction filter 2024-12-08 15:53:46 +08:00
Yunfan Li
98701a6f66 Modify starter position (add flightmaster) 2024-12-08 15:47:34 +08:00
Yunfan Li
87e8c05b20 Innkeeper position and windows compile error 2024-12-03 22:57:39 +08:00
Yunfan
5c3591ae5a Update random bots level stats 2024-12-02 15:28:30 +08:00
Yunfan
5ca7c71920 Logs and rpg status for new rpg strats 2024-12-02 11:48:51 +08:00
Yunfan
bb3328670b Remove redundant logs (set to debug level) 2024-12-02 11:42:31 +08:00
Yunfan Li
0fd894176b [New Rpg] New rpg start up (add GO_GRIND and NEAR_RANDOM status) 2024-11-30 23:48:29 +08:00
bash
eb583de6aa Increased updateInterval booster time (#732)
from botAmounts * 0.13 to 0.15
2024-11-19 00:25:18 +01:00
avirar
7f2ba0ed05 Fixed issue with random bots not respecting RandomBotFixedLevel (#714)
* Update RandomPlayerbotMgr.cpp

Added check during random bot login for RandomBotFixedLevel and set PLAYER_FLAGS_NO_XP_GAIN

* Update RandomPlayerbotMgr.cpp

Removed if from else
2024-11-16 00:36:41 +01:00
bash
a7bcdad65c [performance] bots scale idle fix (#678)
* [performance] bots scale idle fix

* [performance] featureset
2024-11-05 16:05:05 +01:00
Yunfan Li
2f0f8ad496 Set _isBotInitializing if randomBotAutologin=0 (#670) 2024-11-03 16:21:37 +01:00
bash
645bc4948e [performance] side-effect of other bug causes to stay inactive when botAmount min/max not equal 2024-10-30 01:49:42 +00:00
bash
76994ae3c0 [performance] server_and_bot_init_phase_patch1 (#652) 2024-10-29 13:08:46 +01:00
bash
8a9c25c72c [performance] initialize server and bots fase 2024-10-29 10:57:26 +00:00
bash
3cd68c6dec [performance] new baseline (#644) 2024-10-29 01:15:26 +01:00
bash
12be2c9971 Revert "Rewrote scaling, moving away from cmangos solutions"
This reverts commit 62aef235d1.
2024-10-17 17:52:05 +00:00