Jump to content

Utility: Class Restriction


Emistry

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Class Restriction


This is a script that Prevent / Block certain job from entering specific maps.

 

Configuration : (v2)
Refer to db/[pre-]re/job_noenter_map.txt

 

Spoiler

Configuration : (v1)

// Wait X Seconds before warped out.
set .Sec,5;
// Lowest GM Level to Bypass
set .LowGMLvl,100;
setarray .Map$, // <Mapname>,<Mode>.... ( Mode = Bitwise Value )  Max of ~64 Map Settings.
  "prtg_cas01","63",
  "prtg_cas02","64",
  "prtg_cas03","7",
  "prtg_cas04","56",
  "prtg_cas05","1";
 

BitMask Value : (v1)

// -------- BitMasks --------
// 1 - Normal jobs,
// 2 - Adv jobs.
// 4 - Baby jobs,
// 8 - Normal 3rd jobs.
// 16 - Adv. 3rd jobs.
// 32 - Baby 3rd jobs.
// 64 - Certain Jobs ( Specific )

// ----- Mode Example : ( Blocked Class ) ------
// 63 - All Class that has been defined
// 64 - Only the Specific Job you defined
// 7 - Normal + Advanced + Baby Jobs
// 56 - Normal 3rd + Advanced 3rd + Baby 3rd Jobs


 

Custom Restriction Job List : (v1)

You may add in a custom job list if you want.

// Certain Jobs ( Specific Your Own Class Restriction )
if( getarg(0) & 64 ) setarray .@Restrict[getarraysize(.@Restrict)],4046,4002,4004,4013,4011;
 

Just add in the Value for the Bitmask.

Aware of the Usage of Certain Jobs.

--- If you using Bitmask Above , aware of the Limit Reach. ( ~128 Total Class )
--- If your Bitmask = ( 63 + 64 ) , Your "Certain Jobs" have only about 20 Slots.
--- Anyway, i dont think you will do so since Bitmask 63 will block most of the Class already.
 

* Common Sense : Make sure the Array ".@Restrict" didnt exceed limit of 128 element.

 



  • Submitter
  • Submitted
    07/29/12
  • Category
  • Video
  • Content Author
    Emistry

 

  • Upvote 2
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Great script and simple. Thanks for this.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

hi, may i know what this part means? is it all jobs selected will warp to prontera after 5secs? can we remove that coz im just planning to add a warper npc its like a pvp room but with job restrictions..


mes "You will be warped out within ^FF0000"+.Sec+" Seconds^000000.";
sleep2 ( .Sec * 1000 );
warp "prontera",155,181;
}
return;
}

OnInit:
// Wait X Seconds before warped out.
set .Sec,5;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it will warp the player back to prontera...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

oh i see, btw how can i set it to make only GX are allowed to enter the restricted map? coz the only way i can see is the remove all thief class job ids from BitMasks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

oh i see, btw how can i set it to make only GX are allowed to enter the restricted map? coz the only way i can see is the remove all thief class job ids from BitMasks

Maybe this?

// Certain Jobs ( Specific Your Own Class Restriction )

if( getarg(0) & 64 ) setarray .@Restrict[getarraysize(.@Restrict)],4046,4002,4004,4013,4011;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   1
  • Joined:  11/06/12
  • Last Seen:  

Niccee!! thank you <3

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  05/30/12
  • Last Seen:  

File Name: Class Restriction

File Submitter: Emistry

File Submitted: 29 Jul 2012

File Category: Utilities

Content Author: Emistry

This is a script that Prevent / Block certain job from entering specific maps.

Configuration :

// Wait X Seconds before warped out.
set .Sec,5;
// Lowest GM Level to Bypass
set .LowGMLvl,100;
setarray .Map$, // <Mapname>,<Mode>.... ( Mode = Bitwise Value )  Max of ~64 Map Settings.
   "prtg_cas01","63",
   "prtg_cas02","64",
   "prtg_cas03","7",
   "prtg_cas04","56",
   "prtg_cas05","1";
BitMask Value :


// -------- BitMasks --------
// 1 - Normal jobs,
// 2 - Adv jobs.
// 4 - Baby jobs,
// 8 - Normal 3rd jobs.
// 16 - Adv. 3rd jobs.
// 32 - Baby 3rd jobs.
// 64 - Certain Jobs ( Specific )

// ----- Mode Example : ( Blocked Class ) ------
// 63 - All Class that has been defined
// 64 - Only the Specific Job you defined
// 7 - Normal + Advanced + Baby Jobs
// 56 - Normal 3rd + Advanced 3rd + Baby 3rd Jobs


Custom Restriction Job List :

You may add in a custom job list if you want.

// Certain Jobs ( Specific Your Own Class Restriction )
if( getarg(0) & 64 ) setarray .@Restrict[getarraysize(.@Restrict)],4046,4002,4004,4013,4011;

Just add in the Value for the Bitmask.

Aware of the Usage of Certain Jobs.

--- If you using Bitmask Above , aware of the Limit Reach. ( ~128 Total Class )
--- If your Bitmask = ( 63 + 64 ) , Your "Certain Jobs" have only about 20 Slots.
--- Anyway, i dont think you will do so since Bitmask 63 will block most of the Class already.
* Common Sense : Make sure the Array ".@Restrict" didnt exceed limit of 128 element.

Topic Detail :

http://rathena.org/board/topic/53320-%E3%80%90-emistry-%C2%A9-2012-%E3%80%91e-scripts-collection/page__st__60#entry78173


Click here to download this file

Thank you for this Script Emistry very useful keep it up. 

Link to comment
Share on other sites

  • 9 years later...

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

Please update this script!! Thank you

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

5 hours ago, MyNoobScriptz said:

Please update this script!! Thank you

updated it to refer to configuration in db/[pre-]re/job_noenter_map.txt

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  79
  • Reputation:   1
  • Joined:  06/22/23
  • Last Seen:  

Hi ! how can i make 2 job only in 1 map example 2 clown only

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
Reply to this topic...

×   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...