summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 14:24:26 +0000
committerKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 14:24:26 +0000
commitf1375b9ae3116eb408a962d9b03a5f64df6747f3 (patch)
tree1d604d92fcd06a02203f313d7fed46eb3f2f4da4 /db
parent66e4865ef4398014c67057e851456df1261c3c66 (diff)
downloadhercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.gz
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.bz2
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.xz
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.zip
* Added 'restricted' mapflag, based on lordalfa patch
- you can set restriction zone on map (see mapflag/restricted.txt) - you can turn off item usage on certain restricted map in item_noequip.txt - you can turn off skill usage on certain restricted map in skill_nocast_db.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5115 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'db')
-rw-r--r--db/item_noequip.txt31
-rw-r--r--db/skill_nocast_db.txt33
2 files changed, 61 insertions, 3 deletions
diff --git a/db/item_noequip.txt b/db/item_noequip.txt
index c40d1b8a9..17eba9a11 100644
--- a/db/item_noequip.txt
+++ b/db/item_noequip.txt
@@ -1,8 +1,35 @@
// 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 PVP, 2- restricted in GVG, 3- restricted in both PvP and GvG
+// mode
+// 1- restricted in PVP
+// 2- restricted in GVG
+// 3- restricted in both PvP and GvG
+// Restricted zones - they're configured by 'restricted <number>' mapflag
+// 4 - restricted in zone 1
+// 8 - restricted in zone 2
+// 16 - restricted in zone 3
+// 32 - restricted in zone 4
+// 64 - restricted in zone 5
+// 128 - restricted in zone 6
+// 256 - restricted in zone 7
+//Examples:
//1201,1 you can't use KNIFE(ID 1201) on PvP and GvG
//608,3 you can't use Yggdrasil Seed(ID 608) on both PvP & GvG & WoE Castles
-//4174,3 Forbid Deviling Card in every PVP or GVG map, and during woes. \ No newline at end of file
+//4174,3 Forbid Deviling Card in every PVP or GVG map, and during woes.
+//501,4 you can't use Red Potion on map marked as 'restricted zone 1'
+//502,8 you can't use Orange Potion on map marked as 'restricted zone 2'
+//503,16 you can't use Yellow Potion on map marked as 'restricted zone 3'
+// you can even mix modes
+//519,41 (32+8+1) you can't use Milk on PVP, and maps marked as 'restricted zone 2' and 'restricted zone 4'
+
+
+//Zone 1 - Aldebaran Turbo Track
+601,4 //Fly Wing
+506,4 //Green Potion
+525,4 //Panacea
+
+//Zone 2 - Jail
+601,8 //Fly Wing - not really needed here but ...
+602,8 //Butterfly Wing - also not needed \ No newline at end of file
diff --git a/db/skill_nocast_db.txt b/db/skill_nocast_db.txt
index a6c5066c4..390fd397e 100644
--- a/db/skill_nocast_db.txt
+++ b/db/skill_nocast_db.txt
@@ -9,15 +9,46 @@
// 4 = Cannot be used in GvG maps
// 8 = Cannot be used when WoE is on
// 16 = Cannot be used in PK Mode maps
+// Restricted zones - they're configured by 'restricted <number>' mapflag
+// 32 = Cannot be used in zone 1 maps
+// 64 = Cannot be used in zone 2 maps
+// 128 = Cannot be used in zone 3 maps
+// 256 = Cannot be used in zone 4 maps
+// 512 = Cannot be used in zone 5 maps
+// 1024 = Cannot be used in zone 6 maps
+// 2048 = Cannot be used in zone 7 maps
+
//
// Example:
// 8,6 = Endure cannot be used in PvP and GvG maps (2+4)
+//GVG
26,4 //AL_TELEPORT
27,4 //AL_WARP
87,4 //WZ_ICEWALL
150,4 //TF_BACKSLIDING
361,4 //HP_ASSUMPTIO
362,4 //HP_BASILICA
+491,4 //CR_CULTIVATION
+
+//mixed
488,19 //CG_HERMODE
-491,4 //CR_CULTIVATION \ No newline at end of file
+
+//Zone 1 - Aldebaran Turbo Track
+219,32 //Snatch
+26,32 //Teleport
+27,32 //Warp portal
+51,32 //Hiding
+135,32 //Cloacking
+389,32 //Stealth
+35,32 //Cure
+87,32 //Ice Wall
+359,32 //Berserk (Frenzy)
+362,32 //Basilica
+395,32 //Sheltering Bliss
+357,32 //Spear Dynamo (Concentration)
+
+//Zone 2 - Jail
+421,64 //TK_JUMPKICK#Flying Side Kick#
+426,64 //TK_HIGHJUMP#Taekwon Jump#
+