Jump to content
  • 0

mapflag for pvp no costumo not working


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

well i'm trying to make a pvp with no customs

however the way i did it is not working

i don't know why

here if how i made the mapflag

 

trunk/npc/mapflag/restricted.txt

//===== rAthena Script =======================================
//= Mapflag: Restricted.
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: ========================================= 
//= Disables items configured in item_noequip.txt
//= and skills configured in skill_nocast_db.txt.
//===== Additional Comments: ================================= 
//= 1.0 Initial script. [Komurka]
//= 1.1 Added WoE:SE Map restrictions. [L0ne_W0lf]
//= 1.2 Added Endless Tower Restrictions. (bugreport:4707) [L0ne_W0lf]
//= 1.3 Added Orc's Memory, Nidhoggur's Nest and towns restrictions. [Daegaladh]
//= 1.4 Renewal split. [Euphy]
//============================================================

//Aldebaran Turbo Track
alde_tt02	mapflag	restricted	1
turbo_n_1	mapflag	restricted	1
turbo_n_4	mapflag	restricted	1
turbo_n_8	mapflag	restricted	1
turbo_n_16	mapflag	restricted	1
turbo_e_4	mapflag	restricted	1
turbo_e_8	mapflag	restricted	1
turbo_e_16	mapflag	restricted	1

//Jail
sec_pri	mapflag	restricted	2

//Izlude Battle Arena
force_1-1	mapflag	restricted	3
force_2-1	mapflag	restricted	3
force_3-1	mapflag	restricted	3
force_4-1	mapflag	restricted	3
force_5-1	mapflag	restricted	3
force_1-2	mapflag	restricted	3
force_1-3	mapflag	restricted	3
prt_are_in	mapflag	restricted	3

//WoE:SE Maps
schg_cas01	mapflag	restricted	4
schg_cas02	mapflag	restricted	4
schg_cas03	mapflag	restricted	4
schg_cas04	mapflag	restricted	4
schg_cas05	mapflag	restricted	4
arug_cas01	mapflag	restricted	4
arug_cas02	mapflag	restricted	4
arug_cas03	mapflag	restricted	4
arug_cas04	mapflag	restricted	4
arug_cas05	mapflag	restricted	4

//Sealed Shrine ==================
1@cata	mapflag	restricted	5
2@cata	mapflag	restricted	5

//Endless Tower ==================
1@tower	mapflag	restricted	6
2@tower	mapflag	restricted	6
3@tower	mapflag	restricted	6
4@tower	mapflag	restricted	6
5@tower	mapflag	restricted	6
6@tower	mapflag	restricted	6

//Orc's Memory ===================
1@orcs	mapflag	restricted	6
2@orcs	mapflag	restricted	6

// Nidhoggr's Instance ===========
1@nyd	mapflag	restricted	6
2@nyd	mapflag	restricted	6

//Towns
alberta	mapflag	restricted	7
aldebaran	mapflag	restricted	7
amatsu	mapflag	restricted	7
ayothaya	mapflag	restricted	7
brasilis	mapflag	restricted	7
comodo	mapflag	restricted	7
einbroch	mapflag	restricted	7
einbech	mapflag	restricted	7
geffen	mapflag	restricted	7
gonryun	mapflag	restricted	7
izlude	mapflag	restricted	7
jawaii	mapflag	restricted	7
hugel	mapflag	restricted	7
lighthalzen	mapflag	restricted	7
louyang	mapflag	restricted	7
manuk	mapflag	restricted	7
mid_camp	mapflag	restricted	7
moc_ruins	mapflag	restricted	7
morocc	mapflag	restricted	7
moscovia	mapflag	restricted	7
niflheim	mapflag	restricted	7
prontera	mapflag	restricted	7
payon	mapflag	restricted	7
pay_arche	mapflag	restricted	7
rachel	mapflag	restricted	7
splendide	mapflag	restricted	7
umbala	mapflag	restricted	7
veins	mapflag	restricted	7
xmas	mapflag	restricted	7
yuno	mapflag	restricted	7
//no custom
guild_vs1	mapflag	restricted	32
prtg_cas03	mapflag	restricted	32

there i want to make guild_vs1 and prtg_cas03 to NOT wear custom items

 

then i went to, and made this

 

trunk/db/pre-re/item_noequip.txt

// The equipment/items/cards restriction file 
// here you define which items may not be used at PvP / GvG 
// format: <item id>,<mode>
// mode
// 1    - restricted in normal maps
// 2    - restricted in PVP
// 4    - restricted in GVG
// 8    - restricted in Battlegrounds
// Restricted zones - they're configured by 'restricted <number>' mapflag
// 32   - restricted in zone 1
// 64   - restricted in zone 2
// 128  - restricted in zone 3
// 256  - restricted in zone 4
// 512  - restricted in zone 5
// 1024 - restricted in zone 6
// 2048 - restricted in zone 7

//Examples:
//1201,1 you can't use KNIFE(ID 1201) on normal maps
//608,4 you can't use Yggdrasil Seed(ID 608) on both GvG and WoE Castles
//4174,6 Forbid Deviling Card in every PVP or GVG map, and during woes.
//501,32 you can't use Red Potion on map marked as 'restricted zone 1'
//502,64 you can't use Orange Potion on map marked as 'restricted zone 2'
//503,128 you can't use Yellow Potion on map marked as 'restricted zone 3'
// you can even mix modes
//519,322 (256+64+2) you can't use Milk on PVP, and maps marked as 'restricted zone 2' and 'restricted zone 4'

//PVP
14529,2 //Greed Scroll
607,2
//GVG
12218,4 //LV5 Assumptio Scroll
14529,4 //Greed Scroll
14590,4 //Party Assumptio 5 Scroll

//BATTLEGROUND
12218,8 //LV5 Assumptio Scroll
14590,8 //Party Assumptio 5 Scroll
11500,8
11501,8
11502,8

//Zone 1 - Aldebaran Turbo Track
601,32 //Fly Wing
605,32 //Anodyne
506,32 //Green Potion
525,32 //Panacea

//Zone 2 - Jail
601,64 //Fly Wing - not really needed here but ...
602,64 //Butterfly Wing - also not needed
12212,64 //Giant Fly Wing
14582,64
14583,64
14584,64
14585,64

//Zone 3 - Izlude Battle Arena
601,128 //Fly Wing

//Zone 7 - Towns
14529,2048 //Greed Scroll
//no custom
26335,32
26140,32
26141,32
26142,32
26143,32
26144,32
26145,32
26146,32
26147,32
26148,32
26149,32
26150,32
26151,32
26152,32
26173,32
26174,32
26175,32
26176,32
26177,32
26178,32
26179,32
26180,32
26181,32
26182,32
26183,32
26184,32
26194,32
26195,32
26196,32
26197,32
26198,32
26199,32
26822,32
26823,32
26824,32
26340,32
26171,32
31911,32
26202,32
26798,32
26804,32
26809,32
26810,32
26816,32
26817,32
26818,32
26819,32
26836,32
26811,32
26789,32
26334,32
26338,32
26339,32
26342,32
16506,32
16507,32
16508,32
16509,32
16510,32
16511,32
16512,32
16526,32
16527,32
16528,32
16529,32
3171,32
3174,32
3177,32
31801,32
31851,32
20007,32
19999,32
20000,32
20001,32
20003,32
20004,32
20005,32
26327,32
26341,32
16533,32
31697,32
26416,32
26417,32
26418,32
26419,32
26420,32
26421,32
26422,32
26423,32
26424,32
26425,32
26426,32
26427,32
26792,32
26793,32
26794,32
26795,32
26796,32
26797,32
20042,32
20072,32
20073,32
20043,32
26347,32
26352,32
26805,32
26332,32
3175,32
20045,32
31815,32
31905,32
20044,32
26329,32
26799,32
20046,32
26331,32
26119,32
26120,32
26121,32
26122,32
26123,32
26124,32
26125,32
26445,32
26446,32
26447,32
26448,32
26449,32
26450,32
26451,32
26452,32
26075,32
26336,32
25112,32
20029,32
20006,32
20100,32
20101,32
27000,32
27001,32
27002,32
27003,32
27004,32
27005,32
27006,32
27007,32
27008,32
27009,32
27010,32
27011,32
27012,32
27013,32
27014,32
27015,32
27016,32
27017,32
27018,32
27019,32
27020,32
27021,32
27022,32
27023,32
27024,32
27025,32
27026,32
27027,32
27028,32
27029,32
27030,32
27031,32
27032,32
27033,32
27034,32
27035,32
27036,32
27037,32
27038,32
27039,32
27040,32
27041,32
27042,32
27043,32
27044,32
27045,32
27046,32
27047,32
27048,32
27049,32
27050,32
27051,32
27052,32
27053,32
27054,32
27055,32
27056,32
27057,32
27058,32
27059,32
27060,32
27061,32
27062,32
27063,32
27064,32
27065,32
27066,32
27067,32
27068,32
27069,32
27070,32
27071,32
27072,32
27073,32
27074,32
27075,32
27076,32
27077,32
27078,32
27079,32
27080,32
27081,32
27082,32
27083,32
27084,32
27085,32
27086,32
27087,32
27088,32
27089,32
27090,32
27091,32
27092,32
27093,32
27094,32
27095,32
27096,32
27097,32
27098,32
27099,32
27100,32
27101,32
27102,32
27103,32
27104,32
27105,32
27106,32
27107,32
27108,32
27109,32
27110,32
27111,32
27112,32
27113,32
27114,32
27115,32
27116,32
27117,32
27118,32
27119,32
27120,32
27121,32
27122,32
27123,32
27124,32
27125,32
27126,32
27127,32
27128,32
27129,32
27130,32
27131,32
27132,32
27133,32
27134,32
27135,32
27136,32
27137,32
27138,32
27139,32
27140,32
27141,32
27142,32
27143,32
27144,32
27145,32
27146,32
27147,32
27148,32
27149,32
27150,32
27151,32
27152,32
27153,32
27154,32
27155,32
27156,32
27157,32
27158,32
27159,32
27160,32
27161,32
27162,32
27163,32
27164,32
27165,32
27166,32
27167,32
27168,32
27169,32
27170,32

my customs are these ones ID,32

 

hm what's wrong? i know this is so basic but the last time i forbided an item was kinda long time

 

thanks in advance!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  116
  • Reputation:   4
  • Joined:  01/11/12
  • Last Seen:  

 

well i'm trying to make a pvp with no customs

however the way i did it is not working

i don't know why

here if how i made the mapflag

 

trunk/npc/mapflag/restricted.txt//===== rAthena Script =======================================
//= Mapflag: Restricted.
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Disables items configured in item_noequip.txt
//= and skills configured in skill_nocast_db.txt.
//===== Additional Comments: =================================
//= 1.0 Initial script. [Komurka]
//= 1.1 Added WoE:SE Map restrictions. [L0ne_W0lf]
//= 1.2 Added Endless Tower Restrictions. (bugreport:4707) [L0ne_W0lf]
//= 1.3 Added Orc's Memory, Nidhoggur's Nest and towns restrictions. [Daegaladh]
//= 1.4 Renewal split. [Euphy]
//============================================================

//Aldebaran Turbo Track
alde_tt02    mapflag    restricted    1
turbo_n_1    mapflag    restricted    1
turbo_n_4    mapflag    restricted    1
turbo_n_8    mapflag    restricted    1
turbo_n_16    mapflag    restricted    1
turbo_e_4    mapflag    restricted    1
turbo_e_8    mapflag    restricted    1
turbo_e_16    mapflag    restricted    1

//Jail
sec_pri    mapflag    restricted    2

//Izlude Battle Arena
force_1-1    mapflag    restricted    3
force_2-1    mapflag    restricted    3
force_3-1    mapflag    restricted    3
force_4-1    mapflag    restricted    3
force_5-1    mapflag    restricted    3
force_1-2    mapflag    restricted    3
force_1-3    mapflag    restricted    3
prt_are_in    mapflag    restricted    3

//WoE:SE Maps
schg_cas01    mapflag    restricted    4
schg_cas02    mapflag    restricted    4
schg_cas03    mapflag    restricted    4
schg_cas04    mapflag    restricted    4
schg_cas05    mapflag    restricted    4
arug_cas01    mapflag    restricted    4
arug_cas02    mapflag    restricted    4
arug_cas03    mapflag    restricted    4
arug_cas04    mapflag    restricted    4
arug_cas05    mapflag    restricted    4

//Sealed Shrine ==================
1@cata    mapflag    restricted    5
2@cata    mapflag    restricted    5

//Endless Tower ==================
1@tower    mapflag    restricted    6
2@tower    mapflag    restricted    6
3@tower    mapflag    restricted    6
4@tower    mapflag    restricted    6
5@tower    mapflag    restricted    6
6@tower    mapflag    restricted    6

//Orc's Memory ===================
1@orcs    mapflag    restricted    6
2@orcs    mapflag    restricted    6

// Nidhoggr's Instance ===========
1@nyd    mapflag    restricted    6
2@nyd    mapflag    restricted    6

//Towns
alberta    mapflag    restricted    7
aldebaran    mapflag    restricted    7
amatsu    mapflag    restricted    7
ayothaya    mapflag    restricted    7
brasilis    mapflag    restricted    7
comodo    mapflag    restricted    7
einbroch    mapflag    restricted    7
einbech    mapflag    restricted    7
geffen    mapflag    restricted    7
gonryun    mapflag    restricted    7
izlude    mapflag    restricted    7
jawaii    mapflag    restricted    7
hugel    mapflag    restricted    7
lighthalzen    mapflag    restricted    7
louyang    mapflag    restricted    7
manuk    mapflag    restricted    7
mid_camp    mapflag    restricted    7
moc_ruins    mapflag    restricted    7
morocc    mapflag    restricted    7
moscovia    mapflag    restricted    7
niflheim    mapflag    restricted    7
prontera    mapflag    restricted    7
payon    mapflag    restricted    7
pay_arche    mapflag    restricted    7
rachel    mapflag    restricted    7
splendide    mapflag    restricted    7
umbala    mapflag    restricted    7
veins    mapflag    restricted    7
xmas    mapflag    restricted    7
yuno    mapflag    restricted    7
//no custom
guild_vs1    mapflag    restricted    32
prtg_cas03    mapflag    restricted    32
 

 

 

In your restricted.txt you put in the zone number as 32. 

//no custom
guild_vs1    mapflag    restricted    32
prtg_cas03    mapflag    restricted    32
 

Try using numbers 1-7 when applying this.

I'd say use number 1 

//no custom
guild_vs1    mapflag    restricted    1
prtg_cas03    mapflag    restricted    1
 

since you used 32 in

trunk/db/pre-re/item_noequip.txt

//no custom
26335,32
 
Edited by Whathell
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i get pretty confuse with this @_@ 

thanks, it also solved the problem, i have to llok more close to the numbers, documents and formats, thanks again !

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/24/12
  • Last Seen:  

i get pretty confuse with this @_@ 

thanks, it also solved the problem, i have to llok more close to the numbers, documents and formats, thanks again !

i have the same problem =( can u tell me how did you solve it please ? thanks anyway and waiting for answers T_T

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

i get pretty confuse with this @_@ 

thanks, it also solved the problem, i have to llok more close to the numbers, documents and formats, thanks again !

i have the same problem =( can u tell me how did you solve it please ? thanks anyway and waiting for answers T_T

 

 

Yup, actually what Whathell said solved my problem o:

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/24/12
  • Last Seen:  

 

 

i get pretty confuse with this @_@ 

thanks, it also solved the problem, i have to llok more close to the numbers, documents and formats, thanks again !

i have the same problem =( can u tell me how did you solve it please ? thanks anyway and waiting for answers T_T

 

 

Yup, actually what Whathell said solved my problem o:

 

can you tell me exactly what did you do to resolve because i didnt understand please and another question is that work with usable item too ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

It should work with usables too. I just made sure that i got the correct numbers and mapflags so it will ban what i wanted 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/24/12
  • Last Seen:  

It should work with usables too. I just made sure that i got the correct numbers and mapflags so it will ban what i wanted 

ok then for exemple i want to ban white potion with the ID 504 i put :

 

in restricted.txt

 

//no custom

guild_vs2    mapflag    restricted    32

 

 

and in item_noequip.txt

 

 

//no custom

504,32 // white_potion

 

 

is this right or ? can u make it right if i did not the right thing ? =(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

In your restricted.txt you put in the zone number as 32. 
//no custom
guild_vs1    mapflag    restricted    32
prtg_cas03    mapflag    restricted    32
 
Try using numbers 1-7 when applying this.
I'd say use number 1 
//no custom
guild_vs1    mapflag    restricted    1
prtg_cas03    mapflag    restricted    1
 
since you used 32 in
trunk/db/pre-re/item_noequip.txt
//no custom
26335,32

hmm just with the example he gave is working o:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

×
×
  • Create New...