Thread: 718 Summoning pets being spawned after pick up?

Results 1 to 3 of 3
  1. #1 718 Summoning pets being spawned after pick up? 
    Alterin 718 boi
    Shivazgod's Avatar
    Join Date
    Jan 2018
    Posts
    88
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Everytime I spawn a pet in my server and pick it up It will respawn and then say "This isn't your pet"

    Anyone know which file could help me fix this? Just point me in the right direction I like to learn and would like to figure it out on my own. Just a little bug.
    Visit the Typing Test and try!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2014
    Posts
    24
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Try the command "pickuppet" I know a lot of server depend on a command to properly pickup pets. Look through your commands and use that same code on the NPC handler for each pet. Hope it helps.

    Code:
    case "pickuppet":
    				if (player.getPet() != null) {
    					player.getPet().pickup();
    					return true;
    				}
    				player.getPackets().sendMessage("You do not have a pet to pickup!");
    			return true;
    Reply With Quote  
     

  3. #3  
    Alterin 718 boi
    Shivazgod's Avatar
    Join Date
    Jan 2018
    Posts
    88
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by doctorgetsum View Post
    Try the command "pickuppet" I know a lot of server depend on a command to properly pickup pets. Look through your commands and use that same code on the NPC handler for each pet. Hope it helps.

    Code:
    case "pickuppet":
    				if (player.getPet() != null) {
    					player.getPet().pickup();
    					return true;
    				}
    				player.getPackets().sendMessage("You do not have a pet to pickup!");
    			return true;
    That's not exactly what I mean.. I can pickup the pet without a command, it's the same method the command is using either way to pickup the pet so that command is pretty lame.



    Anyways I can pickup the pet but when I do it will respawn again but this time when it does it's not your pet. Like the server is spawning a npc....


    I tried adding this under my pickup pet method in my pets.java
    Code:
    	Pets pets = Pets.forId(itemId);
    		World.getNPCs().remove(pets);
    I'm starting to think it's somethign else?
    Visit the Typing Test and try!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 05-14-2015, 04:04 AM
  2. Can't pick up pets -- 718 loading 742
    By King Vexille in forum Help
    Replies: 7
    Last Post: 09-14-2013, 01:24 PM
  3. [REQ]Pet pick-up emote
    By Own4g3 in forum Requests
    Replies: 1
    Last Post: 04-20-2012, 06:16 PM
  4. making NPC's spawn after being killed [Better]
    By lilfuzzy420 in forum Snippets
    Replies: 9
    Last Post: 03-04-2011, 01:37 AM
  5. Items Picked Up After Death
    By kjl777 in forum Help
    Replies: 0
    Last Post: 10-06-2009, 07:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •