Emistry Posted July 29, 2012 Posted July 29, 2012 View File 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 Emistry Submitted 07/29/12 Category Utilities Video Content Author Emistry 2 Quote
uDe Posted September 21, 2012 Posted September 21, 2012 Great script and simple. Thanks for this. Quote
jigsgfx Posted November 22, 2012 Posted November 22, 2012 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; Quote
Emistry Posted November 22, 2012 Author Posted November 22, 2012 it will warp the player back to prontera... Quote
jigsgfx Posted November 22, 2012 Posted November 22, 2012 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 Quote
uDe Posted November 22, 2012 Posted November 22, 2012 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; Quote
delux21 Posted September 11, 2013 Posted September 11, 2013 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. Quote
Emistry Posted July 9, 2023 Author Posted July 9, 2023 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 1 Quote
Dev j Posted December 8, 2023 Posted December 8, 2023 Hi ! how can i make 2 job only in 1 map example 2 clown only Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.