cawogeek Posted June 12, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 27 Reputation: 1 Joined: 06/25/12 Last Seen: March 27 Share Posted June 12, 2013 (edited) This script is like afk check. but this checks if the player is inside aldeg_cas01 and wearing the illegal items inside will be kicked out.is this right? cuz it seems like not working for me. illegalkick.txt Edited June 12, 2013 by cawogeek Quote Link to comment Share on other sites More sharing options...
Skorm Posted June 13, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: Yesterday at 10:36 PM Share Posted June 13, 2013 (edited) I'm not really sure if you can add new zones like this, but really there are around 500 IDs here the best way to add them is through your db-- No doubts.In conf/mapflag/restricted.txt, Add: aldeg_cas01 mapflag restricted 8 In db/re(pre-re)/item_noequip.txt, Add: //Zone 8 22564,4096 22565,4096 22566,4096 22567,4096 22568,4096 22569,4096 22570,4096 22571,4096 22572,4096 22573,4096 22574,4096 22575,4096 22576,4096 22577,4096 22578,4096 22579,4096 22580,4096 22581,4096 22582,4096 22583,4096 22584,4096 22585,4096 22586,4096 22587,4096 22588,4096 22589,4096 22590,4096 22591,4096 22592,4096 22593,4096 22594,4096 22595,4096 22596,4096 22597,4096 22598,4096 22599,4096 22600,4096 22601,4096 22602,4096 22603,4096 22605,4096 22606,4096 22607,4096 22608,4096 22611,4096 22612,4096 22613,4096 22614,4096 22615,4096 22616,4096 22617,4096 22618,4096 22619,4096 22620,4096 22621,4096 22622,4096 22623,4096 22624,4096 22625,4096 22626,4096 22627,4096 22628,4096 22629,4096 22630,4096 22631,4096 22632,4096 22633,4096 22634,4096 22635,4096 22636,4096 22637,4096 22638,4096 22639,4096 22640,4096 22641,4096 22642,4096 22643,4096 22644,4096 22645,4096 22646,4096 22647,4096 22648,4096 22649,4096 22650,4096 22651,4096 22652,4096 22653,4096 22654,4096 22655,4096 22656,4096 22657,4096 22658,4096 22659,4096 22660,4096 22661,4096 22662,4096 22663,4096 22664,4096 22665,4096 22666,4096 22667,4096 22668,4096 22669,4096 22670,4096 22671,4096 22672,4096 22673,4096 22674,4096 22675,4096 22676,4096 22677,4096 22678,4096 22679,4096 22680,4096 22681,4096 22682,4096 22683,4096 22684,4096 22685,4096 22686,4096 22687,4096 22688,4096 22689,4096 22690,4096 22691,4096 22692,4096 22693,4096 22694,4096 22695,4096 22696,4096 22697,4096 22698,4096 22699,4096 22701,4096 22702,4096 22703,4096 22704,4096 3403,4096 3404,4096 3405,4096 3406,4096 3407,4096 3408,4096 3409,4096 3410,4096 3411,4096 3412,4096 3413,4096 3414,4096 3415,4096 3416,4096 3417,4096 3418,4096 3419,4096 3420,4096 3421,4096 3422,4096 3423,4096 3424,4096 3425,4096 3426,4096 3427,4096 3428,4096 3429,4096 3430,4096 3431,4096 3432,4096 3433,4096 3434,4096 3435,4096 3436,4096 3437,4096 3438,4096 3439,4096 3440,4096 3441,4096 3442,4096 3443,4096 3444,4096 3450,4096 3451,4096 3452,4096 3453,4096 3454,4096 3455,4096 3456,4096 3457,4096 3458,4096 3459,4096 3460,4096 3461,4096 3462,4096 3463,4096 3464,4096 3465,4096 3466,4096 3467,4096 3468,4096 3469,4096 3470,4096 3471,4096 3472,4096 3473,4096 3474,4096 3475,4096 3476,4096 3478,4096 3479,4096 3480,4096 3481,4096 3482,4096 3483,4096 3484,4096 3485,4096 3486,4096 3340,4096 3341,4096 3342,4096 3343,4096 3344,4096 3345,4096 3347,4096 3348,4096 3349,4096 3350,4096 3351,4096 3352,4096 3353,4096 3354,4096 3355,4096 3356,4096 3357,4096 3358,4096 3359,4096 3360,4096 3363,4096 3364,4096 3365,4096 3366,4096 3368,4096 3150,4096 3151,4096 3152,4096 3153,4096 3154,4096 3155,4096 3156,4096 3157,4096 3158,4096 3159,4096 3160,4096 3161,4096 3162,4096 23020,4096 23021,4096 23022,4096 23023,4096 23024,4096 23025,4096 3273,4096 3274,4096 31000,4096 23050,4096 23051,4096 23052,4096 23053,4096 23054,4096 23055,4096 23060,4096 23061,4096 23062,4096 23063,4096 23064,4096 23065,4096 23071,4096 3180,4096 3199,4096 3182,4096 3183,4096 3184,4096 3185,4096 3186,4096 3187,4096 3188,4096 3189,4096 3190,4096 3191,4096 3192,4096 3193,4096 3194,4096 3195,4096 3196,4096 3197,4096 3198,4096 3500,4096 3501,4096 3502,4096 3503,4096 3504,4096 3505,4096 3506,4096 3507,4096 3508,4096 3509,4096 3510,4096 3511,4096 3512,4096 3513,4096 3514,4096 3515,4096 3516,4096 3517,4096 3518,4096 3163,4096 3164,4096 3165,4096 3166,4096 3167,4096 3168,4096 23000,4096 23001,4096 23002,4096 23003,4096 23004,4096 23005,4096 23006,4096 23007,4096 23008,4096 3210,4096 3216,4096 3219,4096 3211,4096 3217,4096 3220,4096 3212,4096 3218,4096 3221,4096 3286,4096 3287,4096 3288,4096 3173,4096 3174,4096 3175,4096 3293,4096 3294,4096 3295,4096 3296,4096 3297,4096 3298,4096 23848,4096 23853,4096 23831,4096 3176,4096 3177,4096 3178,4096 22900,4096 22902,4096 22901,4096 3280,4096 3281,4096 3282,4096 3315,4096 3316,4096 3317,4096 3318,4096 3319,4096 3320,4096 21100,4096 3362,4096 3367,4096 3361,4096 23804,4096 23806,4096 23805,4096 3371,4096 3369,4096 3370,4096 3477,4096 3304,4096 3306,4096 3307,4096 3311,4096 3310,4096 3312,4096 5086,4096 23800,4096 23801,4096 23802,4096 23803,4096 23807,4096 23808,4096 23812,4096 23813,4096 23814,4096 23815,4096 23819,4096 3540,4096 23809,4096 23810,4096 23811,4096 23816,4096 23817,4096 23818,4096 23820,4096 23821,4096 3267,4096 3268,4096 3269,4096 3330,4096 3331,4096 3332,4096 3333,4096 3334,4096 3335,4096 3336,4096 3337,4096 3338,4096 22705,4096 22706,4096 22707,4096 22708,4096 22709,4096 22710,4096 22714,4096 22715,4096 22716,4096 22711,4096 22712,4096 22713,4096 5776,4096 5777,4096 5778,4096 5761,4096 5762,4096 5763,4096 5766,4096 5767,4096 5768,4096 3346,4096 22903,4096 22904,4096 22905,4096 22906,4096 22907,4096 22908,4096 22909,4096 22910,4096 22911,4096 22912,4096 22913,4096 22914,4096 22915,4096 22916,4096 22917,4096 22918,4096 22919,4096 22920,4096 22921,4096 22922,4096 22923,4096 23822,4096 23823,4096 23824,4096 23825,4096 23826,4096 23827,4096 23828,4096 23829,4096 23830,4096 23832,4096 23833,4096 23834,4096 23835,4096 23836,4096 23837,4096 23838,4096 23839,4096 23840,4096 23841,4096 23842,4096 23843,4096 23844,4096 23845,4096 23846,4096 23847,4096 23849,4096 23850,4096 23851,4096 23852,4096 23854,4096 23855,4096 23856,4096 23857,4096 Edit: Codebox didn't work O_O/// Uhm Spoiler added. Also if that doesn't work use restriction 7 and value 2048 or something. Edited June 16, 2013 by Capuche Add Code Quote Link to comment Share on other sites More sharing options...
cawogeek Posted June 13, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 27 Reputation: 1 Joined: 06/25/12 Last Seen: March 27 Author Share Posted June 13, 2013 Yeah, It just unequipped the items but you can put them back after you are inside the map. Quote Link to comment Share on other sites More sharing options...
Skorm Posted June 13, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: Yesterday at 10:36 PM Share Posted June 13, 2013 That's weird... I don't think you should be able to. Quote Link to comment Share on other sites More sharing options...
cawogeek Posted June 14, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 27 Reputation: 1 Joined: 06/25/12 Last Seen: March 27 Author Share Posted June 14, 2013 And i Tried it with the latest SVN 17365. Still i got the same results. maybe this is a bug? Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 15, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 7 hours ago Share Posted June 15, 2013 if you wan script you can try this too https://rathena.org/board/index.php?/files/file/2505-%7B?%7D/ Quote Link to comment Share on other sites More sharing options...
anakpondok Posted June 15, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 03/21/13 Last Seen: June 25, 2013 Share Posted June 15, 2013 if you have set the mapflag and the item_noequip.txt, players can wear the item but the effect will be disabled Quote Link to comment Share on other sites More sharing options...
cawogeek Posted June 16, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 27 Reputation: 1 Joined: 06/25/12 Last Seen: March 27 Author Share Posted June 16, 2013 (edited) Yes i see, But i solve this problem. With the help of this 2 topics http://rathena.org/board/topic/83658-arrays-non-donate-pvp-map/ & http://rathena.org/board/topic/62866-auto-kick-or-return-to-save-point-when-afk/And this is my final script for this... - script nocustomitems -1,{ OnPCLoadMapEvent: set .interval, 1; // How often to check? (seconds) getmapxy( @map$, @x, @y, 0 ); addtimer .interval *1000, strnpcinfo(3)+"::OnCheck"; end; OnCheck: setarray .castle$[0],"aldeg_cas01","gefg_cas01"; for(set .@,0; .@i < getarraysize(.castle$); set .@i,.@i+1) { if(strcharinfo(3) == .castle$[.@i] && isequippedcnt( 22564,22565,22566,22567,22568,22569,22570,22571,22572,22573,22574,22575,22576,22577,22578,22579,22580,22581,22582,22583,22584,22585,22586, 22587,22588,22589,22590,22591,22592,22593,22594,22595,22596,22597,22598,22599,22600,22601,22602,22603,22605,22606,22607,22608,22611,22612, 22613,22614,22615,22616,22617,22618,22619,22620,22621,22622,22623,22624,22625,22626,22627,22628,22629,22630,22631,22632,22633,22634,22635, 22636,22637,22638,22639,22640,22641,22642,22643,22644,22645,22646,22647,22648,22649,22650,22651,22652,22653,22654,22655,22656,22657,22658, 22659,22660,22661,22662,22663,22664,22665,22666,22667,22668,22669,22670,22671,22672,22673,22674,22675,22676,22677,22678,22679,22680,22681, 22682,22683,22684,22685,22686,22687,22688,22689,22690,22691,22692,22693,22694,22695,22696,22697,22698,22699,22701,22702,22703,22704,3403, 3404,3405,3406,3407,3408,3409,3410,3411,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431, 3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464, 3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3478,3479,3480,3481,3482,3483,3484,3485,3486,3340,3341,3342,3343,3344,3345,3347, 3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3363,3364,3365,3366,3368,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159, 3160,3161,3162,23020,23021,23022,23023,23024,23025,3273,3274,23050,23051,23052,23053,23054,23055,23060,23061,23062,23063,23064,23065,23071, 3180,3199,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3500,3501,3502,3503,3504,3505,3506,3507,3508, 3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3163,3164,3165,3166,3167,3168,23000,23001,23002,23003,23004,23005,23006,23007,23008,3210,3216, 3219,3211,3217,3220,3212,3218,3221,3286,3287,3288,3173,3174,3175,3293,3294,3295,3296,3297,3298,23848,23853,23831,3176,3177,3178,22900,22902, 22901,3280,3281,3282,3315,3316,3317,3318,3319,3320,21100,3362,3367,3361,23804,23806,23805,3371,3369,3370,3477,3304,3306,3307,3311,3310,3312, 5086,23800,23801,23802,23803,23807,23808,23812,23813,23814,23815,23819,3540,23809,23810,23811,23816,23817,23818,23820,23821,3267,3268,3269, 3330,3331,3332,3333,3334,3335,3336,3337,3338,22705,22706,22707,22708,22709,22710,22714,22715,22716,22711,22712,22713,5776,5777,5778,5761,5762, 5763,5766,5767,5768,3346,22903,22904,22905,22906,22907,22908,22909,22910,22911,22912,22913,22914,22915,22916,22917,22918,22919,22920,22921, 22922,22923,23822,23823,23824,23825,23826,23827,23828,23829,23830,23832,23833,23834,23835,23836,23837,23838,23839,23840,23841,23842,23843, 23844,23845,23846,23847,23849,23850,23851,23852,23854,23855,23856,23857,4172 ) > 0) { dispbottom "Sorry custom items are not allowed inside "+strcharinfo(3)+"."; warp "SavePoint",0,0; } addtimer .interval *1000, strnpcinfo(3)+"::OnCheck"; } } aldeg_cas01 mapflag loadevent gefg_cas01 mapflag loadevent So guys is this right? Edited June 16, 2013 by cawogeek Quote Link to comment Share on other sites More sharing options...
Capuche Posted June 16, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted June 16, 2013 Use mapflag item_noequip is a better idea if you have too much item instead of checking all items in a loop So guys is this right? Nope. Your script make a loop if the player enter in a castle map but your loop never end => There will be several loop if the player enter several time. No need to continue your loop if the player is not on the map. getmapxy( @map$, @x, @y, 0 ); No need this Quote Link to comment Share on other sites More sharing options...
Question
cawogeek
This script is like afk check. but this checks if the player is inside aldeg_cas01 and wearing the illegal items inside will be kicked out.
is this right? cuz it seems like not working for me.
illegalkick.txt
Edited by cawogeekLink to comment
Share on other sites
8 answers to this question
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.