marwan Posted November 13, 2012 Share Posted November 13, 2012 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 Link to comment Share on other sites More sharing options...
`NeverMore Posted November 13, 2012 Share Posted November 13, 2012 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); Link to comment Share on other sites More sharing options...
marwan Posted November 13, 2012 Author Share Posted November 13, 2012 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 ? Link to comment Share on other sites More sharing options...
`NeverMore Posted November 13, 2012 Share Posted November 13, 2012 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 ! Link to comment Share on other sites More sharing options...
marwan Posted November 13, 2012 Author Share Posted November 13, 2012 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 Link to comment Share on other sites More sharing options...
GsL Posted November 13, 2012 Share Posted November 13, 2012 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 ;) Link to comment Share on other sites More sharing options...
danuta Posted November 14, 2012 Share Posted November 14, 2012 WTF!!?? X( FFS i paid 15 euros for this feature couple of months ago!! X( Link to comment Share on other sites More sharing options...
InTheEndॐ Posted November 14, 2012 Share Posted November 14, 2012 for what client is this? Link to comment Share on other sites More sharing options...
marwan Posted November 14, 2012 Author Share Posted November 14, 2012 for what client is this? coded on H5 but i can adapt to any client for you Link to comment Share on other sites More sharing options...
InTheEndॐ Posted November 14, 2012 Share Posted November 14, 2012 coded on H5 but i can adapt to any client for you Interlude please. Link to comment Share on other sites More sharing options...
marwan Posted November 14, 2012 Author Share Posted November 14, 2012 Interlude please. here you go http://pastebin.com/yPmzN4TN interlude l2jesios Link to comment Share on other sites More sharing options...
`NeverMore Posted November 14, 2012 Share Posted November 14, 2012 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 ! Link to comment Share on other sites More sharing options...
marwan Posted November 14, 2012 Author Share Posted November 14, 2012 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 Link to comment Share on other sites More sharing options...
RandomDude Posted November 14, 2012 Share Posted November 14, 2012 I suggest you to make it give players class as names. Will the clan+ally get hided too when you enter? (Think i saw it like this on craze server) Link to comment Share on other sites More sharing options...
marwan Posted November 14, 2012 Author Share Posted November 14, 2012 I suggest you to make it give players class as names. Will the clan+ally get hided too when you enter? (Think i saw it like this on craze server) I'am working on that UPDATED : now when you enter clan are removed http://pastebin.com/nmYzxZwj Link to comment Share on other sites More sharing options...
Recommended Posts