PDA

View Full Version : Changes to corpse rules


cavedude
01-24-2008, 02:12 AM
With last night's CVS commit (not yet on the downloads page) I made a couple of changes to corpse rules. First, I added the Character:DeathItemLossLevel to define when a player will leave items on a corpse. That way, you can define a level for XP loss, and a level for item loss and they no longer need to be the same.

As for the actual LeaveCorpses and LeaveNakedCorpses rules, I adjusted them to allow for more options. So, once the build comes down, they will look like this:

Both rules are true - You will leave a naked corpse up until your DeathItemLossLevel at which point you will leave a corpse with items. (This is the Live like option)

LeaveCorpses true, LeaveNakedCorpses false - You won't leave any corpses up until your itemloss level at which point you will leave a corpse with items. (This is the option for those who want corpses, but don't want their db filled up with naked noob corpses)

LeaveCorpses false, LeaveNakedCorpses true - You will always leave a naked corpse. (DeathItemLossLevel is ignored)

Both rules false - Corpse system is disabled and you will never leave any sort of corpse (this is the default setting if no rule value is set)

This has changed a lot from the current system so I wanted to give you all a heads up, as you will most certainly need to adjust your rule values if you are using the corpse system.

Of course, you can get creative and if you wanted say a system that always leaves corpses with items but never takes XP off the player, then set LeaveCorpses to true, DeathItemLossLevel to 1, and DeathExpLossLevel to a level higher than your server's max, etc. Things like that would be cool on a PVP server.

KingMort
02-09-2008, 07:13 AM
Only one problem, not sure if this has already been fixed, but if someone dies in a Dynamic zone, and the zone is empty after that, the corpses rot timer will stay frozen in time.. forever.. and you can't use the Shadowrest mob to get it because it's stuck in a dynamic zone...

WildcardX
02-09-2008, 07:39 AM
Only one problem, not sure if this has already been fixed, but if someone dies in a Dynamic zone, and the zone is empty after that, the corpses rot timer will stay frozen in time.. forever.. and you can't use the Shadowrest mob to get it because it's stuck in a dynamic zone...

This isn't as much a bug in search of a fix. It's just the nature of a dynamic zone. If there isn't at least one player in a dynamic zone, the zone will close.

I agree that its inconvenient, but it is how a dynamic zone operates.

ChaosSlayer
02-09-2008, 07:48 AM
actuly there may by more problem to it.
last night my lev 1 char got killed in Qeynos (who is also bounded in Qeynos) which was runign as dymanic - and the game prety much got frozen at this point. The char was no longer in zone, so zone shuted itself down, but the zone refuse to autoboot in order to respawn him....

could have been just a weird crash, but decided to post this just in case

So_1337
02-09-2008, 08:41 AM
I thought that's a long-standing bug that occurs when you die in the zone that you were killed?

Or maybe that was fixed, and I missed it.

cavedude
02-09-2008, 09:38 AM
Players die in their bound zone on TGC all the time with no issue.

Occasionally, we get some weird occurrences, but for the most point the system is pretty solid.

KingMort
02-09-2008, 10:31 AM
Would you be able to set up some code , to first see what your rot time is, then make sure that the body rots in that set time, no matter where it is...

How hard would that be to do ? I'm not a coder but .

trevius
02-10-2008, 12:48 PM
I wouldn't mind setting my server to leave no corpses up until say level 15, and then leave a naked corpse for all levels over 15.

It looks like you can set it to start creating corpses at a specified level, but only corpses with items on them. Is it possible to do something similar for naked corpses?

The only reason to leave a naked corpse is so people can rez. Most characters under 15 would never bother with rez, so there isn't much reason to have corpses for them. But, I don't want to leave corpses with items, just because that will cause more GM intervention to recover bugged corpses or whatever.

No huge deal. Just a thought.

Thanks

*Edit* Woah, I got a quest writer title! Woot!

ven-elexver
03-03-2008, 10:46 AM
im not sure where to find the code where i enter true or false for corpses my server dont leave a corpse but in pvp with loot items its hard to do with no corpse. i code in useing mysql most of the time . so a code i could put in it would so i only need to add the lvl to start and true to corpse with items

trevius
03-03-2008, 11:29 AM
If you use Navicat at all, you can find them in the table for rulesets and easily turn them on and adjust the settings from there. Just set the rules you want to use from 0 to 1 in the left column and change the setting for the rule if you want in the right column. The middle column is the name of the rule. You can do it via mysql, but I find it much easier to edit them in Navicat.

ven-elexver
03-03-2008, 12:49 PM
yea i found that but have no rule set but looked at what you was saying what name would that be player corpse player corpses, or corpse,corpses. im thinking if i set di ti 1 type corpse true that may work but i dont have a list like you was saying

ven-elexver
03-03-2008, 01:05 PM
Sorry had like 10 things going on at once looked at what wrote could not read it lol. what i was saying is that i use navicat but under rule_set i have nothing i just changed it to id 1 name peq. not sure if thats what i need to do . But under Rule_Values i still have no list to trun on but i can put in ruleset 1 rulename ____? Rule_Value _True?

ven-elexver
03-03-2008, 01:30 PM
ok i did that put in 1 peq then did id 1 corpse true it did somethin lol ill have to restart and see, cross fingers

ven-elexver
03-05-2008, 11:50 AM
nope still have no corpse left at death?

trevius
03-05-2008, 12:59 PM
This isn't a support forum. You really should be posting this in a support forum if you want to get good responses in a timely manor and not get yelled at.

You can find a list of all current rules a few posts down from this one here:

http://www.eqemulator.net/forums/showthread.php?t=24433

Then in your rule sets, you want the ID set to 1 and the name set to Default which is how it should have been set when you setup your server if you did it properly.

You can tell if the rules are set properly, because you will see them load up when you first start up your server in your world.exe window before it connects to the login server.

If you are still having problems, you can set your account status to 250 and that will give you access to the #rules commands. You can use those commands to enable or change rules from in game, but you need to restart your server for them to take effect.

If you still have anymore questions, I suggest creating a new post in the support forums and not in development. There are reasons for having all of the sections in the forums that they have setup. This system works and is well explained here. Your issue is not with these rules, it is with getting your rules setup properly.

ven-elexver
03-06-2008, 10:08 AM
ty for your time and sorry for the loc of post i did not look only searched the word corpse and ended up here under cavedudes corpse post . And when i seen cavedude i thought he could help with peq DB set up . I also posted on his site but no replys on it but i think you got it for me TY once more

Arex
03-17-2008, 12:13 AM
Hey guys, i have this information on my rule_values table, but corpses arent leaving in the floor when u die, any idea what is wrong?


+------------+------------------------------------+------------+
| ruleset_id | rule_name | rule_value |
+------------+------------------------------------+------------+
| 0 | Character:MaxLevel | 65 |
| 0 | Character:DeathExpLossLevel | 6 |
| 0 | Character:LeaveCorpses | false |
| 0 | Character:CorpseDecayTimeMS | 10800000 |
| 0 | Character:LeaveNakedCorpses | true |
| 0 | Character:ExpMultiplier | 1.0 |
| 0 | Character:AutosaveIntervalS | 300 |
| 0 | Character:HPRegenMultiplier | 100 |
| 0 | Character:ManaRegenMultiplier | 100 |
| 0 | Character:EnduranceRegenMultiplier | 100 |
| 0 | Guild:MaxMembers | 2048 |
| 0 | Skills:MaxTrainTradeskills | 21 |
| 0 | Pets:AttackCommandRange | 150 |
| 0 | GM:MinStatusToZoneAnywhere | 250 |
| 0 | World:ZoneAutobootTimeoutMS | 60000 |
| 0 | World:ClientKeepaliveTimeoutMS | 65000 |
| 0 | Spells:SpellAggroModifier | 100 |
| 0 | Spells:BardSpellAggroMod | 3 |
| 0 | Spells:PetSpellAggroMod | 10 |
| 0 | Combat:BaseCritChance | 0.0 |
| 0 | Combat:WarBerBaseCritChance | 0.03 |
| 0 | Combat:BerserkBaseCritChance | 0.06 |
| 0 | Combat:NPCBashKickLevel | 6 |
+------------+------------------------------------+------------+

Arex
03-17-2008, 01:14 AM
could it to be related with variables table, i have in this table "leavecorpses" set to "1"?

cavedude
03-17-2008, 01:44 AM
Is the ruleset_id in rule_sets set to 0 as well?

Arex
03-17-2008, 05:00 AM
hey cavedude, what u mean with set to 0 ruleset_id in rule_sets? I only have this information on rule_sets table:


+------------+---------+
| ruleset_id | name |
+------------+---------+
| 0 | default |
| 2 | default |
| 3 | default |
+------------+---------+

Ven-elexver1
04-05-2008, 07:06 PM
sweet! TY.

ChaosSlayerZ
07-01-2009, 12:44 PM
LeaveCorpses false, LeaveNakedCorpses true - You will always leave a naked corpse. (DeathItemLossLevel is ignored)
.

I tested this last night- by accident (acidently nuked myself =) - and this does not hold true.

I have set DeathItemLossLevel to 0 , and LeaveNakedCorpses true

yet when I died, all my items remained on the corpse

also i think these rules kind of overlap:

You should be able to drop leavenakedcorpse rule and use DeathItemLossLevel (0) as "die, leave corpse, but never leave items"

Shendare
07-01-2009, 12:48 PM
It sounds like DeathItemLossLevel refers to the minimum character level at which items will be left on the corpse when you die, so setting it to 0 would mean items are left on corpses at all levels upon death.

Setting it to some huge number like 200 would then mean you would always keep your items upon death regardless of level.

ChaosSlayerZ
07-01-2009, 12:53 PM
It sounds like DeathItemLossLevel refers to the minimum character level at which items will be left on the corpse when you die, so setting it to 0 would mean items are left on corpses at all levels upon death.

Setting it to some huge number like 200 would then mean you would always keep your items upon death regardless of level.

Thats what I had to do.

But there is no such thing as level 0, thats why I propose to drop that other rule and use 0 as "never loose items" - this way you fit 2 rules into 1

gaeorn
07-01-2009, 01:11 PM
Thats what I had to do.

But there is no such thing as level 0, thats why I propose to drop that other rule and use 0 as "never loose items" - this way you fit 2 rules into 1

Which other rule?

And how does that improve anything? It gives two different behaviors in the same rule which is likely to be confusing to many. Plus, it works now so why fix what isn't broken?

Not trying to be negative, but I simply do not see the advantage of what you are suggesting.

ChaosSlayerZ
07-01-2009, 01:16 PM
look what Cavedude said:

LeaveCorpses false, LeaveNakedCorpses true - You will always leave a naked corpse. (DeathItemLossLevel is ignored)


As I have proven DeathItemLossLevel is NOT ignored.

gaeorn
07-01-2009, 01:38 PM
look what Cavedude said:

LeaveCorpses false, LeaveNakedCorpses true - You will always leave a naked corpse. (DeathItemLossLevel is ignored)


As I have proven DeathItemLossLevel is NOT ignored.

I'm suspect what he meant is if the other two were set that way, DeathItemLossLevel is ignored. If it is not behaving that way, it is likely a bug.

In any case, you did not answer either of my questions. Which rule were you suggesting eliminating? And what is the advantage of doing so?

cavedude
07-01-2009, 02:17 PM
I see the flaw in the logic. If you mean removing the LeaveCorpses rule in favor of just using DeathItemLossLevel for that functionality, I see nothing wrong with that. Though, if I find a snag in my testing I'll end up keeping both. Look for this to be committed today.

ChaosSlayerZ
07-01-2009, 04:14 PM
Yeah let me show you my whole logic =)

basicly I am looking from the other side - what conditions needs to be
achived.

So w ehave 3 base Rules:

-ItemLossLevel -level at which you leave items on coprse (0=never)
-XPLossLevel - level at which you loose XP when you die (0=never)
-LeaveCoprse - if you leave corpse when you die.

How these 3 rules work together:

1. LIVE-like:
ItemLoss =10, XPLoss = 6 (or whatever it was), LeaveCorpse= YES.

2. Custom, do not loose items, but loose XP:
ItemLoss =0, XPLoss = 6, LeaveCorpse= YES.

3. Custom, do not loose XP, but leave items:
ItemLoss =10, XPLoss = 0, LeaveCorpse= YES.

4. Custom, loose nothing, but leave corpses as indication of your failure, or for PvP reasons:
ItemLoss =0, XPLoss = 0, LeaveCorpse= YES.

5. Custom, loose nothing, no corpses:
ItemLoss =0, XPLoss = 0, LeaveCorpse= NO.

6. HARD CORE: Loose XP on death wihout ability to resurect (permanent Xp loos):
ItemLoss =0, XPLoss = 6, LeaveCorpse= NO.

7. HARD CORE: Loose items on death wihout ability to get them back:
ItemLoss =10, XPLoss = 0, LeaveCorpse= NO.

8. ULTRA HARD CORE: Permanently Loose everything:
ItemLoss =10, XPLoss = 6, LeaveCorpse= NO.



So I have shown you 8 diffirent combos, with just 3 rules.
If I missed a posible combo - speak up =)

Now a GOOD Rule addition will be a rule which will determine if player looses a level when he looses XP - I know many devs would like to see it rule. Thsi way you can still punish players with death XP loss, but spare them the pain of loosing a level.

zergling
07-01-2009, 04:24 PM
Another cool rule would be to set coin loss and item loss on separate variables.

That way you could drop coin on your corpses, but keep your items.

Not a big deal, but figured I would mention it as its something that came up in the discussion for my server of how we want death to work.

ub3r
01-14-2010, 05:15 PM
i just tested this "permanent xp loss - hard core" method and it does not work. my character did not lose items and did not lose experience, and left no corpse.

Character:DeathItemLossLevel = 0
Character:DeathExpLossLevel = 6
Character:LeaveCorpses = false

is that right? ;\ its in rule_values table too right?