Hi elitepvpers,
I am working on something that makes the mobs with the rank RANK_BOSS and RANK_SUPER stronger if the player has reached certain level.
Now what i did first is alter ProjectCmn.cpp with these values
under pProperty->dwClass = scanner.GetNumber();
now what i did next was this
Well i think most of you already see it that this doesnt work
Cause of the g_pPlayer undeclared identifier. Now my question is how can i solve this.
With kind regards.
I am working on something that makes the mobs with the rank RANK_BOSS and RANK_SUPER stronger if the player has reached certain level.
Now what i did first is alter ProjectCmn.cpp with these values
under pProperty->dwClass = scanner.GetNumber();
PHP Code:
pProperty->dwStr = pProperty->dwStr * BOSS_STR + 10;
pProperty->dwSta = pProperty->dwSta * BOSS_STA + 10;
pProperty->dwDex = pProperty->dwDex * BOSS_DEX + 10;
pProperty->dwInt = pProperty->dwInt * BOSS_INT + 10;
PHP Code:
if(g_pPlayer->m_nLevel >= 150)
{
pProperty->dwStr = pProperty->dwStr * BOSS_STR + 10;
pProperty->dwSta = pProperty->dwSta * BOSS_STA + 10;
pProperty->dwDex = pProperty->dwDex * BOSS_DEX + 10;
pProperty->dwInt = pProperty->dwInt * BOSS_INT + 10;
}
else
{
pProperty->dwStr = pProperty->dwStr * BOSS_STR;
pProperty->dwSta = pProperty->dwSta * BOSS_STA;
pProperty->dwDex = pProperty->dwDex * BOSS_DEX;
pProperty->dwInt = pProperty->dwInt * BOSS_INT;
}
Cause of the g_pPlayer undeclared identifier. Now my question is how can i solve this.
With kind regards.