tiguz
Members-
Posts
177 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by tiguz
-
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
I took the time to download aCis and adapt a flag zone to it just to test, and the outcome is the same as in l2jfrozen: the flags stays forever, no matter what code I try lol. I ran out of ideas to fix it. -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
Im using frozen. I tried using the same methods in siege zone, but then the flag will never go away and to remove it the char must relog. The siege onExit is like this: protected void onExit(final L2Character character) { if (_castle.getSiege().getIsInProgress()) { character.setInsideZone(L2Character.ZONE_PVP, false); character.setInsideZone(L2Character.ZONE_SIEGE, false); if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE)); // Set pvp flag if (((L2PcInstance) character).getPvpFlag() == 0) { ((L2PcInstance) character).startPvPFlag(); } } } For some reason the method "startPvPFlag(); or updatePvPFlag(1) makes the flag status stays forever =/ -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
That worked! But then instead of staying 5 seconds in flag mode, the target goes to blinking phase straight away after leaving zone. So we have 2 scenarios, with updatepvpflag(1) the blinking phase doesnt happen...With updatepvpflag(2) the blinking phase happens straight away, instead of hapenning after 5 seconds of perm flag! Thank you @Tryskell so far! -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
So i tested something new: I created a startPvPFlag2 on l2character.java with 5seconds flag time after leaving pvp zone: /** * Start pvp flag. */ public void startPvPFlag2() { updatePvPFlag(1); _PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 5000, 5000); } Then I added startPvPFlag2() on onExit It works and gives me 5 seconds of flag time, but then it simply disapear alltogether instead of going to the phase of blinking purple/white like the standard pvp system. How can I add the blinking phase? -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
Searching there was my first option =p, found nothing -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
https://pastebin.com/7kf9eYTD its the shared multifunction zone from Wyatt. Lets hope you can find the bug, cause i read it many times and cant see anything. -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
I tested with the codes everybody gave me, but with those methods the flag will never go away. it stays forever. I tested too with updatePvpFlag, same outcome. I tested with it like this: L2PcInstance player = character.getActingPlayer(); player.setPvpFlagLasts(System.currentTimeMillis() + 3000); player.sendMessage("You Have Left The Chaotic Zone."); Also like this: L2PcInstance player = character.getActingPlayer(); player.updatePvPFlag(0); player.sendMessage("You Have Left The Chaotic Zone."); And also like this: @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false); if (character instanceof L2PcInstance) { L2PcInstance player = character.getActingPlayer(); player.setPvpFlagLasts(System.currentTimeMillis() + 3000); player.sendMessage("You Have Left The Chaotic Zone."); } } if (activeChar.getPvpFlag() != 0) activeChar.setPvpFlag(0); activeChar.updatePvPFlag(1); if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE)); // Set pvp flag if (((L2PcInstance) character).getPvpFlag() == 0) { ((L2PcInstance) character).startPvPFlag(); } } } I tested all these ways, none works =/ -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
Something that seemed so simple can turn into a nightmare -.-! Any more ideas? -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
If you mean something like this: L2PcInstance player = character.getActingPlayer(); player.setPvpFlagLasts(System.currentTimeMillis() + 3000); player.sendMessage("You Have Left The Chaotic Zone."); or this : L2PcInstance player = character.getActingPlayer(); player.updatePvPFlag(0); player.sendMessage("You Have Left The Chaotic Zone."); Does not work =/ -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
Thank you for your response. I used your code: @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false); if (character instanceof L2PcInstance) { L2PcInstance player = character.getActingPlayer(); player.setPvpFlagLasts(System.currentTimeMillis() + 3000); player.sendMessage("You Have Left The Chaotic Zone."); } } But like this, the target takes flag when he leaves the zone, but the flag never go away.. need to restart. -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
l2jfrozen 1118 -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
"PvpFlagTaskManager cannot be resolved" =/ -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
I tried with CastleZone method too, but it is the same as seen in a siege zone. With that method the flag lasts only 1 second. -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
That method doesnt exist =/ -
Request PvP Flag When leaving a chaotic zone
tiguz replied to tiguz's question in Request Server Development Help [L2J]
@Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false); if (character instanceof L2PcInstance) { L2PcInstance activeChar = ((L2PcInstance) character); activeChar.sendMessage("Attention: You left a PvP zone."); if(pvp_enabled) activeChar.stopPvPFlag(); } } This is the original OnExit, thats stops the flag imediatly. I want to make it blink purple and white for some 15 sec. -
Request PvP Flag When leaving a chaotic zone
tiguz posted a question in Request Server Development Help [L2J]
Hello once again dear users. In every chaotic Zone (auto flag) out there, the target instantly loses the pvp flag when it leaves the pvp zone, instead of losing it the normal way, some 15 seconds afters (blinking purple/white). In my experience, that is not a good thing cause people will simply run out the zone to run from pvp. I tried to fix that by using a few things, but none worked correctly. In my attempts so far, the target takes flag when runing out, but it will never go away. To make it disapear I need to relog. Most of the times, that is what happens. I looked in the SiegeZone.java to check how it worked there, and tried that as well, but in that case the Flag stays just for 1 second and disapear (But it works corrrectly when in siege). In the shared MultiFunctionZone.java, it is set like this: if(pvp_enabled) activeChar.stopPvPFlag(); (instantly removes the flag) So I tried to use the same method used for siege zone: if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE)); // Set pvp flag if (((L2PcInstance) character).getPvpFlag() == 0) { ((L2PcInstance) character).startPvPFlag(); } } } But it doesnt work like in a siege zone. I Also tried something like this: if (activeChar.getPvpFlag() != 0) activeChar.setPvpFlag(0); activeChar.updatePvPFlag(1); With this, the target will get pvp flag when it run out the flag zone, but the flag will never go aways like it was intented. Any help pls? Im using l2jfrozen 1118 -
So it means that the whole NPC HTML will be hard coded in core?
-
Thank you for your ideas. I tought it was a script, but makes senseto be done in core side, the buff counting. The line that shows the buff count I also dont know, cause I seached the custom UTX files the server uses and there is nothing there,so it doesnt requires the players to have it in his files. The closer I got with the buff icons was this =P I cant remove the space between the image and the top line tho. damn it!
-
Hello fellow users! How can I create the following things in HTML for the NPC? https://imgur.com/a/NE7Y2 The most dificult one is the bar couting the number of buffs.
-
@melron
-
U can enchant with donate coins, but not with this code im sure. Cause I fixed some stuff and I found no code for skill enchantment with donate coins at 100% chance. It only displays the normal skill enchant window for players using books.
-
skills for clan? Im talking about skill ENCHANT with donate coins, not clan. in your sv you can enchant skills with donate coins?
-
Ok I fixed.. just realised that the sql for the npc is wrong..update the main topic and change the sql.. Npc Type is L2Merchant ..pff..should be L2DonateShop. Paranoic.. in ur sv the skill enchant works? I think that code is missing from share...
-
I cant make it work for frozen..I spawned the npc id 100 but the html is empty! Whats wrong?
-
Code Multi Shop [Services/donate Npc] + Vip System
tiguz replied to 'Baggos''s topic in Server Shares & Files [L2J]
Nice share, do you have a version for l2jfrozen? I tried to adapt myself but didnt succeed..
