A Project for Chronicle 4 based on L2JServer.


    7s monster faction fix

    Share
    avatar
    Karakan

    Posts : 472
    Join date : 2013-10-04

    7s monster faction fix

    Post  Karakan on 13th February 2018, 21:26

    SQL part:

    Code:

    UPDATE npc SET faction_id = 'c_lilim_clan' WHERE `id` IN (1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186);

    UPDATE npc SET faction_id = 'c_nephilim_clan' WHERE `id` IN (1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207);



    Core part:


    Code:
    Index: L2AttackableAI.java
    ===================================================================
    --- L2AttackableAI.java   (revision 598)
    +++ L2AttackableAI.java   (working copy)
                 {
                    L2NpcInstance npc = (L2NpcInstance) obj;
                    
    +                    //Handle SevenSigns mob Factions
    +                    String npcfaction = npc.getFactionId();
    +                    boolean sevenSignFaction = false;
    +
    +                    // TODO: Unhardcode this by AI scripts (DrHouse)
    +                    // Catacomb mobs should assist lilim and nephilim other than dungeon
    +                    if ("c_dungeon_clan".equals(faction_id) && ("c_dungeon_lilim".equals(npcfaction) || "c_dungeon_nephi".equals(npcfaction)))
    +                {
    +                      sevenSignFaction = true;
    +                }
    +                    //Lilim mobs should assist other Lilim and catacomb mobs
    +                    else if ("c_dungeon_lilim".equals(faction_id) && "c_dungeon_clan".equals(npcfaction))
    +                {
    +                        sevenSignFaction = true;
    +                }
    +                    //Nephilim mobs should assist other Nephilim and catacomb mobs
    +                    else if ("c_dungeon_nephi".equals(faction_id) && "c_dungeon_clan".equals(npcfaction))
    +                {
    +                        sevenSignFaction = true;
    +                }
                    if (!faction_id.equals(npc.getFactionId()))

      Current date/time is 13th December 2018, 19:41