Jump to content
^Wyatt

Code Custom Pets ~Dressme

Recommended Posts

Well this code is simple, and here what it does:

  • With a custom item that you can change (I used Tutorial Guide) you can summon a custom pet
  • The custom pet by default is Dragon Bomber
  • With the command ".copypet" and with a Monster, NPC... as your Target, you can change the visual style ~aka dressme, of your custom pet
I find it funny and it's fast to code/add to your server, you can also edit the custom pet stats in the .xml file.

For those people that don't like to have common pets, here you have the option to make any NPC or mob your own custom pet, hope you enjoy :)

 

 

Credits: Wyatt

Prieview

 

3bab91c1bd.png

 

Coded for L2jServer H5 Stable - Tested and working - by Wyatt

http://pastebin.com/5MN1RvUk

 

SQL here

INSERT INTO `custom_npc` VALUES ('9005', '13085', 'Dragon Boomber', '0', '', '0', 'LineageMonster4.foxian_wizard_pet', '16', '24', '55', 'male', 'L2Pet', '40', '1673.054730000000000', '889.800000000000000', '6.500000000000000', '2.400000000000000', '35', '37', '30', '32', '20', '25', '0', '0', '388.11142', '223.63620', '265.02979', '163.64727', '253', '4', '333', '0', '0', '0', '35.00000', '170.00000', '0', '1');
INSERT INTO `npcaidata` VALUES ('9005', '7', '15', '0', '0', '1', '1', '1', '0', '0', '0', '0', '2', '2', '0', '0', '0', '0', 'null', '0', 'null', '0', '0', 'fighter');
ALTER TABLE characters ADD customPet INT(10) NOT NULL DEFAULT 0;
Edited by ^Wyatt
  • Upvote 1

Share this post


Link to post
Share on other sites

ON: Nice share wyatt ! Something that will change a little the boring face of lineage.

OFF: Girls making L2 Servers nodays  :troll:

 

E-girls.

Share this post


Link to post
Share on other sites

Nice work, but I guess its too hard coded for the results it provides...

 

You could work by just making ur pet broadcasting your target's npcInfo like: broadcastPacket(npcInfo(activeChar.getTarget()));

 

or even simplier changeing the opcode of petInfo into npcInfo and writing the required npcInfo bytes

Share this post


Link to post
Share on other sites

Nice work, but I guess its too hard coded for the results it provides...

 

You could work by just making ur pet broadcasting your target's npcInfo like: broadcastPacket(npcInfo(activeChar.getTarget()));

 

or even simplier changeing the opcode of petInfo into npcInfo and writing the required npcInfo bytes

Not rly because it only would show it till packet is sent again, I guess.

It's the fastest and easiest way I found and I don't think that is too hardcoded.

 

And as I always say, please... I don't need to know the "perfect coding way" in the shares I do, I'm just sharing what I did please, avoid doing it, nothing personal but it's kinda boring.

Edited by ^Wyatt

Share this post


Link to post
Share on other sites

I see what you did here :D

 

The idea is cool but if i can dress my pet with any mob i can make ppl pk my pet.

 

Checked the code i like your way tomorow i will give you cookies.

Share this post


Link to post
Share on other sites

The idea is cool but if i can dress my pet with any mob i can make ppl pk my pet.

ahahahaha that would be the next-level BAIT :troll:

however, you can notice that it's a pet, check the image, the pet's title is your name... it's not so hard to see that's not a mob :P

Share this post


Link to post
Share on other sites

ahahahaha that would be the next-level BAIT :troll:

however, you can notice that it's a pet, check the image, the pet's title is your name... it's not so hard to see that's not a mob :P

I can make your server name as a character name and :happyforever:

Share this post


Link to post
Share on other sites

I can make your server name as a character name and :happyforever:

Well, my opinion is that is more interesting knowing what you just pointed, more fun, more options, more bait :troll:

Share this post


Link to post
Share on other sites

can i make random player aka my pet? xD

 

 

Lets say that there is a player ,his name is Huggings ,ugly gladi

 

i dress my pet like him and put name Huggings Jr

 

 

 

how about that?

Share this post


Link to post
Share on other sites

can i make random player aka my pet? xD

 

 

Lets say that there is a player ,his name is Huggings ,ugly gladi

 

i dress my pet like him and put name Huggings Jr

 

 

 

how about that?

Not with this code.

Share this post


Link to post
Share on other sites

Super Share ! Really funny at all !

I have a problem when i press right click to summon my pet nothing happened, i use new item wich i create same with 15489 item.

 

Thanks

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.



  • Posts

    • Grand Opening 1st of March
      19:00 UTC +2 [Europe] 
      13:00 UTC -3 [Brazil] 
      13:00 UTC -3 [Argentina] Website: http://l2flector.com/   Why you should play on our servers:         Unique custom Java platform.  Best defenses against DDOS attacks.  Protection from bots. SGuard  Game wthout wipe more than 6 months!  Comfortable game without freezes and delays.                                            

      Xp/Sp - 3000x
      Aden/Drop - 300x
      Rate Party Xp/Sp -1.5x
      OLYMPIAD
      Retail olympiad game.
      Olympiad Starts: 18:00 [+2GMT]
      Olympiad Ends: 24:00 [+2GMT]
      Hero Changes: Every Friday 14:00 [+2GMT]
      Period: 1 week


      Simple / Blessed Max Enchant (Weapon / Armor): +15 | (Jewelery): +15
      Crystal Max Enchant (Weapon / Armor): +20 | (Jewelery):+20
      Safe Enchant: +4
      Blessed: 90% | Crystal: 100%




      Mid Skill Chance: 5% | High: 10% | Top: 15%
      Max 1 active and 1 passive Augment at a time
      CASTLE SIEGE TIME
      Aden, Dion, 
      Giran, Goddard

                                                                                    Main town - Giran. Unique monsters. Unique pvp system. Unique aden balance. Unique farming areas. Unique L2Flector tattoos. Wedding system. Npc skill enchanter. Auto learn skills A grade items - free. Shops till top S grade. Full npc buffer with auto buff and scheme. 64 Buff Slots. Buff Time 3 hours. Max subclasses - 5. Free class change. Free sub class. Free nobless status. Stackable scrolls/ls/bog. No weight limit. No grade limit. Pvp/pk show on title. Top 20 pvp/pk in game. Offline trade system. Interlude retail skills. Perfect class balance. More then 18 active raid bosses. Without custom items. Server is secured with Sguard. SERVER COMMANDS .menu - Personal config. .siege - Sieges Info. .online - How many players online. .join .leave - Join or leave tvt event. .repair - Repair your char if you been stucked             Grand Opening 1st of March
      19:00 UTC +2 [Europe] 
      13:00 UTC -3 [Brazil] 
      13:00 UTC -3 [Argentina] Website: http://l2flector.com/
  • Topics

×