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 :

// 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 [email protected][getarraysize([email protected])],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 "[email protected]" 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



What's New in Version 2.0

Released

  • [ 1.0 ] - A Simple Blocking Certain Job to Enter a Map.
  • [ 2.0 ] - Enable Multiple Different Configuration across the Maps.
  • Upvote 1
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.