Jump to content

Recommended Posts

Posted

Hello guys , I saw this feature in L2Sexi

When you go to pvp zone your name is changed to random name so you can't team with other players :D

When you exit your name is back.

its done by me I just took the pvp zone from  NeverMorε and added my code on it

To use this go to  game\data\zones and open  any zone you want to change and then change this

type="L2CustomPvP"

 

H5 L2jServer: http://pastebin.com/U0AUQh6f

Interlude L2jEsios http://pastebin.com/yPmzN4TN

 

Tested and working

 

Any questions please post here.

 

forgot to say you will have to create new column in character name in pvpname,small int and allow null

 

 

Update : instead of using db connection i just made a new random number generated when player enter

in the new update you dont need to make new column in database character tables

 

pastebin : http://pastebin.com/u6UpLHw1

 

Update : clan are removed when you enter

 

http://pastebin.com/nmYzxZwj

 

Posted

for each player that enter you open db connection ?

 

you can just save the itno a var and on exit re-use it for set name into the first 1

 

check :

 

+                       String i = "PvP Player";
+                       String ii = player.getName();

On Enter
+                       player.setName(i);

On exit
+                       player.setName(ii);

Posted

for each player that enter you open db connection ?

 

you can just save the itno a var and on exit re-use it for set name into the first 1

ok , thanks

I will update later

for each player that enter you open db connection ?

 

you can just save the itno a var and on exit re-use it for set name into the first 1

 

check :

 

+                       String i = "PvP Player";
+                       String ii = player.getName();

On Enter
+                       player.setName(i);

On exit
+                       player.setName(ii);

ok , it could be done like that but it wont give error if players have same name ?

Posted

it was just an example , you can generate names through numbers like we did in l2sexi ;) !

The porpuse of my post was to give you an idea on how to use the variables instead of connection db !

 

+1 karma from even if your shares are not totally done by you , just because you try and you share some staff ! Keep going !

Posted

it was just an example , you can generate names through numbers like we did in l2sexi ;) !

The porpuse of my post was to give you an idea on how to use the variables instead of connection db !

 

+1 karma from even if your shares are not totally done by you , just because you try and you share some staff ! Keep going !

Thanks :D

Posted

Hello guys , I saw this feature in L2Sexi

When you go to pvp zone your name is changed to random name so you can't team with other player :D

When you exit your name is back.

its done by me I just took the pvp zone from  NeverMorε and added my code on it

To use this go to  game\data\zones and open  any zone you want to change and then change this

type="L2CustomPvP"

 

Code : http://pastebin.com/U0AUQh6f

 

Tested and working

 

Any questions please post here.

 

forgot to say you will have to create new column in character name in pvpname,small int and allow null

 

 

 

 

I really Really like that .. Thanks for share dude your job is very nice ;)

Posted

use my tip :D ! A db connection for every player who enter or exit the Zone will cause lag !

 

also you forgot edit some texts of copy/pasting like

 _log.log(Level.SEVERE, "Could not restore premium items: " + e.getMessage(), e)

This will give wrong message in gameserver console in case of something goues wrong !

 

 

Posted

use my tip :D ! A db connection for every player who enter or exit the Zone will cause lag !

Ok i will update it when you enter it make new Random(); and then activeChar.setName(random.nextInt());

it alot easier this way

also you forgot edit some texts of copy/pasting like

Code: [select]

_log.log(Level.SEVERE, "Could not restore premium items: " + e.getMessage(), e)

This will give wrong message in gameserver console in case of something goues wrong !

will update in few minutes :D

 

updated : http://pastebin.com/u6UpLHw1

Guest
This topic is now closed to further replies.


  • Posts

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock