Raised This Month: $51 Target: $400
 12% 

[THC RPG] Total HardCore RPG


Post New Thread Reply   
 
Thread Tools Display Modes
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 09-14-2012 , 18:30   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1481

Quote:
Originally Posted by striker07 View Post
making the levels unlimited is simply a matter of changing the cvar for maxexpierence to 9999999999999 or 0 (not tryed with 0).

as for the database, I'm having problems too, sometimes the data is cleared for no reason. dont have a clue what it could be, I think the mysql part needs a lil "finetuning"

doesnt matter if its mysql or if its saved locally on the server (sqlite), people will lose their stats/levels randomly
__________________
PresidentEvil is offline
dolbaeb
Junior Member
Join Date: May 2012
Old 09-14-2012 , 19:37   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1482

Quote:
Originally Posted by PresidentEvil View Post
doesnt matter if its mysql or if its saved locally on the server (sqlite), people will lose their stats/levels randomly
Hey

im running the plugin on mysql and not sqlite so i dont really understand the problem.

Ive changed the exp_max in core.txt to 0 so it will be infinity, but it still wont work, the limit is 505 levels.


i got this error in logs:

L 09/14/2012 - 193:21: [thc_rpg.smx] [Core] [GetPlayerRank] Rank of player Dolbaeb. is not calculateable, Reason: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
dolbaeb is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-14-2012 , 19:49   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1483

Quote:
Originally Posted by PresidentEvil View Post
doesnt matter if its mysql or if its saved locally on the server (sqlite), people will lose their stats/levels randomly
Maybe becous he did the saving method part for sql the same as sqlite?
idk havent checked it yet.

if its happening with both saving methods then my guess is he forget a safety check or something idk.

Some1 will have to look at it i guess
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Sethenor
Member
Join Date: Jul 2010
Old 09-17-2012 , 17:23   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1484

I'm using this on my CS:GO server and most of it works fine. I only have a few problems. Ammo and nades aren't regenerating. And the exp gained for a kill isn't working as I would like.

The wiki says this: exp_kill - xp for a kill multiplied by the victim's level.
Today I killed a level 34 ( I was level 14 or 15 ).
According to the description I should get (exp_kill is set to 15) 34 * 15 = 510exp.
I only got 58.

Now if I open up the core.txt it says xp for a kill multiplied by levelratio (victim/attacker).
I don't want that levelratio, I want ik like it used to be with CSS:RPG, so 15 * Enemy level.
Is this still possible?
Sethenor is offline
jinxswe
New Member
Join Date: Apr 2012
Location: Sweden
Old 09-18-2012 , 10:03   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1485

Im not getting it to work at all... getting no errors or nothing :S
jinxswe is offline
Sethenor
Member
Join Date: Jul 2010
Old 09-18-2012 , 12:47   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1486

Quote:
Originally Posted by jinxswe View Post
Im not getting it to work at all... getting no errors or nothing :S
Copied all files to the correct directories?
Sethenor is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 09-18-2012 , 16:31   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1487

Quote:
Originally Posted by Sethenor View Post
I'm using this on my CS:GO server and most of it works fine. I only have a few problems. Ammo and nades aren't regenerating. And the exp gained for a kill isn't working as I would like.

The wiki says this: exp_kill - xp for a kill multiplied by the victim's level.
Today I killed a level 34 ( I was level 14 or 15 ).
According to the description I should get (exp_kill is set to 15) 34 * 15 = 510exp.
I only got 58.

Now if I open up the core.txt it says xp for a kill multiplied by levelratio (victim/attacker).
I don't want that levelratio, I want ik like it used to be with CSS:RPG, so 15 * Enemy level.
Is this still possible?
its working on mine,

the higher your nade regen level = the more likely you will get another nade
__________________
PresidentEvil is offline
dolbaeb
Junior Member
Join Date: May 2012
Old 09-18-2012 , 17:58   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1488

i got this error in logs:

L 09/14/2012 - 193:21: [thc_rpg.smx] [Core] [GetPlayerRank] Rank of player Dolbaeb. is not calculateable, Reason: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
dolbaeb is offline
Sethenor
Member
Join Date: Jul 2010
Old 09-18-2012 , 18:27   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1489

Quote:
Originally Posted by PresidentEvil View Post
its working on mine,

the higher your nade regen level = the more likely you will get another nade
I maxed my skills to test it and it doesn't work..

Edit: Ammo regen is working apparently, but you need to fire 1 bullet for it to start.

Edit 2:

So I found where the victim/attacker ratio is created etc. Now I want to change it back to exp_kill * victim level.
Anyone that can help me with that?

Code:
public Core_PlayerDeath(victim, attacker, const String:weapon[], bool:headshot)
{
    if(AreValidPlayers(victim, attacker))
    {
        if(AreValidTeams(victim,attacker,g_CoreConfigCache[CoreConfig_freeforall],0))
        {
            new amount=RoundToNearest(PlayerLevelRatio(victim,attacker)*g_CoreConfigCache[CoreConfig_exp_kill]);
            if(headshot)
                amount+=g_CoreConfigCache[CoreConfig_exp_headshot];
            amount+=GetHurtXP(attacker);
            
            if(amount>g_CoreConfigCache[CoreConfig_max_exp_kill] && g_CoreConfigCache[CoreConfig_max_exp_kill] != 0)
                amount=g_CoreConfigCache[CoreConfig_max_exp_kill];
            
            if(amount>0)
            {
                SetXP(attacker,amount,g_CoreConfigCache[CoreConfig_announcements]);
                SetHurtXP(attacker,0);
            }

            // save victims hurt xp
            new hurtxp=GetHurtXP(victim);
            if(hurtxp>0)
            {
                SetXP(victim,hurtxp,true);
                SetHurtXP(victim,0);
            }
        }
    }
}
Code:
Float:PlayerLevelRatio(victim,attacker)
{
    new victimlevel = GetLevel(victim);
    new attackerlevel = GetLevel(attacker);
    new Float:ratio;
    
    if(attackerlevel>1)
        ratio = float(victimlevel)/float(attackerlevel);
    else
        ratio = float(victimlevel);

    if(ratio<=0.0)
        ratio = 1.0;

    return ratio;
}

Last edited by Sethenor; 09-19-2012 at 10:38.
Sethenor is offline
Sethenor
Member
Join Date: Jul 2010
Old 09-19-2012 , 12:30   Re: [THC RPG] Total HardCore RPG
Reply With Quote #1490

Nevermind, I managed to change it

in core.inc
Change:
Code:
new amount=RoundToNearest(PlayerLevelRatio(victim,attacker)*g_CoreConfigCache[CoreConfig_exp_kill]);
to:
Code:
new amount=RoundToNearest(PlayerLevelRatio(victim)*g_CoreConfigCache[CoreConfig_exp_kill]);
And in helper.inc
Change:
Code:
Float:PlayerLevelRatio(victim,attacker)
{
    new victimlevel = GetLevel(victim);
    new attackerlevel = GetLevel(attacker);
    new Float:ratio;
    
    if(attackerlevel>1)
        ratio = float(victimlevel)/float(attackerlevel);
    else
        ratio = float(victimlevel);

    if(ratio<=0.0)
        ratio = 1.0;

    return ratio;
}
to:
Code:
Float:PlayerLevelRatio(victim)
{
    new victimlevel = GetLevel(victim);
    new Float:ratio;
    
    ratio = float(victimlevel);
    
    return ratio;
}
Sethenor is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode