Enabling new race/class combinations for bots
On the server I'm working on I have enabled new race/class combinations for players that I thought always should have existed on live, but when I was testing my bots, they weren't reflected on them. So after some Googling I didn't find much to go on as far as enabling new race/class combinations.
That's when I turned to the code in c:/EQ/Source/zone/bots.cpp. Just as a warning, don't change anything else. If you accidently delete a chunk then exit without saving and start over. This code tells the bots how to function and one wrong character in it and it could completely break your bots. I scrolled down to find the following: Quote:
You'll notice shaman, beastlord and berserker aren't listed here. It's because they're not playable by default. To enable them simply add them to each race. On my server humans will be able to be any class, so mine looks like this Quote:
Once you've added the classes to each race and feel happy with it you'll need to recompile zone and copy the file over. If you don't feel comfortable editing code yet, do what I did and just look it over without editing it. I really have minimal knowledge of this kind of scripting so I don't feel comfortable writing new script, but this process I worked for me. If anyone has anything to add, maybe with more experience, then please do. |
You may also want to back up bots.cpp before you go changing it just to be safe.
|
A few things about customizing that you may want to do...
If you make a mistake, you can always revert a file to the base copy. But, doing so will lose any changes that you've made. Also, if the file that you are making is updated, and if you want to stay up-to-date, you will need to learn how to incorporate those changes. - Consider putting remarks in your personal code to 'remind' you as to why you did something. - Either keep a 'diff' of the file(s) that you modify, or keep a unified 'diff' of the modified source code. (This will make updating your server a little easier and keep those 'oops!' moments from happening.) |
All times are GMT -4. The time now is 08:30 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.