Jump to content

Archagnel

Members
  • Posts

    31
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Archagnel

  1. Hi. I am looking for someone who is interested in investing in a new interlude high rate server.

     

    -I am a programmer

    -I used to work with some L2j packs few years ago

    -In last year I used to work with aCis pack for few months so I would like to set server on that pack (but on new files, would import my changes)

    -I have my own idea for L2j server which in my opinion may attract many people.

    -I would develope website and would do all things with machine

    -I used to play L2 since C3 for like 6 +/- years

     

    Who I am looking for ?

     

    -you have to have 20+ years (because I am looking for someone with brain, don't have time to deal with kids or ppl who can think logically)

    -someone who may cover all costs

    -someone who spent 2+ years on L2

     

     

    If you are interested in PM me for more info.

  2. so you want it's htm value ? forget about that, because its static on your client, the server just writtes the values as bytes to the client not the whole structure of it.

    Ok, thanks for info. Anyway thats not what I wanted to hear :D, but now I know I have to write it by my own. Or maybe You know if it is possible to intercept that request for showing skill (skill list -> then u click on skill -> and this request) so I could redirect it to my own class ?

  3.  

    it's definetly a serverpacket ExShowSkilllist.java

    In aCis pack there isnt anything like that.

     

    Do you want to duplicate this system just to add other items instead of Secret Book of Giants or?

     

    Otherwise, check RequestExEnchantSkill/RequestExEnchantSkillInfo. Basically, it's all connected to the L2EnchantSkillData, so you can search for it to find all the ways.

    I want to duplicate this so I need its code. I have already checked RequestExEnchantSkill,RequestExEnchantSkillInfo, L2EnchantSkillData but there isn't that what I wanted, anyway ty for trying to help.

  4. Hello I wanted to create custom npc which has also ability to enchant skills. I copied function from L2NpcInstance:

    public static void showEnchantSkillList(L2PcInstance player, L2Npc npc, ClassId classId)
    {
    	if (((L2NpcInstance) npc).getClassesToTeach() == null)
    	{
    		NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
    		final String sb = StringUtil.concat("<html><body>I cannot teach you. 
    My class list is empty.<br>Ask admin to fix it. Need add my npcid and classes to skill_learn.sql.<br>NpcId:", 
    String.valueOf(npc.getTemplate().getNpcId()), ", Your classId:", String.valueOf(player.getClassId().getId()), "<br></body></html>");
    		html.setHtml(sb);
    		player.sendPacket(html);
    		return;
    	}
    
    	if (!npc.getTemplate().canTeach(classId))
    	{
    		NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
    		html.setHtml("<html><body>I cannot teach you any skills.<br>You must find your current class teachers. </body></html>");
    		player.sendPacket(html);
    		return;
    	}
    
    	if (player.getClassId().level() < 3)
    	{
    		NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
    		html.setHtml("<html><body> You must have 3rd class change quest completed.</body></html>");
    		player.sendPacket(html);
    		return;
    	}
    
    	ExEnchantSkillList esl = new ExEnchantSkillList();
    	boolean empty = true;
    
    	List<L2EnchantSkillLearn> esll = SkillTreeTable.getInstance().getAvailableEnchantSkills(player);
    	for (L2EnchantSkillLearn skill : esll)
    	{
    		L2Skill sk = SkillTable.getInstance().getInfo(skill.getId(), skill.getLevel());
    		if (sk == null)
    			continue;
    
    		L2EnchantSkillData data = SkillTreeTable.getInstance().getEnchantSkillData(skill.getEnchant());
    		if (data == null)
    			continue;
    
    		esl.addSkill(skill.getId(), skill.getLevel(), data.getCostSp(), data.getCostExp());
    		empty = false;
    	}
    
    	if (empty)
    	{
    		player.sendPacket(SystemMessageId.THERE_IS_NO_SKILL_THAT_ENABLES_ENCHANT);
    
    		if (player.getLevel() < 74)
    			player.sendPacket(SystemMessage.getSystemMessage(
                                       SystemMessageId.DO_NOT_HAVE_FURTHER_SKILLS_TO_LEARN_S1).addNumber(74));
    		else
    			player.sendPacket(SystemMessageId.NO_MORE_SKILLS_TO_LEARN);
    	}
    	else
    		player.sendPacket(esl);
    
    	player.sendPacket(ActionFailed.STATIC_PACKET);
    }
    

    When I click on button it shows me list with all availables skill which can be enchanted, but when I click on any window dissapears. This function is called from :

    public void onBypassFeedback(L2PcInstance player, String command)
    {
    	if (command.startsWith("SkillList"))
    	{
    		player.setSkillLearningClassId(player.getClassId());
    		showSkillList(player, player.getCurrentFolkNPC(), player.getClassId());
    	}
    	else if (command.startsWith("EnchantSkillList"))
    		showEnchantSkillList(player, player.getCurrentFolkNPC(), player.getClassId());
    	else if (command.startsWith("GiveBlessing"))
    		giveBlessingSupport(player);
    	else
    		super.onBypassFeedback(player, command);
    }
    

    So I thought it is enough just to copy it, because there is nothing more called to show description after clicking on skill. Anybody knows where can I intercept that clicking on skill so I could write that code to display it?

  5. I explained why.

     

    "Another guy who don't read what I write".

     

    :troll:

     

    Lol, weird I didnt see your post before. Anyway thanks Tryskell, seems like there is no easier way to do that.

     

    Or maybe it is possible to compare two packs and make .diff between them ? Im using your 270 rev. so maybe am I able to compare clear rev 270 with mine to get diff ?

  6. then everytime you change something on eclipse you must create patch (.diff)

    Another guy who dont read before posting. I dont know how to create .diff did u read my first post?

     

    You can do a small trick. Create a SVN with clean version, download project from SVN, c/p all files from edited one, and commit it. I think it should work, i'm not sure :P

    Yeah it seems logic but the problem is to create SVN, because I havent done it before.

     

    Anybody has another idea than sweets?

  7. I don't know if there is a way to safe something after restart without connection with database...

    anyway gl ;)

    Are u dumb or blind? Read what I have written before u post ok ?

    Hello im doing one custom thing now but Im wondering how to create Instance for each player with stats that will be hold until shutdown/restart.

     

    Anyway I did it, topic can be locked.

  8. It doesnt matter what Instance I want... i want to know it as a global issue, but I want to do something like this http://maxcheaters.com/forum/index.php?topic=228394.0 but i dont want to hold this: rewardConsecutiveKillCount in L2Pcinstance, I want to hold this in new java file. For example I create:

    Rewards.java

    here:

    public class Rewards {

    private int rewardConsecutiveKillCount = 0;

     

    public void Increase() {

    rewardConsecutiveKillCount++;

    }

    public int getCounts() {

    return rewardConsecutiveKillCount;

    }

     

    }

    I want something like this and where should call this function to get this for every player that killed someone to hold his counts (I know something like this would hold this only until restart) ?

  9. Hello im doing one custom thing now but Im wondering how to create Instance for each player with stats that will be hold until shutdown/restart. For example im calling function DoSomething() in doDie from L2PcInstance in which I want to read or create if not exist Instance for each player(killer) with few statics for example I want hold there pvp stats, if something happens im raising it or reseting.

    Im thinking to do something similar like they have done in l2jFrozen:

     

    public class CustomPvpSystem{

     

      public CustomPvpSystem(L2PcInstance killer, L2PcInstance victim){

          this.setKiller(killer);

          this.setVictim(victim);

    ...

    Pvp pvp = PvpTable.getInstance().getPvp(killer.getObjectId(), victim.getObjectId(), systemDay);

    ...

    and in pvptable class:

    ...

    private static PvpTable _instance = null;

    ...

      public static PvpTable getInstance(){

          if(_instance == null){

            _instance = new PvpTable();

          }

         

          return _instance;

      }

     

     

    Will something like this work with this return instance ? Or can I do this easier?

     

    And the second question, how can I random array ? For example I have ex[] = {1,2,3,4} and I want to random this array but inside, NOT like to get random from this array.

×
×
  • Create New...