Jump to content

Recommended Posts

Posted

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
  • 1 month later...
  • 2 months later...
Posted

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;

Posted

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

Posted

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;

  • 9 months later...
Posted

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. 

  • 9 years later...
Posted
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
  • 4 months later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...