-
Pentagram drop rate
Hello i want configure chance drop pentagram with 1-5 socket slots. What is wrong?
PentagramItemDropRate.xml - IGCN S9 compiled
Code:
<PentagramItemDrop>
<ServerElementRate>
<Server Index="1" Code="0" FireDrop="2000" WaterDrop="2000" EarthDrop="2000" WindDrop="2000" DarknessDrop="2000" /> <!-- Total must be equal to 10000 -->
<Server Index="2" Code="13" FireDrop="2000" WaterDrop="2000" EarthDrop="2000" WindDrop="2000" DarknessDrop="2000" /> <!-- Total must be equal to 10000 -->
<Server Index="3" Code="13" FireDrop="2000" WaterDrop="2000" EarthDrop="2000" WindDrop="2000" DarknessDrop="2000" /> <!-- Total must be equal to 10000 -->
<Server Index="4" Code="14" FireDrop="2000" WaterDrop="2000" EarthDrop="2000" WindDrop="2000" DarknessDrop="2000" /> <!-- Total must be equal to 10000 -->
</ServerElementRate>
<SocketRate>
<Socket Count="1" OpenRate="2000" OpenSet="10000" SlotRate1="2000" SlotRate2="2000" SlotRate3="2000" SlotRate4="2000" SlotRate5="2000" />
<Socket Count="2" OpenRate="2000" OpenSet="10000" SlotRate1="2000" SlotRate2="2000" SlotRate3="2000" SlotRate4="2000" SlotRate5="2000" />
<Socket Count="3" OpenRate="2000" OpenSet="10000" SlotRate1="2000" SlotRate2="2000" SlotRate3="2000" SlotRate4="2000" SlotRate5="2000" />
<Socket Count="4" OpenRate="2000" OpenSet="10000" SlotRate1="2000" SlotRate2="2000" SlotRate3="2000" SlotRate4="2000" SlotRate5="2000" />
<Socket Count="5" OpenRate="2000" OpenSet="10000" SlotRate1="2000" SlotRate2="2000" SlotRate3="2000" SlotRate4="2000" SlotRate5="2000" />
</SocketRate>
In ItemBagScript.lua
PHP Code:
if (IsElementalItem(ItemID) == true) then
if (ItemInfo.Elemental > 0 and ItemInfo.Elemental <= 5) then
IsElemental = ItemInfo.Elemental -- Attributes selection
elseif (ItemInfo.Elemental == -1) then -- Random attribute
IsElemental = GetRandomValue(6)
end
if (ItemID >= 6244 and ItemID <= 6364) then
if (ItemInfo.Socket > 0 and ItemInfo.Socket <= 5) then
IsSocket = GetRandomValue(ItemInfo.Socket)+1
end
end
else
IsElemental = 0 -- no elemental attributes, applies for non elemental items only
end