Jump to content
  • 0

Bonuses on certain maps.


Question

Posted (edited)

Is there a way to provide stat bonuses on certain maps for players? For example, players would receive a bonus 100 flee when inside PvP or bonus 50 flee when inside GVG maps.

Thank you.

 

EDIT: If it is not possible, can someone point me where in the source code can I edit so that i can make flee2 increase by 1 per 2 luk instead of 10? I know this is not the correct subforum for this question but the first one is my main concern.

Edited by Nitrate

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

I think you can do this by just using scripts

OnPCLoadMapEvent:
if(strcharinfo(3) == "pvp_n_1-1") {
	bonus_script "{ bonus bStr,5; }", 10000, 1;
}
end;

This script will give +5 str for 10,000 seconds when the player enters "pvp_n_1-1" and removes it when he dies.

if you don't want it to be map-specific, try playing with getmapflag instead of strcharinfo.

Edited by Ninja

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...