New Character Items, Default Status, and Rule Sets
Thanks in advance to anyone who reads this and helps with these Issues.
Server is running and able to login via eqemulator login server I would like to change a few things and can't seam to find where to do it and search didn't seam to find my exact answer. Although Forum search did get my up and running with almost no posting. Issue 1: NEW "account" created on my server when people log in via EQEmulato login server are set to a default "status" in the "account" table of 20. I would like new characters to not have access commands like #level #goto etc.. I could just set the "access" in the "commads" table but I would like to have new accounts have a Default "status" of 0 Issue 2: What file or Table do I edit to make it so that new characters are created with different items. I would like new characters to be created with more bags. I am sure I can handle the fine details editing the database, file, or source and recompiling. Issue 3: all #bot commands when status is set are available to the player. Is it possible to restrict some of the commands and allows other Example Player can #bot spawn <bot name> But not #bot Create <botname> <Class> <Race> <Gender> Reason is latter I will be creating an NPC/quest that will allow player to create 2 bots but in the mean time I am ok with manually making them for my friends in the "bots" table. Issue 4: In peq database I see table "rule_values" has 2 rows called Character:RestRegenPercent Character:RestRegenTimeToActivate I notice the note reads Time in seconds for rest state regen to kick in. but rule set 1(default) is defaulted to 30000 While rule set 10(EQEmu_Default) is wet to 30 is this a typo When setting Character:RestRegenPercent to 10 and Character:RestRegenTimeToActivate to 30(seconds) or 30000(miliseconds) I tried it a few differant ways just in case 30000 was a typo. Never the less my issue is no matter what Character:RestRegenTimeToActivate I set the regen starts as soon as the character sits down instead of waiting the value. Related Issue: How do I change what ruleset is loaded when I boot server would like to have a custom rule set for double exp ir free mana days stuff like that but I can't seam to find where to change what ruleset is loaded when booting server. I managed to get my server up and running by useing http://www.eqemulator.net/wiki/wikka...rverSetupGuide I omitted the outdated Build Database section and used the the database from http://www.peqtgc.com/releases/ I then patched in some old SQL files from this guide to get bots working http://www.eqemulator.org/forums/sho...highlight=bots I then ran the old drop_system.sql to address a zone start and stop issue. |
1. Find this in your eqemu_config.xml in your server folder:
Code:
<defaultstatus>20</defaultstatus> 2. Starting_items is the table that you want to edit to change what items players start with. 3. I assume you could add a command entry for the command in the commands table. 4. I haven't looked at the different rulesets, as I only use ruleset 1. I apologize for not being very helpful, I just thought I would answer what I could. |
Quote:
Just need to figure out the regen thing and if its possible to restrict specific bot commands. |
There are always many ways to accomplish things with code, here is my solution for bots:
Note, dont use this diff, I have edited it just to give you an idea, as I have actually removed much more than just create... Code:
diff --git a/zone/bot.cpp b/zone/bot.cpp Code:
quest::createBot("$name''s Fighter", "Fighter Bot",1,1,1,0); bool createBot(const char *name, const char *lastname, uint8 level, uint16 race, uint8 botclass, uint8 gender); |
I don't think he wanted to delete the commands, I believe he wanted a status on them.
|
To better clarify my intention for bots is that for the current time being I don't want common users to be able to use ALL bot commands, but I still will need them to work for Say GM/Admins.
can I for example add a row to 'commands' like command = bot create access = 255 ? if that will work can I still make quest scripts that till create a bot for the player? |
Sorry bout that, you can use this method that keeps everything but just adds a rule:
in zone/bot.cpp Code:
AT Code:
if(c->Admin() < BotMinStatus) { in zone/bot.cpp Code:
if(!strcasecmp(sep->arg[1], "create")) { Code:
AT-- Then just create your sql rule: Code:
INSERT INTO rule_values VALUES ('1', 'Bots:BotMinStatus', '255', 'Min status to access various customized bot commands.'); |
All times are GMT -4. The time now is 09:24 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.