Jump to content

Recommended Posts

Posted

Nop, I don't need it. I never used and I won't use frozen.. :D

 

Well, yeah, it could work since with false you're no longed inside Multifunction zone..

its tested :) so i posted :D 

Posted (edited)

its tested :) so i posted :D

If you say so :troll:

 

@ Wyatt

if (pvp_enabled && (activeChar.getPvpFlag() == 0))
{
       activeChar.updatePvPFlag(1);
}

Dont you think dat would be cleaner/bettah?

if (pvp_enabled)
{
       activeChar.updatePvPFlag(1);
}

No difference if you're already flagged or not. I find it kinda useless hih :P

Edited by SweeTs
Posted

If you say so :troll:

 

@ Wyatt

if (pvp_enabled && (activeChar.getPvpFlag() == 0))
{
       activeChar.updatePvPFlag(1);
}
Dont you think dat would be cleaner/bettah?

if (pvp_enabled)
{
       activeChar.updatePvPFlag(1);
}
No difference if you're already flagged or not. I find it kinda useless hih :P

 

Whatever, who cares of that, it's not gonna be commited anywhere and it works both ways so, QQ
  • 3 weeks later...
Posted (edited)

Hello,

I use H5 Core rev 5667 so it's pretty close, yet I don't have the Java file "ZoneID.java", how can I make this work without that Java? I will share the code if someone helps me fix that problem :/ Also I will try to adapt to newest revision as I will use the newest revision as well later.

Edit: So I managed to adapt it to rev 5667 H5 stable:

http://pastebin.com/wiMKTScH

 

No errors etc in eclipse.

Console Error:

2013.11.06 21:25:25,934    WARNING    1    com.l2jserver.gameserver.instancemanager.ZoneManager    ZoneData: No such zone type: MultiFunctionZone in file: peace.xml

Anyone can help?

 

Best Regards,

DeathSpank287

Edited by DeathSpank287
Posted (edited)
ZoneData: No such zone type: MultiFunctionZone in file: peace.xml

I believe your new file must be named MultiFunctionZone.xml .. :P

 

Edit: Or maybe not.. Well, just check :troll:

Edited by SweeTs
Posted
ZoneData: No such zone type: MultiFunctionZone in file: peace.xml

I believe your new file must be named MultiFunctionZone.xml .. :P

 

Edit: Or maybe not.. Well, just check :troll:

 

Unfortunatelly, after reading you reply, I tried with negative results. Thanks though

Posted (edited)

How can we remove clan of player and put it back when he goes out of the zone? But if he gets client crash his clan should be restored too.

 

You should play with CharInfo.java, so the effect will be just visual.

 

 

Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
===================================================================
--- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java    (revision 313)
+++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java    (working copy)
@@ -20,6 +20,7 @@
 import net.sf.l2j.gameserver.model.Location;
 import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
 import net.sf.l2j.gameserver.model.itemcontainer.Inventory;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
 import net.sf.l2j.gameserver.skills.AbnormalEffect;
 
 public class CharInfo extends L2GameServerPacket
@@ -153,10 +154,20 @@
         else
             writeS(_activeChar.getTitle());
         
-        writeD(_activeChar.getClanId());
-        writeD(_activeChar.getClanCrestId());
-        writeD(_activeChar.getAllyId());
-        writeD(_activeChar.getAllyCrestId());
+        if(_activeChar.isInsideZone(ZoneId.ZONE_MULTIFUNCTION))
+        {
+            writeD(0);
+            writeD(0);
+            writeD(0);
+            writeD(0);
+        }
+        else
+        {
+            writeD(_activeChar.getClanId());
+            writeD(_activeChar.getClanCrestId());
+            writeD(_activeChar.getAllyId());
+            writeD(_activeChar.getAllyCrestId());
+        }
Edited by SweeTs
Posted

 

You should play with CharInfo.java, so the effect will be just visual.

Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
===================================================================
--- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java    (revision 313)
+++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java    (working copy)
@@ -20,6 +20,7 @@
 import net.sf.l2j.gameserver.model.Location;
 import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
 import net.sf.l2j.gameserver.model.itemcontainer.Inventory;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
 import net.sf.l2j.gameserver.skills.AbnormalEffect;
 
 public class CharInfo extends L2GameServerPacket
@@ -153,10 +154,20 @@
         else
             writeS(_activeChar.getTitle());
         
-        writeD(_activeChar.getClanId());
-        writeD(_activeChar.getClanCrestId());
-        writeD(_activeChar.getAllyId());
-        writeD(_activeChar.getAllyCrestId());
+        if(_activeChar.isInsideZone(ZoneId.ZONE_MULTIFUNCTION))
+        {
+            writeD(0);
+            writeD(0);
+            writeD(0);
+            writeD(0);
+        }
+        else
+        {
+            writeD(_activeChar.getClanId());
+            writeD(_activeChar.getClanCrestId());
+            writeD(_activeChar.getAllyId());
+            writeD(_activeChar.getAllyCrestId());
+        }

 

Thanks! Awesome!

Posted

Hello,

Edit: So I managed to adapt it to rev 5667 H5 stable:

http://pastebin.com/wiMKTScH

 

No errors etc in eclipse.

Console Error:

2013.11.06 21:25:25,934    WARNING    1    com.l2jserver.gameserver.instancemanager.ZoneManager    ZoneData: No such zone type: MultiFunctionZone in file: peace.xml

Anyone can help?

 

Best Regards,

DeathSpank287

 

Anyone else can help?

Posted (edited)

If you say so :troll:

 

@ Wyatt

if (pvp_enabled && (activeChar.getPvpFlag() == 0))
{
       activeChar.updatePvPFlag(1);
}

Dont you think dat would be cleaner/bettah?

if (pvp_enabled)
{
       activeChar.updatePvPFlag(1);
}

No difference if you're already flagged or not. I find it kinda useless hih :P

Whatever, who cares of that, it's not gonna be commited anywhere and it works both ways so, QQ

 

 

Actually it does make a difference! A BIG difference as I have previously shown. But I guess he likes bugs in his code.

 

"commited" to a mod? LoL. This isn't a svn, or a project, it's a mod, fix the stupid bug and get over it. It's not even that complete. You're actually missing many checks that should be in other parts of the core. If you would like to see a fully complete "pvp" flag zone, I'll be happy to share mine. For instance where are your checks in the ZoneManager class? Where are the security and zone checks in the MapRegionTable class? I could go on and on, but I won't. Fix the stupid bug and be done with it.

 

Just because "it works" , and really it doesn't work properly, doesn't mean it's perfect. Stop being so stubborn and ignorant and take advice and bug reports/corrections when given.

 

It can be exploited so people in the "zone" will eventually go back to unflagged status. Doesn't matter if it's an "enclosed" zone or not. Simply hit someone before you teleport or run in to the zone, wait 30-60 seconds after going in to the zone, and you will UNFLAG, if you have not died. If you attack people inside the zone it's simply delayed until you stop attacking + 30-60 seconds (depending on server config).

 

http://www.maxcheaters.com/topic/139771-multifunctionzone/page-9?do=findComment&comment=2245950

 

Wondering if I will be 'punished' with de-rep or whatever because I spoke the truth... Time will tell..

Edited by MlDNlGHT

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Dear players, From April 19 to April 27 inc., the Bonus Start event will be active. It’s designed to help new and low-level characters get started more easily.   All characters that meet one of the following conditions: — created less than 3 days ago (regardless of level), — currently level 20 or below, — created during the event period, will receive upon login: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each).   Event items will be removed approx. 09.05.2025 Server rates will be increased to x2.25. Take this chance to start your journey with ease or bring an old hero back into the fight — it’s the perfect time to test your strength! Open Beta Test is started!  Helper cats are waiting in towns — talk to them to receive the necessary equipment and level up your character. Siege Schedule:  - April 13 at 16:00 (GMT+2) – Innadrile Castle - April 14 at 20:00 (GMT+2) – Bandit Stronghold - April 15 at 20:00 (GMT+2) – Devastated Castle 📌 During the OBT, players who report bugs will receive CoL:   - 1 CoL for each reported staticmeshes bug (e.g., walking through textures, stairs, etc.) - 2 CoL or more for server-related issues (depending on severity) You can report bugs on the forum. The Open Beta Test will run approximately until April 15 at 23:00 (GMT+2). Your activity and feedback will help us improve the game.   Download links: Download client | Download updater 
    • begin if (user.dead) then begin delay(555); Engine.GoHome(rtCastle); print('User dead, going to castle..') end; end.  
    • Hello everyone. Long time no see. I've been trying to play L2 on my 4k monitor, however the UI is extremely small.  I checked around the internet and couldn't find a guide on how to keep the resolution high and the UI size a bit bigger. I either get small UI + full resolution (correct resolution of monitor), or normal sized UI but resolution set to full HD (which doesn't really look good on a 4k screen). Adjusting scaling on display settings doesn't change the UI just the text on L2. Does anyone know a way to increase the UI size only and keeping the screens resolution same (4k) ? I'll share a screenshot as an example, and it 's not even full screen mode. https://freeimage.host/i/3cvPVnI  
    • Hello guys. I want to know if there is a way(script or something) to make character go to castle after death in adrenaline bot
    • hahahahahahahahahahhaaahahaha
  • Topics

×
×
  • Create New...