Adding total 254 lines in _RefHWANLevel
Item to mob drop
Might add more later..
Code:
DECLARE @lvl varchar(5), @titlech varchar(100), @titleeu varchar(100) SET @lvl = 7 WHILE (@lvl < 255) BEGIN SET @titlech = 'UIO_SECOND_HWAN_CH_NAME_LEVEL_' + @lvl SET @titleeu = 'UIO_SECOND_HWAN_EU_NAME_LEVEL_' + @lvl INSERT INTO _RefHwanLevel (HwanLevel, ParamFourcc1, ParamValue1, ParamFourcc2, ParamValue2, ParamFourcc3, ParamValue3, ParamFourcc4, ParamValue4, ParamFourcc5, ParamValue5, AssocFileObj128, Title_CH70, Title_EU70) VALUES (@lvl, 1397769301, 200, 1145127506, 35,0,0,0,0,0,0,'xxx',@titlech,@titleeu) SET @lvl = @lvl + 1 END
Code:
DECLARE @RefMonsterID INT, @RefItemID INT, @DropMin INT, @DropMax INT, @DropRatio INT, @MobCodeName varchar(128), @ItemCodeName varchar(128); -- SETTINGS -- SET @MobCodeName = 'MonsterCodeName' --Which monster will drop the item SET @ItemCodeName = 'ItemCodeName' --Which item you want to be dropped SET @DropMin = 0 --Minimum items if it has to drop how many of them they will be SET @DropMax = 0 --Maximum items if it has to drop how many of them they can be SET @DropRatio = 1 -- Drop rate (based on % success/fail if it will drop or not the item that is added) 1 = 100% / 0.05 = 5% / 0.5 = 50% -- SETTINGS -- SELECT @RefMonsterID = ID FROM _RefObjCommon with(NOLOCK) where CodeName128 = @MobCodeName SELECT @RefItemID = ID FROM _RefObjCommon with(NOLOCK) where codename128 = @ItemCodeName INSERT INTO _RefMonster_AssignedItemDrop (RefMonsterID,RefItemID,DropGroupType,OptLevel,DropAmountMin,DropAmountMax,DropRatio,RefMagicOptionID1,CustomValue1,RefMagicOptionID2,CustomValue2,RefMagicOptionID3,CustomValue3,RefMagicOptionID4,CustomValue4,RefMagicOptionID5,CustomValue5,RefMagicOptionID6,CustomValue6,RefMagicOptionID7,CustomValue7,RefMagicOptionID8,CustomValue8,RefMagicOptionID9,CustomValue9,RentCodeName) VALUES (@RefMonsterID,@RefItemID,0,0,@DropMin,@DropMax,@DropRatio,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'xxx')