summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-30 20:03:41 +0000
committerFate <fate-tmw@googlemail.com>2009-05-30 20:03:41 +0000
commit8b70df06b9454fe76765dd3044b378d4b3002002 (patch)
tree8518b9c58642ae85d17bc62ae87d0501858b7bdd /db
parent96c8a2957d499b4dd7c867455bdff51920eb31ea (diff)
parentf17c823d6f91ae535ebcadd8b5b369efea09b772 (diff)
downloadserverdata-8b70df06b9454fe76765dd3044b378d4b3002002.tar.gz
serverdata-8b70df06b9454fe76765dd3044b378d4b3002002.tar.bz2
serverdata-8b70df06b9454fe76765dd3044b378d4b3002002.tar.xz
serverdata-8b70df06b9454fe76765dd3044b378d4b3002002.zip
Merge branch 'master' of the testing branch
Conflicts: conf/magic.conf db/item_db.txt npc/013-3_Cave/barrier.txt Eliminated conf/magic.conf. Re-build this file using conf/build-magic.sh; otherwise marriage will be disabled and spells won't work.
Diffstat (limited to 'db')
-rw-r--r--db/const.txt35
-rw-r--r--db/item_db.txt37
-rw-r--r--db/mob_db.txt8
-rw-r--r--db/mob_skill_db.txt11
-rw-r--r--db/skill_db.txt3
5 files changed, 72 insertions, 22 deletions
diff --git a/db/const.txt b/db/const.txt
index 73e60c04..3bdcb3b4 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -151,6 +151,8 @@ cOrange 7
cPurple 8
cDarkGreen 9
+sc_poison 132
+
NIBBLE_0_SHIFT 0
NIBBLE_0_MASK 15
@@ -172,5 +174,34 @@ NIBBLE_5_MASK 15728640
NIBBLE_6_SHIFT 24
NIBBLE_6_MASK 251658240
-NIBBLE_7_SHIFT 28
-NIBBLE_7_MASK 4026531840
+NIBBLE_7_SHIFT 28 // Only three bits available in this one
+NIBBLE_7_MASK 1879048192 // should be 4026531840
+
+// Magic skills
+SKILL_MAGIC 340
+SKILL_MAGIC_LIFE 341
+SKILL_MAGIC_WAR 342
+SKILL_MAGIC_TRANSMUTE 343
+SKILL_MAGIC_NATURE 344
+SKILL_MAGIC_ASTRAL 345
+
+// Flags for the magic quests
+MFLAG_DRANK_POTION 1 // Character drank at least one magic potion as prerequisite for the mana seed quest
+MFLAG_KNOWS_MANASEED 2 // Character has found the Mana Seed
+MFLAG_TOUCHED_MANASEED 4 // Character has touched the Mana Seed
+MFLAG_MANASEED_MAXEDOUT 8 // Character has touched the Mana Seed while maxed out on magic
+
+MFLAG_KNOWS_AULDSBEL 16 // Character has met Auldsbel
+MFLAG_KNOWS_WYARA 32 // Character has met Wyara
+MFLAG_KNOWS_SAGATHA 64 // Character has met Sagatha
+MFLAG_KNOWS_MANAPOTION 128 // Has heard about the mana potion
+
+MFLAG_MANASEED_RUMOUR 256 // Has heard rumour about mana seed
+MFLAG_KNOWS_CUTTREE 512 // Knows about the `cut the tree' quest
+MFLAG_DID_CUTTREE 1024 // Did cut off a branch from the druid tree
+MFLAG_KNOWS_DRUIDTREE 2048 // Knows about the druid tree quest
+
+MFLAG_KNOWS_IMP 4096 // Knows about the imprisoned forest spirit
+MFLAG_KNOWS_OLD_WIZARD 8192 // Knows Bjorn's old wizard
+MFLAG_MADE_CONC_POTION 16384 // Made a concentration potion with T15 and/or T16
+MFLAG_ELANORE_OMAR 32768 // Told Omar about Elanore's involvement
diff --git a/db/item_db.txt b/db/item_db.txt
index c008f8fe..3d8d417b 100644
--- a/db/item_db.txt
+++ b/db/item_db.txt
@@ -1,7 +1,7 @@
#ID,Name,Label,Type,Price,Sell,Weight,ATK,DEF,Range,Mbonus,Slot,Gender,Loc,wLV,eLV,View,{UseScript},{EquipScript},,
0,DEFAULT,Default,0,20,10,10,,,,,,2,,,,,{},{},,
501,CactusDrink,Cactus Drink,0,50,25,70,,,,,,2,,,0,,{ itemheal 15,0; },{},
-502,CactusPotion,Cactus Potion,0,70,35,70,,,,,,2,,,0,,{ itemheal 25,10; },{},
+502,CactusPotion,Cactus Potion,0,70,35,70,,,,,,2,,,0,,{ itemheal 25,0; },{},
503,CasinoCoins,Casino Coins,3,20,10,1,,,,,,,,,,,{},{},,
504,DecorCandy,Decor Candy,3,25,10,10,,,,,,,,,,,{},{},,
505,MaggotSlime,Maggot Slime,3,8,4,10,,,,,,,,,,,{},{},,
@@ -33,7 +33,7 @@
531,MinerGloves,Miner Gloves,5,3000,1000,20,,2,,-10,0,2,4,,0,0,{},{},,
532,LeatherGloves,Leather Gloves,5,6000,2000,30,,4,,-20,0,2,4,,0,0,{},{},,
533,RoastedMaggot,Roasted Maggot,0,110,55,5,,,,,,2,,,0,,{ itemheal 150,0; },{},
-534,OrangeCupcake,Orange Cupcake,0,90,45,5,,,,,,2,,,0,,{ itemheal 100,10; },{},
+534,OrangeCupcake,Orange Cupcake,0,90,45,5,,,,,,2,,,0,,{ itemheal 100,0; },{},
535,Apple,Apple,0,10,5,5,,,,,,2,,,0,,{ itemheal 50,0; },{},
536,ShortSword,Short Sword,4,8000,4000,100,100,,1,,0,2,2,1,1,1,{},{},,
537,TreasureKey,Treasure Key,3,100,50,5,,,,,,,,,,,{},{},,
@@ -61,13 +61,13 @@
559,OrangeHint,Orange Hint,3,20,0,10,,,,,,,,,,,{},{},,
560,GrayHint,Gray Hint,3,20,0,10,,,,,,,,,,,{},{},,
561,Sabre,Sabre,4,10000,5000,100,100,,1,,0,2,2,1,1,1,{},{},,
-562,ChickenLeg,Chicken Leg,0,250,125,10,,,,,,2,,,0,,{ itemheal 500,5; },{},
+562,ChickenLeg,Chicken Leg,0,250,125,10,,,,,,2,,,0,,{ itemheal 500,0; },{},
563,WinterGloves,Winter Gloves,5,6000,3000,20,,3,,-15,0,2,4,,0,0,{},{},,
564,TurtleneckSweater,Turtleneck Sweater,5,2000,1000,10,,6,,-18,0,2,512,,0,0,{},{},,
-565,Petal,Petal,0,50,25,10,,,,,,2,,,0,,{ itemheal 50,5; },{},
-566,SmallMushroom,Small Mushroom,0,50,25,10,,,,,,2,,,0,,{ itemheal 50,5; },{},
-567,IronPotion,Iron Potion,0,500,250,10,,,,,,2,,,0,,{ sc_start 185,90, 60; },{}
-568,ConcentrationPotion,Concentration Potion,0,500,250,10,,,,,,2,,,0,,{ sc_start 37,90, 30; },{}
+565,Petal,Petal,0,50,25,10,,,,,,2,,,0,,{ itemheal 50,0; },{},
+566,SmallMushroom,Small Mushroom,0,50,25,10,,,,,,2,,,0,,{ itemheal 50,0; },{},
+567,IronPotion,Iron Potion,0,500,250,10,,,,,,2,,,0,,{ sc_start 185,60, 60; },{}
+568,ConcentrationPotion,Concentration Potion,0,500,250,10,,,,,,2,,,0,,{ sc_start 37,60, 30; },{}
569,RawLog,Raw Log,3,20,10,10,,,,,,,,,,,{},{},,
570,BoneKnife,Bone Knife,4,10000,6000,120,115,,1,,0,2,2,1,1,1,{},{},,
571,Setzer,Setzer,4,20000,8000,80,110,,1,,0,2,2,1,1,3,{},{},,
@@ -186,7 +186,7 @@
702,WeddingRing,Wedding Ring,5,1000,1,1,,0,,1,0,2,128,,0,0,{},{},,
703,SulphurPowder,Sulphur Powder,3,1000,100,2,,,,,,2,,,0,,{},{},,
704,IronPowder,Iron Powder,3,800,80,3,,,,,,2,,,0,,{},{},,
-// RESERVED,,,,,,,,,,,,,,,,,,,,
+705,ManaPotion,Mana Potion,0,2000,300,50,,,,,,2,,,0,,{ itemheal 0, 10; callfunc "MagicGainBasic"; },{},
706,GoldenScorpionStinger,Golden Scorpion Stinger,3,2000,500,2,,,,,,,,,,,{},{},,
707,MonsterOilPotion,Monster Oil Potion,3,10000,2000,50,,,,,,,,,,,{},{},,
708,LeatherPatch,Leather Patch,3,300,150,18,,,,,,,,,,,{},{},,
@@ -195,10 +195,10 @@
711,MountainSnakeTongue,Mountain Snake Tongue,3,80,40,1,,,,,,,,,,,{},{},,
712,GrassSnakeTongue,Grass Snake Tongue,3,160,80,1,,,,,,,,,,,{},{},,
713,CaveSnakeTongue,Cave Snake Tongue,3,120,60,1,,,,,,,,,,,{},{},,
-714,SnakeEgg,Snake Egg,0,50,25,4,,,,,,2,,,0,,{ itemheal 30,5; },{},
-715,MountainSnakeEgg,Mountain Snake Egg,0,80,40,4,,,,,,2,,,0,,{ itemheal 40,5; },{},
-716,GrassSnakeEgg,Grass Snake Egg,0,100,50,4,,,,,,2,,,0,,{ itemheal 50,5; },{},
-717,CaveSnakeEgg,Cave Snake Egg,0,60,30,4,,,,,,2,,,0,,{ itemheal 20,5; },{},
+714,SnakeEgg,Snake Egg,0,50,25,4,,,,,,2,,,0,,{ itemheal 30,0; },{},
+715,MountainSnakeEgg,Mountain Snake Egg,0,80,40,4,,,,,,2,,,0,,{ itemheal 40,0; },{},
+716,GrassSnakeEgg,Grass Snake Egg,0,100,50,4,,,,,,2,,,0,,{ itemheal 50,0; },{},
+717,CaveSnakeEgg,Cave Snake Egg,0,60,30,4,,,,,,2,,,0,,{ itemheal 20,0; },{},
718,SilkCocoon,Silk Cocoon,3,200,3,1,,,,,,,,,,,{},{},,
// RESERVED,,,,,,,,,,,,,,,,,,,,
720,SilkRobe,Silk Robe,5,8000,4000,5,,5,,0,0,2,512,,0,0,{},{},,
@@ -209,9 +209,12 @@
725,GMCap,GM Cap,5,2000,500,10,,5,,5,0,2,256,,0,0,{},{},,
726,GMRobe,GM Robe,5,8000,4000,5,,5,,0,0,2,512,,0,0,{},{},,
727,Iten,Iten,3,0,0,100,,,,,,,,,,,{},{},,
-// RESERVED,,,,,,,,,,,,,,,,,,,,
+728,MoubooFigurine,Mouboo Figurine,3,0,0,1,,,,,,,,,,,{},{},,
+729,WarpedLog,Warped Log,3,0,0,2,,,,,,,,,,,{},{},,
+730,Lifestone,Lifestone,3,0,0,1,,,,,,,,,,,{},{},,
731,AssassinPants,Assassin Pants,5,10000,3000,10,,5,,-5,0,2,1,,0,0,{},{},,
-// RESERVED,,,,,,,,,,,,,,,,,,,,
+732,DruidTreeBranch,Druid Tree Branch,3,0,0,2,,,,,,,,,,,{},{},,
+733,PurificationPotion,Purification Potion,0,0,0,5,,,,,,2,,,,,{ callfunc "usePurificationPotion"; },{},,
734,BlackBoots,Black Boots,5,20000,3000,35,,4,,-10,0,2,64,,0,0,{},{},,
735,CottonBoots,Cotton Boots,5,2000,500,10,,1,,1,0,2,64,,0,0,{},{},,
736,WhiteCake,White Cake,0,500,100,10,,,,,,2,,,0,,{ itemheal 10,0; },{},
@@ -222,7 +225,11 @@
741,CottonGloves,Cotton Gloves,5,2000,500,20,,1,,-10,0,2,4,,0,0,{},{},,
742,FourLeafClover,Four-Leaf Clover,5,10000,5000,1,,,,5,0,2,8,,0,0,{},{ bonus bLuk, 1; },
743,Acorn,Acorn,0,50,10,1,,,,,,2,,,0,,{ itemheal 3,0; },{},
-// RESERVED
+744,DilutedConcentrationPotion,Diluted Concentration Potion,0,250,100,10,,,,,,2,,,0,,{ sc_start 37,30, 20; },{}
+745,DarkConcentrationPotion,Dark Concentration Potion,0,50,25,10,,,,,,2,,,0,,{ sc_start 37,10, 40; sc_start sc_poison, 1, 50;},{}
+746,MopoxCurePotion,Mopox Cure Potion,3,0,0,5,,,,,,2,,,,,{},{},,
+747,LacedChocolateCake,Laced Chocolate Cake,0,550,125,10,,,,,,2,,,0,,{ itemheal 11,0; },{},
+748,LacedOrangeCupcake,Laced Orange Cupcake,0,90,45,5,,,,,,2,,,0,,{ itemheal 100,0; },{},
749,Towel,Towel,5,800,250,1,,,,5,0,2,8,,0,0,{},{},
,,,,,,,,,,,,,,,,,,,,
1198,JackOSoul,Jack O Soul,3,100000,1,1,,,,,,,,,,,{},{},,
diff --git a/db/mob_db.txt b/db/mob_db.txt
index 5d408a27..21e8b529 100644
--- a/db/mob_db.txt
+++ b/db/mob_db.txt
@@ -26,10 +26,10 @@
1026,MountainSnake,Mountain Snake,130,900,0,0,100,1,80,125,4,6,20,40,10,10,35,45,1,1,1,0,20,133,1000,1500,672,480,532,20,641,150,715,400,715,400,711,500,0,0,0,0,0,0,0,0,0,0,,,,,,,1,30
1027,EasterFluffy,Easter Fluffy,30,500,0,0,3,1,10,12,0,5,1,1,1,0,20,25,1,1,1,3,20,129,800,1872,672,480,1208,2000,1209,2000,1210,2000,1211,1000,1212,1000,1213,200,0,0,0,0,0,0,0,0,,,,,,,1,40
1028,Mouboo,Mouboo,85,1200,0,0,40,2,30,75,65,5,15,5,15,0,40,10,2,2,1,3,20,129,600,1872,672,480,660,200,660,100,541,750,660,10,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,30
-1029,MauvePlant,Mauve Plant,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,680,3000,680,3000,680,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,60
-1030,CobaltPlant,Cobalt Plant,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,681,3000,681,3000,681,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
-1031,GambogePlant,Gamboge Plant,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,682,3000,682,3000,682,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
-1032,AlizarinPlant,Alizarin Plant,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,683,3000,683,3000,683,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
+1029,MauvePlant,Mauve Plant,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,680,3000,680,3000,680,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,60
+1030,CobaltPlant,Cobalt Plant,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,681,3000,681,3000,681,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
+1031,GambogePlant,Gamboge Plant,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,682,3000,682,3000,682,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
+1032,AlizarinPlant,Alizarin Plant,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,1,3,22,0,800,800,672,480,683,3000,683,3000,683,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,0
1033,SeaSlime,Sea Slime,70,600,0,0,9,1,30,50,3,7,1,25,1,0,30,30,1,1,1,0,41,131,1500,1872,672,480,535,800,657,800,518,500,510,1000,700,100,1199,5000,568,100,541,50,0,0,0,0,,,,,,,0,0
1034,GrassSnake,Grass Snake,140,1000,0,0,100,1,80,120,2,10,20,40,10,10,40,50,1,1,1,0,20,133,500,1100,672,480,716,400,716,400,712,500,676,500,660,350,0,0,0,0,0,0,0,0,0,0,,,,,,,1,40
1035,Silkworm,Silkworm,20,1,0,0,1,1,0,0,2,10,20,11,10,10,40,10,1,1,1,0,20,129,1300,1100,672,480,718,5000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,2,40
diff --git a/db/mob_skill_db.txt b/db/mob_skill_db.txt
index 4d553194..9e1bd437 100644
--- a/db/mob_skill_db.txt
+++ b/db/mob_skill_db.txt
@@ -60,4 +60,13 @@
1015,SantaSlime@NPC_EMOTION,idle,197,1,200,0,5000,yes,self,always,0,7,,,,,
1015,SantaSlime@NPC_EMOTION,walk,197,1,100,0,10000,yes,self,always,0,5,,,,,
1015,SantaSlime@NPC_SUMMONSLAVE,attack,196,5,10000,2000,60000,no,self,slavele,3,1016,,,,,
-1015,SantaSlime@NPC_SUMMONSLAVE,idle,196,5,10000,2000,60000,no,self,slavele,3,1016,,,,, \ No newline at end of file
+1015,SantaSlime@NPC_SUMMONSLAVE,idle,196,5,10000,2000,60000,no,self,slavele,3,1016,,,,,
+
+// Poison
+1009,BlackScorpion@NPC_POISON,attack,176,125,250,0,500,yes,target,always,0,,10,,,,
+1010,Snake@NPC_POISON,attack,176,70,250,0,400,yes,target,always,0,,10,,,,
+1021,CaveSnake@NPC_POISON,attack,176,10,100,0,500,yes,target,always,0,,10,,,,
+1026,MountainSnake@NPC_POISON,attack,176,250,500,0,300,yes,target,always,0,,10,,,,
+1034,GrassSnake@NPC_POISON,attack,176,125,1000,0,200,yes,target,always,0,,10,,,,
+//-- 1026,MountainSnake@NPC_POISONATTACK,attack,188,5,10000,0,500,yes,target,always,1,,,,,,
+//-- 1010,Snake@TF_POISON,attack,52,3,10000,0,500,yes,target,always,1,,,,,,
diff --git a/db/skill_db.txt b/db/skill_db.txt
index 818e1d3a..f43ee8c6 100644
--- a/db/skill_db.txt
+++ b/db/skill_db.txt
@@ -8,10 +8,13 @@
38, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0 //MC_OVERCHARGE
48, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, weapon, 0 //TF_DOUBLE
49, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, weapon, 0 //TF_MISS
+52, 1, 6, 4, 0, 0, 100, 1, no, 0, 1, 0, none, 0 //TF_POISON
142, 0, 6, 4, 0, 1, 1, 1, no, 0, 1, 0, none, 0 //NV_FIRSTAID
144, 0, 0, 0, 0, 0, 1, 0, no, 0, 1, 0, none, 0 //SM_MOVINGRECOVERY
146, 0, 0, 0, 0, 0, 1, 0, no, 0, 1, 0, weapon, 0 //SM_AUTOBERSERK
150, 0, 6, 4, 0, 1, 1, 1, no, 0, 1, 0, weapon, 5 //TF_BACKSLIDING
+176, 1, 6, 4, 0, 0, 100, 1, no, 0, 1, 0, none, 0 //NPC_POISON
+188, 1, 6, 4, 0, 0, 100, 1, no, 0, 1, 0, none, 0 //NPC_POISONATTACK
196, 0, 0, 4, 0, 1, 10, 1, no, 0, 2, 0, magic, 0 //NPC_SUMMONSLAVE
197, 0, 0, 4, 0, 1, 10, 1, no, 0, 2, 0, none, 0 //NPC_EMOTION
340, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0 //TMW_MAGIC