Jump to content

Recommended Posts

Posted

απο αλλο φορουμ? :S ειδα οτι ηταν ενα παρα πολυ καλο welcome.htm και ειπα να το κανω share εαν το ειχα δει εδω περα ποιος ο λογος να το κανω ξανα share?

Τέλος πάντων έχεις δώσει και Credits, και τι να σου πω δεν πειράζει δεν είναι το πρώτο ούτε και το τελευταίο re-share στο forum.

Posted

[code]Έχεις ακόμα να προσθέσεις πράγματα.και πάλι τόσες πληροφορίες είναι παντελός άχρηστες αλλά εντάξη :D

[code]
+if (Config.SHOW_HTML_WELCOME)
+{
+  String Welcome_Path = "data/html/welcome.htm";
+  File mainText = new File(Config.DATAPACK_ROOT, Welcome_Path); // Return the pathfile of the HTML file
+  if (mainText.exists())
+  {
+            String ip = "N/A";
+            String account = "N/A";
+            try
+            {
+               StringTokenizer clientinfo= new StringTokenizer(activeChar.getClient().toString()," ]:-[");
+               clientinfo.nextToken();
+               clientinfo.nextToken();
+               clientinfo.nextToken();
+               account = clientinfo.nextToken();
+               clientinfo.nextToken();
+               ip = clientinfo.nextToken();
+            }
+            catch (Exception e) {}
+            NpcHtmlMessage html = new NpcHtmlMessage(1);
+            html.setFile(Welcome_Path);
+            html.replace("%clan%", String.valueOf(ClanTable.getInstance().getClan(activeChar.getClanId())));
+            html.replace("%clan%",
String.valueOf(ClanTable.getInstance().getClan(activeChar.getClanId())));
+            html.replace("%allyid%", String.valueOf(activeChar.getAllyId()));
+            html.replace("%level%", String.valueOf(activeChar.getLevel()));
+            html.replace("%xp%", String.valueOf(activeChar.getExp()));
+            html.replace("%sp%", String.valueOf(activeChar.getSp()));
+            html.replace("%class%", activeChar.getTemplate().className);
+            html.replace("%ordinal%", String.valueOf(activeChar.getClassId().ordinal()));
+            html.replace("%classid%", String.valueOf(activeChar.getClassId()));
+            html.replace("%x%", String.valueOf(activeChar.getX()));
+            html.replace("%y%", String.valueOf(activeChar.getY()));
+            html.replace("%z%", String.valueOf(activeChar.getZ()));
+            html.replace("%currenthp%", String.valueOf((int)activeChar.getCurrentHp()));
+            html.replace("%maxhp%", String.valueOf(activeChar.getMaxHp()));
+            html.replace("%karma%", String.valueOf(activeChar.getKarma()));
+            html.replace("%currentmp%", String.valueOf((int)activeChar.getCurrentMp()));
+            html.replace("%maxmp%", String.valueOf(activeChar.getMaxMp()));
+            html.replace("%pvpflag%", String.valueOf(activeChar.getPvpFlag()));
+            html.replace("%currentcp%", String.valueOf((int)activeChar.getCurrentCp()));
+            html.replace("%maxcp%", String.valueOf(activeChar.getMaxCp()));
+            html.replace("%pvpkills%", String.valueOf(activeChar.getPvpKills()));
+            html.replace("%pkkills%", String.valueOf(activeChar.getPkKills()));
+            html.replace("%currentload%", String.valueOf(activeChar.getCurrentLoad()));
+            html.replace("%maxload%", String.valueOf(activeChar.getMaxLoad()));
+            html.replace("%patk%", String.valueOf(activeChar.getPAtk(null)));
+            html.replace("%matk%", String.valueOf(activeChar.getMAtk(null,null)));
+            html.replace("%pdef%", String.valueOf(activeChar.getPDef(null)));
+            html.replace("%mdef%", String.valueOf(activeChar.getMDef(null, null)));
+            html.replace("%accuracy%", String.valueOf(activeChar.getAccuracy()));
+            html.replace("%evasion%", String.valueOf(activeChar.getEvasionRate(null)));
+            html.replace("%critical%", String.valueOf(activeChar.getCriticalHit(null,null)));
+            html.replace("%runspeed%", String.valueOf(activeChar.getRunSpeed()));
+            html.replace("%patkspd%", String.valueOf(activeChar.getPAtkSpd()));
+            html.replace("%matkspd%", String.valueOf(activeChar.getMAtkSpd()));
+            html.replace("%access%",String.valueOf(activeChar.getAccessLevel()));
+            html.replace("%account%",account);
+            html.replace("%ip%",ip);
+            html.replace("%clanhallName%", ClanHall.getName());
+            html.replace("%clanhallId%", String.valueOf(ClanHall.getId()));
+            L2Clan owner = ClanTable.getInstance().getClan(ClanHall.getOwnerId());
+            if (owner == null)
+               html.replace("%clanhallOwner%","None");
+            else
+               html.replace("%clanhallOwner%",owner.getName());
+            sendPacket(html);
+         }

Config .java

public static int L2JMOD_WEDDING_DIVORCE_COSTS;

+public static boolean ALLOW_HTML_WELCOME;

 

L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));

