Jump to content
  • 0

Bonuses on certain maps.


Nitrate

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  12/10/13
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...