Pentagram drop rate

Results 1 to 1 of 1
  1. #1
    Member Smradoch is offline
    MemberRank
    Jun 2014 Join Date
    68Posts

    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) == truethen
                
    if (ItemInfo.Elemental and ItemInfo.Elemental <= 5then
                    IsElemental 
    ItemInfo.Elemental -- Attributes selection
                
    elseif (ItemInfo.Elemental == -1then -- Random attribute
                    IsElemental 
    GetRandomValue(6)
                
    end

                
    if (ItemID >= 6244 and ItemID <= 6364then
                    
    if (ItemInfo.Socket and ItemInfo.Socket <= 5then
                        IsSocket 
    GetRandomValue(ItemInfo.Socket)+1
                    end
                end
            
    else
                
    IsElemental -- no elemental attributesapplies for non elemental items only
            end 




Advertisement