diff options
Diffstat (limited to 'world')
-rw-r--r-- | world/map/db/item_db.txt | 9 | ||||
-rw-r--r-- | world/map/npc/items/require_stat.txt | 27 | ||||
-rw-r--r-- | world/map/npc/scripts.conf | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/world/map/db/item_db.txt b/world/map/db/item_db.txt index d4201fe7..410f90c7 100644 --- a/world/map/db/item_db.txt +++ b/world/map/db/item_db.txt @@ -385,7 +385,16 @@ 868, SilkGloves, Silk Gloves, 5, 5000, 2500, 4, , 1, , 0, 0, 2, 4, , 0, 0, {}, {} 869, Antlers, Antlers, 3, 4000, 2000, 3000, , , , , , , , , , , {}, {} 870, FineDress, Fine Dress, 5, 10000, 5000, 35, , 8, , 3, 0, 2, 512, , 0, 0, {}, {} +871, SealedSoul, Sealed Soul, 3, 12000, 1000, 75, , , , , , , , , , , {}, {} +872, LockPicks, Lock Picks, 3, 5000, 1500, 150, , , , , , , , , , , {}, {} +873, LazuriteShard, Lazurite Shard, 3, 500, 250, 2, , , , , , , , , , , {}, {} +874, LazuriteCrystal, Lazurite Crystal, 3, 3000, 750, 5, , , , , , , , , , , {}, {} +875, HeartOfLazurite, Heart of Lazurite, 3, 10000, 2500, 15, , , , , , , , , , , {}, {} 876, WarlordBoots, Warlord Boots, 5, 19000, 2000, 550, , 5, , -22, 0, 2, 64, , 0, 0, {}, {} +877, BullHelmet, Bull Helmet, 5, 90000, 60000, 1300, , 19, , -52, 0, 2, 256, , 90, 0, {}, {set @bStat$, "Str";set @minbStatVal, 70;callfunc "RequireStat"; set @bStat$, "Vit";set @minbStatVal, 50;callfunc "RequireStat"; set @bStat$, "Luk";set @minbStatVal, 50;callfunc "RequireStat"; bonus bAtkRange, -10; bonus bDoubleAddRate, 20; bonus bStr, 10; bonus bCritical, 15; bonus bAspdRate, 10; bonus bDef2Rate, -39; bonus bHit, -15;} +878, BansheeBow, Banshee Bow, 4, 101000, 40000, 900, 90, , 6, , 0, 2, 34, 1, 90, 11, {}, {set @bStat$, "Dex";set @minbStatVal, 80;callfunc "RequireStat"; bonus2 bHPDrainRate, 100, -4; bonus bAspdRate, 20; bonus bCritical, 60; bonus bMaxHP, -150; bonus bDefRate, -40; bonus bDef2Rate, -35;} +879, HeartOfIsis, Heart of Isis, 5, 70000, 35000, 40, , , , , 0, 2, 8, , 85, 0, {}, {bonus bMaxHPrate, 15; bonus bHPrecovRate, 65;} +880, LazuriteRobe, Lazurite Robe, 5, 92000, 52000, 30, , 7, , 60, 0, 2, 512, , 90, 0, {}, {set @bStat$, "Int";set @minbStatVal, 70;callfunc "RequireStat"; set @bStat$, "Vit";set @minbStatVal, 40;callfunc "RequireStat"; bonus bSpeedAddRate, -15; bonus bDef2Rate, -40; bonus bMdef, 60; bonus bVit, -1; bonus bInt, 7; bonus bLuk, -1; bonus bDex, -1; bonus bStr, -1;} // Add new entries above here. For dyed entries,add to the bottom of the 2000s. diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt new file mode 100644 index 00000000..e1d6306f --- /dev/null +++ b/world/map/npc/items/require_stat.txt @@ -0,0 +1,27 @@ +// ------------------------------------------------------------ +// Variables passed to this script: +// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script. +// @bStat$ The stat to check against. Can be Str, Agi, Vit, Int, Dex, Luk. +// @minbStatVal The minimum stat value to accept this item. +// ------------------------------------------------------------ + +function|script|RequireStat|{ + if (@bStat$ == "" || @minbStatVal < 0) return; + set @bStatVal, 0; + if (@bStat$ == "Str") + set @bStatVal, readParam(bStr); + if (@bStat$ == "Agi") + set @bStatVal, readParam(bAgi); + if (@bStat$ == "Vit") + set @bStatVal, readParam(bVit); + if (@bStat$ == "Dex") + set @bStatVal, readParam(bDex); + if (@bStat$ == "Int") + set @bStatVal, readParam(bInt); + if (@bStat$ == "Luk") + set @bStatVal, readParam(bLuk); + if (@bStatVal >= @minbStatVal) return; + message strcharinfo(0), "You do not see how to use this item properly."; + unequipbyid @slotId; + end; +} diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index 25269ad5..6c744136 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -24,6 +24,7 @@ npc: npc/items/purification_potion.txt npc: npc/items/scissors.txt npc: npc/items/shock_sweet.txt npc: npc/items/unreleased_item.txt +npc: npc/items/require_stat.txt npc: npc/items/restricted_item.txt npc: npc/items/warpTowels.txt |