+ALLOW_HTML_WELCOME;            = Boolean.parseInt(L2JModSettings.getProperty("EnableWelcome", "True"));

 

l2jmods.properties

 

πήγαινε κάτω κάτω και βάλε αυτό

 

#This will give usefull infromations when he log in
#Default : True
EnableWelcome = True

[/code][/code]

Posted

an mporouses p.x na balis kai to html gia epilogue freya k etsi 8a htan pl kalo

 

Ε ναι γιατί υπάρχει διαφορετική HTML για IL, GE και Freya.. ΠΦΦΦΦΦ

 

 

Locked.

1) Already Shared 2) O Author δεν ξέρει καν τι έχει κάνει share..

Guest
This topic is now closed to further replies.


  • Posts

    • I think that solves the freeze thing, anyway great share! 
    • Introducing: Daily & Weekly Missions!   I've released a major panel update with a new Missions system and expanded language support.   Players can now complete daily and weekly missions directly through the panel and claim rewards such as balance or items. Mission progress is tied to in-game activity and supported panel actions, and the update also adds a dedicated Missions page, dashboard mission previews, claimable mission indicators, and full admin tools for creating and managing missions.   The Roll page now shows the potential reward drops below the roll container.   Alongside this, I’ve expanded the panel’s language support with new locale options, including Bulgarian, Czech, Georgian, Lithuanian, Polish, Romanian, Japanese, Simplified Chinese, and Traditional Chinese.     The Demo is now updated with the new features for you to try out!
    • I sell complete packs. If you want to add an item, NPC, etc., you have to do that yourselves. Your friend bought the pack; he's the one who needs to configure his server type. He received what he bought as agreed, and I'm saying this without knowing who you're talking about, because anyone who buys something receives what was agreed upon.   Regards. mmmmm L2Velmore ????   If that's the one, I see everything went well... if I remember correctly you were crying over $100, I gave you a better price, and I suppose you made thousands with that... And you're still coming back to complain? :=)
    • I know many people have struggled with this specific issue and had trouble setting up the correct behavior for Toggle skills in aCis. By default, toggles interrupt the player's movement (retail-like), which often feels clunky to players who prefer a smoother, more modern experience. I've prepared a clean solution that eliminates this "freeze" and allows for fluid movement while toggling your auras. Below is the code on how to achieve this. Hope it helps! Changes in PlayerAI.java: Modified doActiveIntention to properly update the active state without stalling. Removed the forced stop() during toggle casting. Added a MoveToLocation broadcast to ensure other players see your movement correctly (prevents visual "teleporting" or desync). Best regards 😃 diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java index ba0425a..1b2658d 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java @@ -28,6 +28,7 @@  import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;  import net.sf.l2j.gameserver.network.serverpackets.AutoAttackStart;  import net.sf.l2j.gameserver.network.serverpackets.ChairSit; +import net.sf.l2j.gameserver.network.serverpackets.MoveToLocation;  import net.sf.l2j.gameserver.network.serverpackets.MoveToLocationInVehicle;  import net.sf.l2j.gameserver.network.serverpackets.MoveToPawn;  import net.sf.l2j.gameserver.network.serverpackets.StopMove; @@ -159,7 +160,10 @@      @Override      public synchronized void doActiveIntention()      { -        doIdleIntention(); +        prepareIntention(); +        _currentIntention.updateAsActive(); +        if (!getActor().isMoving()) +            thinkIdle();      }            @Override @@ -280,8 +284,9 @@                    if (skill.isToggle())          { -            getActor().getMove().stop();              getActor().getCast().doToggleCast(skill, target); +            if (getActor().isMoving()) +                getActor().broadcastPacket(new MoveToLocation(getActor()));          }          else          { https://pastebin.com/twZujZ3Y
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..