Bringer Posted November 23, 2014 Posted November 23, 2014 can anyone help me about this problem Quote
Yonko Posted November 23, 2014 Posted November 23, 2014 (edited) Try this?http://rathena.org/board/topic/77378-skillitem-map-restriction-now-supports-multiple-maps///<nameid>:<map1>{,<map2>,<map3>,<map4>,...}//Disables Red Potion usage in Prontera and Payon4198:prtg_cas01,prtg_cas02 .... and so on Edited November 23, 2014 by Yonko Quote
Bringer Posted November 24, 2014 Author Posted November 24, 2014 Try this? http://rathena.org/board/topic/77378-skillitem-map-restriction-now-supports-multiple-maps/ //<nameid>:<map1>{,<map2>,<map3>,<map4>,...} //Disables Red Potion usage in Prontera and Payon 4198:prtg_cas01,prtg_cas02 .... and so on i dont know how to patch that any guide ? Quote
Thanatos Memory Posted November 24, 2014 Posted November 24, 2014 First find the . txt file. item_mapdeny.txtand add the map like this.//Disables Red Potion usage in Prontera and Payon501:prontera,payon501 = Red potion item ID. and the mapprontera,payon. Quote
Kichi Posted November 24, 2014 Posted November 24, 2014 change your maya purple card script to be like this. if(!getmapflag(strcharinfo(3),26)){bonus bIntravision,0;} Maya Purple will not work at castle Untested, more info and support contact me Quote
Nerfwood Posted November 24, 2014 Posted November 24, 2014 (edited) Use the item_noequip.txt in your db/import folder. // Forbidden Items Database// Defines restrictions on equipment, items, and cards in map types and zones. //// Structure of Database:// ItemID,Flag//// Legend for 'Flag' field (bitmask):// 1 - restricted in normal maps// 2 - restricted in PVP// 4 - restricted in GVG// 8 - restricted in Battlegrounds So, just add the following in the said file: 4198,4 Make sure to use @reload item for the changes to take effect. Edit: The above statement also disables the card in other GvG Maps. If you don't want those to be affected, add a restricted zone mapflag to the castles, and change the flag in the db folder accordingly. Example: Script file: prtg_cas01 mapflag restricted <zone> Let's say the zone you used is 5, so you will be using 512 as your flag in the item_noequip.txt (there's an explanation in the file). item_noequip.txt 4198,512 Edited November 24, 2014 by kalkalkal Quote
Bringer Posted November 25, 2014 Author Posted November 25, 2014 (edited) Use the item_noequip.txt in your db/import folder. // Forbidden Items Database // Defines restrictions on equipment, items, and cards in map types and zones. // // Structure of Database: // ItemID,Flag // // Legend for 'Flag' field (bitmask): // 1 - restricted in normal maps // 2 - restricted in PVP // 4 - restricted in GVG // 8 - restricted in Battlegrounds So, just add the following in the said file: 4198,4 Make sure to use @reload item for the changes to take effect. Edit: The above statement also disables the card in other GvG Maps. If you don't want those to be affected, add a restricted zone mapflag to the castles, and change the flag in the db folder accordingly. Example: Script file: prtg_cas01 mapflag restricted <zone> Let's say the zone you used is 5, so you will be using 512 as your flag in the item_noequip.txt (there's an explanation in the file). item_noequip.txt 4198,512 Thanks its Working now Edited November 25, 2014 by DrewxD Quote
Question
Bringer
can anyone help me about this problem
6 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.