Jump to content

delamis

Members
  • Posts

    102
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by delamis

  1. Hi,

     

    I just want to learn. How can i make 2 different server in one db?

    For example;

    Sw 1 : 150x no customs, different drop rates, etc etc

    Sw 2: 150000x 5 custom sets, etc etc.

    Thnx.

     

    Edit: I'm using L2jFrozen (interlude) atm. but it is changin with projects? i think there is only one way to doin it, thats why i didnt wrote project :)

  2. /**
    * Queen Ant, Core, Orfen, Zaken: MemberCount > 36<br>
    * Baium: MemberCount > 56<br>
    * Antharas: MemberCount > 225<br>
    * Valakas: MemberCount > 99<br>
    * normal RaidBoss: MemberCount > 18
    * 
    * @param obj
    * @return true if proper condition for RaidWar
    */
    public boolean meetRaidWarCondition(L2Object obj)
    {
    if(!(obj instanceof L2RaidBossInstance) || !(obj instanceof L2GrandBossInstance))
    return false;
    
    
    int npcId = ((L2Attackable) obj).getNpcId();
    
    
    switch(npcId)
    {
    case 29001: // Queen Ant
    case 29006: // Core
    case 29014: // Orfen
    case 29022: // Zaken
    return getMemberCount() > 36;
    case 29020: // Baium
    return getMemberCount() > 56;
    case 29019: // Antharas
    return getMemberCount() > 225;
    case 29028: // Valakas
    return getMemberCount() > 99;
    default: // normal Raidboss
    return getMemberCount() > 18;
    }
    }
    }

    and is this about it ?

  3. public class Valakas_l2j extends Quest implements Runnable
    {
    private int i_ai0 = 0;
    private int i_ai1 = 0;
    private int i_ai2 = 0;
    private int i_ai3 = 0;
    private int i_ai4 = 0;
    private int i_quest0 = 0;
    private long lastAttackTime = 0; // time to tracking valakas when was last time attacked
    private int i_quest2 = 0; // hate value for 1st player
    private int i_quest3 = 0; // hate value for 2nd player
    private int i_quest4 = 0; // hate value for 3rd player
    private L2Character c_quest2 = null; // 1st most hated target
    private L2Character c_quest3 = null; // 2nd most hated target
    private L2Character c_quest4 = null; // 3rd most hated target
    
    
    private static final int VALAKAS = 29028;
    
    
    //Valakas Status Tracking :
    private static final byte DORMANT = 0; //Valakas is spawned and no one has entered yet. Entry is unlocked
    private static final byte WAITING = 1; //Valakas is spawend and someone has entered, triggering a 30 minute window for additional people to enter
    //before he unleashes his attack. Entry is unlocked
    private static final byte FIGHTING = 2; //Valakas is engaged in battle, annihilating his foes. Entry is locked
    private static final byte DEAD = 3; //Valakas has been killed. Entry is locked
    
    
    private static L2BossZone _Zone;
    
    
    // Boss: Valakas
    public Valakas_l2j(int id, String name, String descr)
    {
    super(id, name, descr);
    int[] mob =
    {
    VALAKAS
    };
    this.registerMobs(mob);
    i_ai0 = 0;
    i_ai1 = 0;
    i_ai2 = 0;
    i_ai3 = 0;
    i_ai4 = 0;
    i_quest0 = 0;
    lastAttackTime = System.currentTimeMillis();
    _Zone = GrandBossManager.getInstance().getZone(212852, -114842, -1632);
    StatsSet info = GrandBossManager.getInstance().getStatsSet(VALAKAS);
    
    
    Integer status = GrandBossManager.getInstance().getBossStatus(VALAKAS);
    
    
    if (status == DEAD)
    {
    // load the unlock date and time for valakas from DB
    long temp = (info.getLong("respawn_time") - System.currentTimeMillis());
    // if valakas is locked until a certain time, mark it so and start the unlock timer
    // the unlock time has not yet expired.  Mark valakas as currently locked.  Setup a timer
    // to fire at the correct time (calculate the time between now and the unlock time,
    // setup a timer to fire after that many msec)
    if (temp > 0)
    {
    this.startQuestTimer("valakas_unlock", temp, null, null);
    }
    else
    {
    // the time has already expired while the server was offline.
    // the status needs to be changed to DORMANT
    GrandBossManager.getInstance().setBossStatus(VALAKAS, DORMANT);
    
    
    }
    }
    else if(status == FIGHTING)
    {
    //respawn to original location 
    int loc_x = 213004;
    int loc_y = -114890;
    int loc_z = -1595;
    int heading = 0;
    
    
    final int hp = info.getInteger("currentHP");
    final int mp = info.getInteger("currentMP");
    L2GrandBossInstance valakas = (L2GrandBossInstance) addSpawn(VALAKAS, loc_x, loc_y, loc_z, heading, false, 0);
    GrandBossManager.getInstance().addBoss(valakas);
    final L2NpcInstance _valakas = valakas;
    
    
    ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
    {
    @Override
    public void run()
    {
    try
    {
    _valakas.setCurrentHpMp(hp, mp);
    _valakas.setRunning();
    }
    catch (Throwable e)
    {}
    }
    }, 100L);
    
    
    startQuestTimer("launch_random_skill", 60000, valakas, null, true);
    // Start repeating timer to check for inactivity
    startQuestTimer("check_activity_and_do_actions", 60000, valakas, null, true);
    
    
    }else if(status == WAITING){
    
    
    // Start timer to lock entry after 30 minutes and spawn valakas
    startQuestTimer("lock_entry_and_spawn_valakas", (Config.VALAKAS_WAIT_TIME*60000), null, null);
    
    
    }//if it was dormant, just leave it as it was:
    //the valakas NPC is not spawned yet and his instance is not loaded
    
    
    
    
    }
    
    
    @Override
    public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance player)
    {
    if (npc != null)
    {
    long temp = 0;
    if (event.equalsIgnoreCase("check_activity_and_do_actions"))
    {
    int lvl = 0;
    int sk_4691 = 0;
    L2Effect[] effects = npc.getAllEffects();
    if (effects != null && effects.length != 0)
    {
    for (L2Effect e : effects)
    {
    if (e.getSkill().getId() == 4629)
    {
    sk_4691 = 1;
    lvl = e.getSkill().getLevel();
    break;
    }
    }
    }
    
    
    Integer status = GrandBossManager.getInstance().getBossStatus(VALAKAS);
    
    
    temp = (System.currentTimeMillis() - lastAttackTime);
    
    
    if (status == FIGHTING 
    && !npc.getSpawn().is_customBossInstance() //if it's a custom spawn, dnt despawn it for inactivity
    && (temp > (Config.VALAKAS_DESPAWN_TIME*60000))) //15 mins by default 
    {
    npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    
    
    //delete the actual boss
    L2GrandBossInstance _boss_instance = GrandBossManager.getInstance().deleteBoss(VALAKAS);
    _boss_instance.decayMe();
    GrandBossManager.getInstance().setBossStatus(VALAKAS, DORMANT);
    //npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp());
    _Zone.oustAllPlayers();
    cancelQuestTimer("check_activity_and_do_actions", npc, null);
    i_quest2 = 0;
    i_quest3 = 0;
    i_quest4 = 0;

    How this codes working? What's the guide of using this codes? So zaken wasnt in location too, but i find it and fixed. is it have script too? 

     

     

     

  4. Hi,

     

    Boss Manager Listing Valakas Alive and i cant find valakas :alone: . I think so, its spawned random loc. and new spawns not workin on boss manager. Spawn location is true, if i can kill it 1 time it will be start to spawning at true loc. 

     

    I did check spawnlist on navicat ( for finding random loc ) but it isn't there.

     

    Now question is, how can i find and kill random spawned valakas?  :happyforever:

  5. 8 months without commits, and before that 1y without commits. On 5y it has been dead almost 2y (with a rollback to previous system because they couldn't handle GIT).

     

    Finally you got their forums if you need some help : http://www.l2jfrozen.com/forum/

     

    i view topics without register and register isnt working. i mean its not sending verification mail

     

     

    Edit: it didnt send mail to my gmail adress, but then i changed it with hotmail now succes.

  6. Tell us your own way...you said you have no idea and now you have your own way? I think your own way will be helpfull for another guys

    ..

     

    y i was have no idea about eclipse and source files and im not stupit i just wasnt know to basic things. But i did click every file, i did search for every java programs and i was know that's builded on codes but i wasnt know where are they. After a few days finally i found true file for codes. Then i look for " how can i edit this files " . After i did check codes, so i can acces codes now and i can change them. as i say in main message " i just want to first steps " . Now i know this, i have to learn a lot of thing but that true file and codes enough for me to start doin something. Already no one helped me here, i get a lot of pm " pay me for help " . Now i can train myself, cuz i get the basic thing.

     

    :troll:

     

    Learn how to debug on eclipse so you won't have to compile for every single line that you edit. Once you're done you can compile & use.

     

    Yes i have to learn it, cuz now as you say i can edit only line by line. I gonna start java lessons. i think i can do something in a few weeks. But if u know good guide videos or links that could be awesome if u share.

  7.  

    You know that you have to import the sources and you could not google for that or find a youtube video? Come one :P

     

    1:10

     

     

     

    I did try them.. u think im lazy fat spammer? i didnt sit and wait for reply here.. i just write here for maybe one helper can see my problems.. So i cant get any answer from here.. that was hard because i was have no idea about sources, eclipse, import, zimport, pomport and anything.. NO IDEA. But anway, before this useless answers i find my way.. Without using eclipse, without source files, without compile.. Now im ok.

     

    You must edit your source on eclipse , after you must compile and last you take your edited compiled files/libs and put in your server files. Everything of you ask is shared. Read guides how to compile.

     

    Thanks for your reply. I write this topic because i cant find basically guide and i wasnt know where i have to start. So you guys have to understand firstly i was have NO IDEA about this work. But i resolved my problem, with my own way.

  8. Hi there,

     

    i did download L2j Frozen source and db from here and i want to edit it with eclipse. I have no idea about it but i did search and find something. 

     

    Firstly, in which i watched video they inserting it with " add svn repository " so this needing link. But i have folders in my computer. I havent idea which folder for which commands, which work but i want to try and learn. Just can you help me for starting? How can i imput it and how can i edit files, after how can i insert it in my live db?

     

    Please just help me for starting, i can learn it by try. I just want to learn, just help me with finding way.I just i want to first fire, i will burn galaxy C:

    Which i watched videos : 

    1-) 

    
    

    2-) 

    
    

    Thnx.

    post-75851-0-10451400-1442865735_thumb.png

    post-75851-0-04384200-1442865739_thumb.png

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock