Jump to content

Class Restriction 2.0


2 Screenshots

About This File

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.

 


Edited by Emistry


What's New in Version 2.0   See changelog

Released

make use of setting from db/[pre-]re/job_noenter_map.txt

  • Upvote 1
  • MVP 1

×
×
  • Create New...