Λοιπόν, εδώ και πολλές μέρες έψαχνα πώς να κάνω στο διάλογο του NPC να λέει το όνομα του χαρακτήρα π.χ: Hello 'name'! Ζήτησα βοήθεια και απο L2J , μου έδωσαν ένα κωδικό να τον βάλω αλλά δεν ξέρω που ακριβώς, ορίστε τι μου είπαν:
You have as basis the source file "net.sf.l2j.gameserver.model.actor.L2Npc.java" with the function "onBypassFeedback". If you created a new extension of L2Npc class, then you have to override this function, otherwise you have to handle it in this way:
Κώδικας:
# NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
# html.setFile("HERE THE PATH TO THE HTM FILE");
# html.replace("%playername%", player.getName());
# player.sendPacket(html);
Now you will be answered by the npc with the htm file but replacing the plain text %playername% in this file transformed into the player name.
You can add as many replacements as you want.
Τους είπα πως δεν γινόταν τίποτα και μου είπε να σιγουρευτώ αν το NPC μου είναι L2Npc , και πάλι...δεν δουλεύει.
Αν κάποιος έχει καμία ιδέα και μπορεί να με βοηθήσει θα το εκτιμούσα πολύ!
Ευχαριστώ!
Υ.Γ: Αν πειράζει που έκανα επικόληση αυτά που μου είπαν η παραβίασα κάποιον κανόνα , ζητώ συγνώμη.
https://discord.gg/k53SZ4DM5z
Interlude Client
L2Old Pride is a L2 Pride Interlude Based
All functional skills (Not archer/mage server)
L2Old Pride Helper (Works like Woundrous Cubic)
https://imgur.com/iYqmHQY
Farm Zones: Cave of Trials and Elven Ruins (Chaotic)
Olympiads: Every 15 days
Various Cosmetic Items
https://imgur.com/uoeU6Jw
https://imgur.com/oCS2Zed
PvP Zone: Gludin Village (No-Parties, Disguised)
More than 100 new Skills
https://imgur.com/6RaPsQV
Max Level: 90
https://imgur.com/z4QVJKZ
Gaining Xp by PVP
https://imgur.com/LRqI31T
Purchasable S-grade items +10 or +20 with random chance to enchant +5
Purchasable Custom Items Depends on Tier
Mysterious Merchants
https://imgur.com/2ZwWyPH
Auto Enchant Via PvPing (with low chance)
Custom Raid Bosses
Siege Every Weekend (Aden, Rune, Giran)
Autofarm / Drop Tracker
https://imgur.com/Vz3rha6
RATES:
• Start Level 80
• Max level 90
• EXP: 5000x
• SP: 5000x
• ADENA 6000x
ENCHANT:
• Maximum enchant S Grade Items: +35.
• Maximum enchant Unique/Epic Items: +25.
• Maximum enchant Legendary Items: +18.
• Maximum enchant Relic Items: +14.
•Descriptions for rate at scrolls!
EVENTS:
• TEAMS vs TEAMS
• CAPTURE THE FLAG
• DOMINATION
• DEATH MATCH
• DICE OF DEATH
• CHAOTIC ZONE
OTHERS:
Assistance system in pvps. Where support classes are enabled to receive pvp with a low chance, for supporting a party member during pvp.
• /sit to regen HP/MP/CP
• Custom Shots Glows
https://imgur.com/FLK0DmR
• Achievements System
• Daily Tasks System
• Monthly Tasks System
CUSTOM ARMORS SETS
Dread Armor/Titanium Armor
Pride Armor
Rykros Armor
https://imgur.com/SPxoQp1
CUSTOM WEAPONS SETS
Unique Weapons
Pride Weapons
Legendary Weapons
Relic Weapons
https://imgur.com/kOHNXhS
CUSTOM ACCESSORIES
Standard
Superior
Legendary
https://imgur.com/zPqNiiX
CUSTOM JEWELS/TATTOO
Legendary
Nightmarish
https://imgur.com/gcqS28P
There are many more features that you will only understand by playing and following. Beta testing server is currently open. Follow us on our discord and join our server to test it.
You shouldn't use rev 382, not sure why everyone keep using that.
I don't make changesets for fun, I don't make new revisions for nothing.
Follow the revisions.
Question
Sindelia
Καλησπέρα!
Λοιπόν, εδώ και πολλές μέρες έψαχνα πώς να κάνω στο διάλογο του NPC να λέει το όνομα του χαρακτήρα π.χ: Hello 'name'! Ζήτησα βοήθεια και απο L2J , μου έδωσαν ένα κωδικό να τον βάλω αλλά δεν ξέρω που ακριβώς, ορίστε τι μου είπαν:
You have as basis the source file "net.sf.l2j.gameserver.model.actor.L2Npc.java" with the function "onBypassFeedback". If you created a new extension of L2Npc class, then you have to override this function, otherwise you have to handle it in this way:
Κώδικας:
# NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
# html.setFile("HERE THE PATH TO THE HTM FILE");
# html.replace("%playername%", player.getName());
# player.sendPacket(html);
Now you will be answered by the npc with the htm file but replacing the plain text %playername% in this file transformed into the player name.
You can add as many replacements as you want.
Τους είπα πως δεν γινόταν τίποτα και μου είπε να σιγουρευτώ αν το NPC μου είναι L2Npc , και πάλι...δεν δουλεύει.
Αν κάποιος έχει καμία ιδέα και μπορεί να με βοηθήσει θα το εκτιμούσα πολύ!
Ευχαριστώ!
Υ.Γ: Αν πειράζει που έκανα επικόληση αυτά που μου είπαν η παραβίασα κάποιον κανόνα , ζητώ συγνώμη.
10 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now