Permalink
Browse files

Eye of the Black Prince - legendary item script

  • Loading branch information...
Shoxxo
Shoxxo committed Oct 27, 2017
1 parent f63e7ff commit 285cbdd1c928cbf1c95b04b8f4da2e9d0a9002bd
Showing with 364 additions and 75 deletions.
  1. +3 −0 sql/updates/world/2017_10_21_00_item_template.sql
  2. +361 −75 src/server/scripts/World/item_scripts.cpp
@@ -0,0 +1,3 @@
INSERT INTO `item_template` (`entry`, `class`, `subclass`, `SoundOverrideSubclass`, `name`, `displayid`, `Quality`, `Flags`, `FlagsExtra`, `Flags3`, `Unk430_1`, `Unk430_2`, `BuyCount`, `BuyPrice`, `SellPrice`, `InventoryType`, `AllowableClass`, `AllowableRace`, `ItemLevel`, `RequiredLevel`, `RequiredSkill`, `RequiredSkillRank`, `requiredspell`, `requiredhonorrank`, `RequiredCityRank`, `RequiredReputationFaction`, `RequiredReputationRank`, `maxcount`, `stackable`, `ContainerSlots`, `stat_type1`, `stat_value1`, `stat_unk1_1`, `stat_unk2_1`, `stat_type2`, `stat_value2`, `stat_unk1_2`, `stat_unk2_2`, `stat_type3`, `stat_value3`, `stat_unk1_3`, `stat_unk2_3`, `stat_type4`, `stat_value4`, `stat_unk1_4`, `stat_unk2_4`, `stat_type5`, `stat_value5`, `stat_unk1_5`, `stat_unk2_5`, `stat_type6`, `stat_value6`, `stat_unk1_6`, `stat_unk2_6`, `stat_type7`, `stat_value7`, `stat_unk1_7`, `stat_unk2_7`, `stat_type8`, `stat_value8`, `stat_unk1_8`, `stat_unk2_8`, `stat_type9`, `stat_value9`, `stat_unk1_9`, `stat_unk2_9`, `stat_type10`, `stat_value10`, `stat_unk1_10`, `stat_unk2_10`, `ScalingStatDistribution`, `DamageType`, `delay`, `RangedModRange`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `description`, `PageText`, `LanguageID`, `PageMaterial`, `startquest`, `lockid`, `Material`, `sheath`, `RandomProperty`, `RandomSuffix`, `itemset`, `MaxDurability`, `area`, `Map`, `BagFamily`, `TotemCategory`, `socketColor_1`, `socketContent_1`, `socketColor_2`, `socketContent_2`, `socketColor_3`, `socketContent_3`, `socketBonus`, `GemProperties`, `ArmorDamageModifier`, `duration`, `ItemLimitCategory`, `HolidayId`, `StatScalingFactor`, `CurrencySubstitutionId`, `CurrencySubstitutionCount`, `flagsCustom`, `WDBVerified`) VALUES (93403, 8, 11, -1, 'Eye of the Black Prince', 0, 5, 2, 0, 0, 1, 1, 1, 25000000, 0, 0, -1, -1, 90, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1000, 0, 136213, 0, NULL, -1, 0, -1, 0, 0, NULL, -1, 0, -1, 0, 0, NULL, -1, 0, -1, 0, 0, NULL, -1, 0, -1, 0, 0, NULL, -1, 0, -1, 0, 'The socket seethes, almost with an intelligence of its own.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18414);

This comment has been minimized.

Show comment
Hide comment
@02918765

02918765 Oct 28, 2017

shouldn't you have deletes here?

@02918765

02918765 Oct 28, 2017

shouldn't you have deletes here?

This comment has been minimized.

Show comment
Hide comment
@SkyFire

SkyFire Oct 28, 2017

Member

Yes. Should have delete before insert

@SkyFire

SkyFire Oct 28, 2017

Member

Yes. Should have delete before insert

This comment has been minimized.

Show comment
Hide comment
@73CHFR34K

73CHFR34K Oct 28, 2017

No should not, because it does nt exsiting i checked before i use insert.

@73CHFR34K

73CHFR34K Oct 28, 2017

No should not, because it does nt exsiting i checked before i use insert.

This comment has been minimized.

Show comment
Hide comment
@02918765

02918765 Oct 28, 2017

you should still add. incase item already exist on ones db

@02918765

02918765 Oct 28, 2017

you should still add. incase item already exist on ones db

This comment has been minimized.

Show comment
Hide comment
@SkyFire

SkyFire Oct 29, 2017

Member

It does require a delete before insert. It's part of our code requirements. Also prevents sql errors from being applied twice.

@SkyFire

SkyFire Oct 29, 2017

Member

It does require a delete before insert. It's part of our code requirements. Also prevents sql errors from being applied twice.

This comment has been minimized.

Show comment
Hide comment
@Re3os

Re3os Nov 20, 2017

wtf use UPDATE

@Re3os

Re3os Nov 20, 2017

wtf use UPDATE

This comment has been minimized.

Show comment
Hide comment
@billy1arm

billy1arm Nov 20, 2017

@Re3os - an update would fail if the entry doesn't exist... delete, followed by insert is the safest way to do it

@billy1arm

billy1arm Nov 20, 2017

@Re3os - an update would fail if the entry doesn't exist... delete, followed by insert is the safest way to do it

This comment has been minimized.

Show comment
Hide comment
@73CHFR34K

73CHFR34K Nov 21, 2017

Enought flame and Backseat Moderation. Thanks for feedback, next time do it yourself with a pullrequest or stfu.

@73CHFR34K

73CHFR34K Nov 21, 2017

Enought flame and Backseat Moderation. Thanks for feedback, next time do it yourself with a pullrequest or stfu.

INSERT INTO `item_script_names` (`Id`, `ScriptName`) VALUES ('93403', 'item_eye_of_black_prince');
Oops, something went wrong.

0 comments on commit 285cbdd

Please sign in to comment.