Jump to content

Question

9 answers to this question

Recommended Posts

  • 0
Posted

I think the character creation process is only done client side. What happens when you hit create is all of the selected properties are sent to the server in a packet.

 

There is a static function in L2PcInstance called create, which creates a character. One of the paramters is L2PcTemplate template. You can look at public final Race race; and see what the character picked. If the race isn't whichever one you want you can block the character from being created.

  • 0
Posted

This is a client side issue, this has nothing to do with the server.

For you to make the modification you want you'd need access to the client source code. You should ask these dudes down here for help:

http://maxcheaters.com/forum/index.php?board=68.0

 

But what I honestly think is that it isn't possible to modify this. The only thing you can do is block it via the server.

  • 0
Posted

enterworld.

if(activeChar.getRace() != Race.XXX)
		{
			//code
                                return;
		}

 

you can do it only via this way,but still I dont know how you can totally remove their selection(dwarf example),and I rly doubt if that can be achieved.

the only way that you can do a such thing,or semi one,is what i posted above.

  • 0
Posted

enterworld.

if(activeChar.getRace() != Race.XXX)
		{
			//code
                                return;
		}

 

you can do it only via this way,but still I dont know how you can totally remove their selection(dwarf example),and I rly doubt if that can be achieved.

the only way that you can do a such thing,or semi one,is what i posted above.

 

EnterWorld is executed after the creation of the character (if im not wrong), so its not a rly good way to block it, the best one is to find the packet received with data of the new char and send some action failed pack ( even the one that say that the name is already in use)

 

Btw Franky gratz for "Posts: 3.500"

  • 0
Posted

EnterWorld is executed after the creation of the character (if im not wrong), so its not a rly good way to block it, the best one is to find the packet received with data of the new char and send some action failed pack ( even the one that say that the name is already in use)

 

Btw Franky gratz for "Posts: 3.500"

yes i know.

I explained before that its not a good way to do it,because they will be able to select the race and only when they are logging in the game they will be kicked/ban or whatever he wants.I dont think that there is a way to totally remove their selection,but even if that's possible for sure it needs client edit too.

Btw Franky gratz for "Posts: 3.500"

thanks (?)
  • 0
Posted

If you want to get rid of all the characters that aren't these races already, just run a DELETE query on your database where rows match the ID's you don't want to have in your world.

 

Then where you should put the check is in:

	public static L2PcInstance create(int objectId, L2PcTemplate template, String accountName,
                                  String name, byte hairStyle, byte hairColor, byte face, boolean sex)
{
	// Create a new L2PcInstance with an account name
	PcAppearance app = new PcAppearance(face, hairColor, hairStyle, sex);
	L2PcInstance player = new L2PcInstance(objectId, template, accountName, app);

	// Set the name of the L2PcInstance
	player.setName(name);

	// Set the base class ID to that of the actual class ID.
	player.setBaseClass(player.getClassId());

	if (Config.ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE)
		player.setNewbie(true);

	// Add the player in the characters table of the database
	boolean ok = player.createDb();

	if (!ok)
		return null;

	return player;
}

 

Which is called whent he player wants to create a character. You can just return null if they're using a race you don't want them to use.

 

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

    • [WTS] Celestial Destiny | L2 Essence 563 | Source Code or Full Project | Lifetime Support 📄 VIEW THE FULL PRESENTATION — FEATURES & SCREENSHOTS Celestial Destiny — Lineage 2 Essence | Protocol 563 2 years of development · Extensive custom features · RU / EN Celestial Destiny is available for purchase — as server pack source code or as a complete project. After two years of development, the project was shut down following a DDoS attack. The owner no longer has the funds to restore operations and continue development, leading to the decision to sell. Key features Essence mechanics: classes, skills, bosses, collections, guardians, and progression systems. Over 3,000 bug reports processed across the projects. Telegram bot: Telegram Stars payments, character statistics, notifications, teleportation, resurrection, and auto-hunting controls. Live class balancing: adjust damage, defense, critical damage, and individual multipliers without restarting the server. PvP content: 1v1 and 3v3 Olympiad, castle sieges, World Siege of Aden, and scheduled PvE/PvP modes. Enhanced client: additional skill bars, improved auto-hunting, searchable inventory, bulk enchanting, and convenient item management. Custom systems: expanded costumes, seasonal collections, Combat Power rankings, Revelation skills, Season Pass, promo codes, and two-way Discord chat. Economy: world trading with two currencies and a server-side donation shop that requires no client edits. Two purchase options ① Server pack source code Essence protocol 563 source code with the implemented mechanics and custom features, for use in your own project. ② The entire project The server pack with source code, game client, all web components, donation system, Telegram bot, and all existing configured integrations — transferred in their current state. We will show the project, its web components, and connected systems privately, and discuss the exact scope of the transfer. Free lifetime support All official content and custom features already included in the server pack are covered by free lifetime support, with no monthly fees. Additional custom development is discussed separately. Serious buyers only For serious investors and server administrators with the budget to purchase and develop the project. This is not a low-budget offer. Pricing for both options is discussed privately. Please specify whether you are interested in source code or the complete project. ✉️ CONTACT US ON TELEGRAM — @L2scripts 📄 VIEW THE FULL PRESENTATION — FEATURES & SCREENSHOTS
    • I've found the Conquest maps and Marketplace flipping to be the most reliable for me. Don't sleep on those Diamond Quest challenges either, just watch that 10% tax carefully.
    • When you say bots allowed, it means we are allowed to use adrenaline ?
    • https://l2mayhem.ru/   The Mayhem Server is designed for players who want to enjoy the game without unnecessary stress or steep barriers. We focus on a comfortable gaming experience: the mechanics are adapted so that even newcomers can get up to speed quickly, while veterans will be happy to return to the beloved universe. On the server, character progression and content difficulty are well balanced: your character develops steadily, without the need to spend huge amounts of time on repetitive tasks. For players’ convenience, we’ve implemented autofarm - it lets you complete daily tasks efficiently. Moreover, bots are officially allowed on the server: they help automate routine actions, so you can focus on the most exciting parts of the game - sieges, PvP, clan wars, and crafting. The server’s atmosphere is friendly: the active community is always ready to offer advice, and the administration ensures order and fairness. Whether you’re looking for a relaxed leveling and world‑exploration experience or want to take part in intense events, everyone can find their own pace and playstyle here. Right now, the server features new activities: we’ve added new instances and locations with unique mechanics and rewards, as well as rare items that can only be obtained in these zones. This is a great chance to get powerful gear and stand out among other players.   Rates: - Grind: EXP/SP x3 (Raid Bosses: x3). - Loot: Drop/Spoil/Adena x3; Raid/Epic Raid drops x3. - Quests: All rewards x1.   Gameplay: - Accounts are created automatically. - Mammons is located in the Town of Giran. - Each character has access to the unlimited Auto Farm function. - Mass party functions activated by the party leader. - A pre-installed shortcut panel is provided for each new character. - The full list of chat commands is available on the Community Board. - Players have a x25 weight limit and an increased inventory capacity. - All buffs, dances, and songs last for 2 hours. - Spawn protection lasts 10 seconds after teleporting. - Treasure Chests have been removed from spawns. - Cursed Weapons have been removed from drops. - Common items can no longer be purchased or obtained as drops. - Mobs and Raid Bosses no longer use Cancel skill. - Equipment up to the Dynasty can be purchased with adena. - Shots up to S grade and consumables are available in the Community Board. - Offline shops are supported: simply set up a shop and type the .offline command in chat. - No drop penalty on Raid Bosses unless the player is over 5 levels higher than the boss; otherwise, the drop chance is reduced. - Mana Potions restore 1500 MP and have a 10‑second reuse time. Newbie Mana Potions restore 500 MP. - The Vitality, Nevit, and Recommendations systems have been disabled. - The store now offers a lower buy price for player‑sold items. - NPC Victor visits Town of Giran on Wednesdays and Saturdays for gear/doll upgrades and elemental exchange. - Once you hit level 40, every mob can drop one of three medals: Bronze, Silver, or Gold.   Premium: - +35% to EXP/SP, Adena, Seal Stones, Element Stones, and Epaulette drops. - Buffs, dances, and songs last 3 hours. - With Premium, players can get 3‑hour buffs by purchasing them from other players.   Enchanting: - The chance to successfully enchant gear is 65%. Safe enchantment is up to +3; the maximum enchant level is +20. - Elemental Stones: 50% chance. Elemental Crystals: 30% chance.   Skills: - Auto‑learn all skills and Forgotten Skills. - 30 buff slots, 12 Dance/Song slots. - Subclass max level raised to 85.   Quests: - 25 000 Adena is required to obtain the 1st class; 250 000 Adena for the 2nd class; 10 000 000 Adena for the 3rd class. - The subclass quest is not required. - The Freya quest is not required. - The Hard Freya quest is not required. - Access to Frintezza is granted only after completing the quest or upon having the purchased quest item. - Access to Baium is granted only after completing the quest or upon having the purchased quest item. - Access to Antharas is granted only after completing the quest or upon having the purchased quest item. - Access to Valakas is granted only after completing the quest or upon having the purchased quest item. - Hellbound progression is at level 1.   Olympiad: - Olympiads are held monthly. - Enchantment limit is +6. - Starting Olympiad requires 6 characters. - You need 15 battles to receive a reward. - Only non‑class battles are available.   Sieges/Territory Wars: - Flags are returned to their owners at the start of each Territory War, which occurs every 2 weeks. - A clan’s maximum number of captured flags in TW is 3.   Raid Bosses/Epic Bosses/Instance Features: - RB status is available on the Community Board. - Freya - 6-27 chars to enter. - Hard Freya - 6-27 chars to enter. - Frintezza - 6-45 chars to enter. - Ultra Daytime Zaken - 6-9 chars to enter. - Daytime Zaken - 6-9 chars to enter. - Nightly Zaken - 6-450 chars to enter. - Tiat - 9-45 chars to enter. - Beleth - 9 chars to enter. - Day/night restrictions for all Zaken instances have been removed. - Level‑limited zones: Ant Nest (levels 1–45), Sea of Spores (levels 1–56), Core (levels 1–56). - Almost all Raid Bosses listed in the Community Board drop an Enchanting Box with a 100% chance. - New Raid Bosses and their jewelry have been added. Teleport to these bosses via NPC Mirelle in Town of Giran. - New Instances: dolls, timed epic jewelry, and upgrade item for cloaks, bracelets, and accessories. Enter via NPC Ancient Portal in Town of Giran; 6-9 chars to enter.
  • 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..