Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted
1 hour ago, giwrgos_ said:

kalhspera se oloys mia vohtheia ti kanw lathos sthn parakato gramh kai den pairnw to bg mesa sto cb?    eyxaristw

 

https://prnt.sc/1fovqrn

 

1ον επιτελους ειστε στο 2021, μαθετε να κανετε ενα ρημαδι POST σωστα. Εισαι στο L2OFF section και κανεις post για L2J. 

2ον ο κωδικας που βλεπω μου φευγουν δακρυα. 

3ον δοκιμασε 

html += "<table border=0 cellpadding=0 cellspacing=0 width=770 height=38 background=L2_Community.bg_new_index2"

αν και το πιθανοτερο ειναι οτι το βαζεις λαθος UTX ή δεν υπαρχει το texture.

  • 0
Posted

Πρεπει να γινεις πιο σαφης σε αυτο που ζητας γτ δεν νομιζω να βγαζει κανεις νοημα απο αυτο που εγραψες.

Θες να βαλεις background image μεσα στο CB ?

 

Γραψε :

1)Τι project εχεις.

2)Τι θες να κανεις.

3)Τι προβλημα αντεμετωπιζεις.

 

Παντως και να ηθελες να κανεις onBypassFeedback με αυτον τον τροπο ειναι λαθος.

Ενδεικτικα σωστα παραδειγματα (για NPC):
 

1ος τροπος create-send html packet με περιεχομενο απευθειας στον player απο τον κωδικα.

	@Override
	public void onBypassFeedback(Player player, String command)
	{
  	  if(command.startsWith("paparia")) {
 	   NpcHtmlMessage html = new NpcHtmlMessage(1);
       StringBuilder tb = new StringBuilder();
       StringUtil.append(tb, "<html><title></title><body>periexomeno</body></html>");
       html.setHtml(tb.toString());
       player.sendPacket(html);   
     }
    }


2ος τροπος open-send html packet εμφανιζοντας περιεχομενο απο html αρχειο.

	@Override
	public void onBypassFeedback(Player player, String command)
	{
  	  if(command.startsWith("paparia")) {
       //oti allo thes na kaneis
      }
    }


	@Override
	public String getHtmlPath(int npcId, int val)
	{
		String filename = "";
		if (val == 0)
			filename = "" + npcId;
		else
			filename = npcId + "-" + val;
		
		return "data/html/mods/paradigma/" + filename + ".htm";
	}



 Οσο για το Community Board που κανει parse commands με διαφορετικο τροπο. Δες πως λειτουργει γενικα για να καταλαβεις γτ αλλιως δεν...

  • Upvote 1
  • 0
Posted
7 hours ago, LordPanic said:

Πρεπει να γινεις πιο σαφης σε αυτο που ζητας γτ δεν νομιζω να βγαζει κανεις νοημα απο αυτο που εγραψες.

Θες να βαλεις background image μεσα στο CB ?

 

Γραψε :

1)Τι project εχεις.

2)Τι θες να κανεις.

3)Τι προβλημα αντεμετωπιζεις.

 

Παντως και να ηθελες να κανεις onBypassFeedback με αυτον τον τροπο ειναι λαθος.

Ενδεικτικα σωστα παραδειγματα (για NPC):
 

1ος τροπος create-send html packet με περιεχομενο απευθειας στον player απο τον κωδικα.

	@Override
	public void onBypassFeedback(Player player, String command)
	{
  	  if(command.startsWith("paparia")) {
 	   NpcHtmlMessage html = new NpcHtmlMessage(1);
       StringBuilder tb = new StringBuilder();
       StringUtil.append(tb, "<html><title></title><body>periexomeno</body></html>");
       html.setHtml(tb.toString());
       player.sendPacket(html);   
     }
    }


2ος τροπος open-send html packet εμφανιζοντας περιεχομενο απο html αρχειο.

	@Override
	public void onBypassFeedback(Player player, String command)
	{
  	  if(command.startsWith("paparia")) {
       //oti allo thes na kaneis
      }
    }


	@Override
	public String getHtmlPath(int npcId, int val)
	{
		String filename = "";
		if (val == 0)
			filename = "" + npcId;
		else
			filename = npcId + "-" + val;
		
		return "data/html/mods/paradigma/" + filename + ".htm";
	}



 Οσο για το Community Board που κανει parse commands με διαφορετικο τροπο. Δες πως λειτουργει γενικα για να καταλαβεις γτ αλλιως δεν...

to project pou exw einai fandc

sto community mesa sro game exw ena forum douleuei teleia  to mono problima einai oti den mpwro na valw ena bg apo utx

episeis einai grameno kateytheian sto java kai oxi san html mesa sth data

 

7 hours ago, Kara said:

 

1ον επιτελους ειστε στο 2021, μαθετε να κανετε ενα ρημαδι POST σωστα. Εισαι στο L2OFF section και κανεις post για L2J. 

2ον ο κωδικας που βλεπω μου φευγουν δακρυα. 

3ον δοκιμασε 

html += "<table border=0 cellpadding=0 cellspacing=0 width=770 height=38 background=L2_Community.bg_new_index2"

αν και το πιθανοτερο ειναι οτι το βαζεις λαθος UTX ή δεν υπαρχει το texture.

ebala th grammh pou mou eipes alla tpt pali to utx douleuei kanonika giati exw olo to cb mesa

  • 0
Posted (edited)
7 hours ago, giwrgos_ said:

sto community mesa sro game exw ena forum douleuei teleia  to mono problima einai oti den mpwro na valw ena bg apo utx

 

Δες αν μπορει να δειξει την εικονα με img src (βαλε της σωστες διαστασεις της εικονας).  Αν δεν την δειχνει παλι κατι εκανες λαθος στο client side.

String html = "<html><body><center><br>";
html += "<img src=L2_Community.bg_new_index2 width=720 height=38>";
html += "<br><table border=0 cellpadding=0 cellspacing=0 width=770 height=38>";

Στην περιπτωση που δουλευει το πανω. Ξανα γραψε τo html  αλλα με σωστη συνταξη.

String html = "<html><body><center><br>";
html += "<table border=0 cellpadding=0 cellspacing=0 width=770 height=38 background=L2_Community.bg_new_index2>";

 

Γενικα στειλε ολες της γραμμες κωδικα που φτιαχνουν το Html packet για να ξερουμε τι γινεται εκει μεσα.

Edited by LordPanic
  • 0
Posted
19 hours ago, LordPanic said:

 

Δες αν μπορει να δειξει την εικονα με img src (βαλε της σωστες διαστασεις της εικονας).  Αν δεν την δειχνει παλι κατι εκανες λαθος στο client side.

String html = "<html><body><center><br>";
html += "<img src=L2_Community.bg_new_index2 width=720 height=38>";
html += "<br><table border=0 cellpadding=0 cellspacing=0 width=770 height=38>";

Στην περιπτωση που δουλευει το πανω. Ξανα γραψε τo html  αλλα με σωστη συνταξη.

String html = "<html><body><center><br>";
html += "<table border=0 cellpadding=0 cellspacing=0 width=770 height=38 background=L2_Community.bg_new_index2>";

 

Γενικα στειλε ολες της γραμμες κωδικα που φτιαχνουν το Html packet για να ξερουμε τι γινεται εκει μεσα.

to bg to fortonei ok alla den to dixnei se olo to html poy anigeis apo to community mesa sto game

dixnei prwta olo to bg kai me scroll kateyeneis kai paei sto html 😞 

exw kanei poles alages all den katafera tpt 😞

https://prnt.sc/1ge96mr

https://prnt.sc/1geager

https://prnt.sc/1geb2q2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Dalam World — This is a new gaming project that brings together all the mechanics of your favorite games! I want to say right away that the game will run on all devices: Windows, Linux, macOS (Intel/Apple)! The Dalam World client features advanced graphics that will look great! The client also provides stable FPS even with a huge number of players! Dalam World is not a Salve or Chronicle client ported upward — it’s a completely remade game on its own proprietary game engine! Dalam World servers allow more than 100,000 people to exist in a single world without virtual instances, thanks to server technologies built with Elixir and Rust! Dalam World is the childhood game we love so much! From each of our favorite MMOs we took only the best elements! Low system requirements will let the game run on an old laptop! We redesigned the game so there are no bots or real-money traders! Game website: https://Dalam.World Game forum: https://Dalam.World/forums/ For arbitragers: https://careers.dalam.world/ Discord: https://discord.gg/vbQ347nuxd Telegram: https://t.me/+u1DNZPzscaRmNjYx Opening July 16, 2026 at 16:00 UTC!  
    • I'll give you my wallet if you want, haha
    • To make up for some of the waiting time we’re hosting a 3v3 Tournament on open Beta, and this time we’re raising the stakes with a $1,300 prize pool 💰   🏆 PRIZE POOL BREAKDOWN (Over 2000$ Worth of prices total)   🥇 1st Place — $700 🥈 2nd Place —$300 🥉 3rd Place — $200 🏅 4th Place — $100  5th -6th Place - $100 in Gold Coins each    All Participating Teams: $50 in Gold!   All Prices will be Paid out instantly after the tour, no waiting time and conditions. This is not simply a marketing move, we want to give back to the community.   📅 Date: Wednesday 06.05.2026 ⏰ Time: 20:00 Central European Timezone (Berlin) 📍Format: 3v3   ⚔️Why join? Cash Prices for top 4 and rewards for all participants Payments to winners sent out straight after the tournament - No waiting time or rules that you have to play live server to obtain the reward. Clean format, smooth matches, and solid prize pool and a chance to experience our brand new files   📝How to join: Form your 3-player team Group Leader Sign up here: ⁠📍・3v3-tour-registration (Include Name of Group, Name of Group Leader)   Be ready on match day!     A separate post with rules for the tournament and class setups will follow shortly.   Tag your teammates, lock in your roster, and get ready to compete. We'll be happy to see you on the OBT!   💬 Questions? Ask in ⁠🎫・ticket or send us a message   See you on L2Dark! 😏   Discord: https://discord.gg/FAJwnFpb8M
    • You should check if that condition is supported by your current sources. You can find this in  DocumentBase#parsePlayerCondition If it isnt there and you want to follow the same pattern of the other item conditions, create a custom condition to parse the classId (or multiple class ids) (there are examples to copy the code). Alternatively, you can create your own condition handler. Your condition should look like this: <cond msgId="1518"> <or> <player classId="ADVENTURER" /> <player classId="PALADIN" /> </or> </cond> or <cond msgId="1518"> <or> <player classId="93" /> <player classId="5" /> </or> </cond>  
    • it's Interlude client forgot to mention
  • 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..