Jump to content
  • 0

Restriction of skills after 3 players in the map are left


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Is it possible to create a script wherein if there are only 3 players left inside the map the some of the skills of the player will be disabled.

 

for example, during the last man standing players keep on running away from their opponents using skills such as body reloc, high jump,backsliding, etc.

 

Now, what I wanted is, if there are only 3 players left inside the map the players that have such skill won't be able to use them.

Edited by Lord Ganja
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

You have to have some timer and check the number of players in a map using 'getmapusers()';

 

E.g

 

if(getmapusers() <= 3) setmapflag "map_name",mf_noskill,1;

 

then you also have to add:

 

removemapflag "map_mame",mf_noskill,1;

 

so that when the event restarts skills are enabled.

Edited by Pinoy Fury
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

You have to have some timer and check the number of players in a map using 'getmapusers()';

 

E.g

 

if(getmapusers() <= 3) setmapflag "map_name",mf_noskill,1;

 

then you also have to add:

 

removemapflag "map_mame",mf_noskill,1;

 

so that when the event restarts skills are enabled.

 

Thanks for you quick reply Pinoy Fury. But I only want to disable specific skills which is body relocation, high jump and backsliding.

 

So it's like, when the getmapusers is triggered by the timer, the players that has a Job of monk/champion,taekwon/SG/SL,and thief/assasin/rogue will have their SPECIFIC skills be disabled, but they can still use their other skills.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Use Mapflag#restricted.txt with db/skill_nocast_db.txt

setmapflag "map_name",mf_restricted,<zone>;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Use Mapflag#restricted.txt with db/skill_nocast_db.txt

setmapflag "map_name",mf_restricted,<zone>;

 

Solved! Thanks!

Edited by Lord Ganja
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...