War3Evo / War3Source-EVO

War3Source Evolution (The future of War3Source)
GNU General Public License v3.0
32 stars 5 forks source link

Add a possibility for "VIP" ranks to gain more xp per kill, more gold per kill and etc. #36

Open ErkkiTa opened 1 year ago

War3Evo commented 1 year ago

I haven't had time to test this, but this should solve your issue.

Please let me know how it works for you, so we can close this issue.

In your server.cfg file add this:

war3source_gold_vip_flags "a" war3source_gold_vip_multiplier "1.5"

the flags can be more than one, and the admin would have to match them all.

the vip multiplier is a float number and will multiple itself times the original GOLD.

War3Source_Addon_VIP_Gold.zip

War3Evo commented 1 year ago

Ok.. sorry, I was a little sleepy when I wrote that and wasn't thinking clearly. That's actually bonus for XP and not GOLD. I'll fix that shortly.

ErkkiTa commented 1 year ago

All good, I mean if you can do it for both, xp multiplier and gold multiplier that would be even better tbh

War3Evo commented 1 year ago

I need this tested. If someone can verify this works, I can add it to the War3Source-EVO Master directory where I can continue to update it as needed.

The output when a VIP gets bonus will be like this: [VIP] Assist XP Bonus %i + XP Original %i = %i [VIP] Assist GOLD Bonus %i + GOLD Original %i = %i

put in your server.cfg:

war3source_addon_vip_flags "a"
war3_award_by_assist_gold_vip_multiplier 1.5
war3_award_by_assist_xp_vip_multiplier 1.5
war3_award_by_kill_gold_vip_multiplier 1.5
war3_award_by_kill_xp_vip_multiplier 1.5

War3Source_Addon_VIP_XPGold.zip