Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RewardAccount as a native enum and not as a custom one #169

Open
metita opened this issue Jun 13, 2020 · 2 comments
Open

Add RewardAccount as a native enum and not as a custom one #169

metita opened this issue Jun 13, 2020 · 2 comments

Comments

@metita
Copy link

metita commented Jun 13, 2020

RewardRules is the only one working natively on ReAPI, you need to add manually the RewardAccount enum to your plugin and do some tricks to make it works.

for ( new i = 0 ; i < _:RewardRules ; i++ )
{
     rg_set_account_rules( RewardRules:i, 0 );
}

You can call that on AddAccount_Pre and you will effectively block RewardRules, but you cannot call the same way RewardAccount because RewardAccount cannot be call'd natively, because ReAPI does not include it yet, but it is marked as a custom enum (not sure why?)

Can we add RewardAccount into ReAPI natively so we can use rg_set_account_rules with RewardAccount the same way as RewardRules and without having to add the enum to our plugin.

Take as an example REWARD_KILLED_ENEMY, that for won't cover it, or just add REWARD_KILLED_ENEMY and more kill rewards to the original RewardRules enum, so that cover everything.

@metita
Copy link
Author

metita commented Jun 15, 2020

@s1lentq Do you think REWARD_KILLED_ENEMY, REWARD_KILLED_VIP, REWARD_VIP_HAS_SELF_RESCUED can be added into RewardRules? so we can do the this and block all rewards in the game.

for ( new i = 0 ; i < _:RewardRules ; i++ )
{
     rg_set_account_rules( RewardRules:i, 0 );
}

@fl0werD
Copy link
Contributor

fl0werD commented Aug 14, 2020

@metita check RewardType into cssdk_const.inc. You can block these rewards in AddAccount pre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants