Page 1 of 2

Interesting server customizations (compiling a list)

Posted: Fri Jun 13, 2014 5:33 pm
by Keldegar
Change all crystal drops to clusters
UPDATE mob_family_system mob
SET mob.Element = mob.Element + 8
WHERE mob.Element > 0;

Modify player damage 10x (for low pop / solo)
UPDATE mob_family_system mob
SET mob.Slash = mob.Slash*10, mob.Pierce = mob.Pierce*10, mob.H2H = mob.H2H*10, mob.Impact = mob.Impact*10, mob.Fire = mob.Fire*10, mob.Ice = mob.Ice*10, mob.Wind = mob.Wind*10, mob.Earth = mob.Earth*10, mob.Lightning = mob.Lightning*10, mob.Water = mob.Water*10, mob.Light = mob.Light*10, mob.Dark = mob.Dark*10

Modify global drop rate
darkstar\src\map\ai\ai_mob_dummy

uint8 maxTries = 1 + (m_PMob->m_THLvl > 2 ? 2 : m_PMob->m_THLvl);

EG: change 1 to 5 (5x drop rate)

Modify crystal drop rate
darkstar\src\map\ai\ai_mob_dummy

if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_SIGNET) && m_PMob->m_Element > 0 && WELL512::irand()%100 < 20)

EG: change < 20 to < 75 (75% chance instead of 20% chance)

Will add more as I explore :)

Re: Interesting server customizations (compiling a list)

Posted: Fri Jun 13, 2014 10:33 pm
by Keldegar
Always HQ if at or above item's skill level

darkstar\src\map\utils\synthutils

in CalcSynthResult()

change hqtier to always = 4.

eg:

success = 0.95;

if((synthDiff <= 0) && (synthDiff >= -10))
{
success -= (double)(PChar->CraftContainer->getType() == ELEMENT_LIGHTNING) * 0.2;
hqtier = 4;
}
else if((synthDiff <= -11) && (synthDiff >= -30))
hqtier = 4;
else if((synthDiff <= -31) && (synthDiff >= -50))
hqtier = 4;
else if(synthDiff <= -51)
hqtier = 4;

then set hqtier4 to 1.0
switch(hqtier)
{
//case 5: chance = 0.700; break;
//Removed - HQ rate caps at 50%
case 4: chance = 1.000; break;
case 3: chance = 0.300; break;
case 2: chance = 0.100; break;
case 1: chance = 0.015; break;
default: chance = 0.000; break;
}

then also comment out

/*if(chance > 0.500)
chance = 0.500;*/

or it will cap HQs at 50%.

Re: Interesting server customizations (compiling a list)

Posted: Fri Jun 13, 2014 10:36 pm
by Keldegar
Force NQ if you have guild support imagery Useful if you have always HQ, sometimes you need the NQ version of an item for rank up or other synths.

in same file, right after hqtier ifs.


//NQ if you have guild synth support
if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_SMITHING_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_GOLDSMITHING_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_WOODWORKING_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_CLOTHCRAFT_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_LEATHERCRAFT_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_BONECRAFT_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_ALCHEMY_IMAGERY))
hqtier = 0;
else if (PChar->StatusEffectContainer->HasStatusEffect(EFFECT_COOKING_IMAGERY))
hqtier = 0;

Re: Interesting server customizations (compiling a list)

Posted: Fri Jun 13, 2014 10:44 pm
by Keldegar
Allow Mythic, Empyrean, and Relic weapon skills
In your merits database, modify the weapon skill merits by a factor of 3. So each merit increases your weapon skill by 6.

At 75 cap, this will allow A- and A+ weapons to reach over 300 Skill. After reaching 300 skill you will obtain these weaponskills!

Ukko's fury > Ukko's fury -> Light is pretty badass! Just need an Icarus Wing.

Re: Interesting server customizations (compiling a list)

Posted: Sun Jun 15, 2014 2:41 pm
by Keldegar
Only affect player speed not mob speed

in darkstar\src\map\ai\helpers\pathfind

change GetRealSpeed to:

float CPathFind::GetRealSpeed()
{
uint8 baseSpeed = m_PTarget->speed;

if (m_PTarget->objtype != TYPE_NPC)
{
baseSpeed = ((CBattleEntity*)m_PTarget)->GetSpeed();
}

if (baseSpeed == 0 && (m_roamFlags & ROAMFLAG_WORM))
{
baseSpeed = 20;
}

if (m_PTarget->animation == ANIMATION_ATTACK)
{
//baseSpeed = baseSpeed + map_config.speed_mod;
}

return baseSpeed;
}

Re: Interesting server customizations (compiling a list)

Posted: Sun Jun 15, 2014 8:36 pm
by atom0s
Player / Mob speed is now configurable.

Re: Interesting server customizations (compiling a list)

Posted: Mon Jun 16, 2014 12:29 pm
by Keldegar
Nice

Re: Interesting server customizations (compiling a list)

Posted: Tue Jun 17, 2014 1:04 am
by Delaide
I am wondering how to remove the 40 point above level 70 synthesis cap. I have looked around, and notice that although people talk about removing it, no one explains how they removed it. I want to allow all crafting skills to be able to hit level 100 for all skills.

Re: Interesting server customizations (compiling a list)

Posted: Thu Jun 19, 2014 3:54 am
by bluekirby0
Odd...didn't know anyone bothered adding it in the first place.

Re: Interesting server customizations (compiling a list)

Posted: Thu Jun 19, 2014 3:56 am
by kjLotus
bluekirby0 wrote:Odd...didn't know anyone bothered adding it in the first place.
if only you weren't gone for months! twice!