Thread: [Deathevent] removing grim reaper

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 [Deathevent] removing grim reaper 
    Registered Member corrupted iz's Avatar
    Join Date
    Apr 2012
    Posts
    148
    Thanks given
    13
    Thanks received
    1
    Discord
    View profile
    Rep Power
    36
    I don't need grim reaper in my server instead I need people to respawn at home I tried to edit deathevent.java but I am getting errors or its not working anyone who can assist me to respawn dead players in home instead of grim reaper?
    Reply With Quote  
     

  2. #2  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    24
    Posts
    3,337
    Thanks given
    801
    Thanks received
    1,185
    Rep Power
    189
    Player.java

    search for this

    getPackets().sendGameMessage("Oh dear, you have died.");

    below you should see this

    } else if (loop == 3) {

    remove the code below that which should be starting the deathcontroler

    and replace it with this

    Code:
    					lock();
    					CoresManager.slowExecutor.execute(new Runnable() {
    						@Override
    						public void run() {
    							reset();
    							setNextWorldTile(new WorldTile(Settings.HOME));
    							setNextAnimation(new Animation(-1));
    							WorldTasksManager.schedule(new WorldTask()  {
    								@Override
    								public void run() {
    									getMusicsManager().playMusic(683);
    									unlock(); 
    								}
    
    							}, 1);
    						}
    					});

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member corrupted iz's Avatar
    Join Date
    Apr 2012
    Posts
    148
    Thanks given
    13
    Thanks received
    1
    Discord
    View profile
    Rep Power
    36
    giving me 100 errors :/ I am just a starter and I have seen you helping all by giving correct question I think I am not able to do the steps u told me
    Reply With Quote  
     

  5. #4  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,417
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by corrupted iz View Post
    giving me 100 errors :/ I am just a starter and I have seen you helping all by giving correct question I think I am not able to do the steps u told me
    Because you're missing a }
    Use eclipse
    Reply With Quote  
     

  6. #5  
    Registered Member corrupted iz's Avatar
    Join Date
    Apr 2012
    Posts
    148
    Thanks given
    13
    Thanks received
    1
    Discord
    View profile
    Rep Power
    36
    Quote Originally Posted by Datbeastmayne View Post
    Because you're missing a }
    Use eclipse
    where am I missing it? can you fix and post the code? please!
    Reply With Quote  
     

  7. #6  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    25
    Posts
    1,171
    Thanks given
    74
    Thanks received
    129
    Rep Power
    64
    post ur code?
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  8. #7  
    Registered Member corrupted iz's Avatar
    Join Date
    Apr 2012
    Posts
    148
    Thanks given
    13
    Thanks received
    1
    Discord
    View profile
    Rep Power
    36
    Quote Originally Posted by KO D You X_xI View Post
    post ur code?
    here is the code which santa hat posted

    Quote Originally Posted by Santa Hat View Post
    Player.java

    search for this

    getPackets().sendGameMessage("Oh dear, you have died.");

    below you should see this

    } else if (loop == 3) {

    remove the code below that which should be starting the deathcontroler

    and replace it with this

    Code:
    					lock();
    					CoresManager.slowExecutor.execute(new Runnable() {
    						@Override
    						public void run() {
    							reset();
    							setNextWorldTile(new WorldTile(Settings.HOME));
    							setNextAnimation(new Animation(-1));
    							WorldTasksManager.schedule(new WorldTask()  {
    								@Override
    								public void run() {
    									getMusicsManager().playMusic(683);
    									unlock(); 
    								}
    
    							}, 1);
    						}
    					});
    Reply With Quote  
     

  9. #8  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    25
    Posts
    1,171
    Thanks given
    74
    Thanks received
    129
    Rep Power
    64
    Quote Originally Posted by corrupted iz View Post
    here is the code which santa hat posted
    post ur death code i mean.
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  10. #9  
    Registered Member corrupted iz's Avatar
    Join Date
    Apr 2012
    Posts
    148
    Thanks given
    13
    Thanks received
    1
    Discord
    View profile
    Rep Power
    36
    Quote Originally Posted by KO D You X_xI View Post
    post ur death code i mean.
    @Override
    public void run() {
    if (loop == 0) {
    setNextAnimation(new Animation(836));
    } else if (loop == 1) {
    getPackets().sendGameMessage("Oh dear, you have died.");
    if (source instanceof Player) {
    Player killer = (Player) source;
    killer.setAttackedByDelay(4);
    }
    } else if (loop == 3) {
    controlerManager.startControler("DeathEvent");
    } else if (loop == 4) {
    getPackets().sendMusicEffect(90);
    stop();
    }
    loop++;
    }
    }, 0, 1);
    }





    then I have public void senditemsondeath(player killer)
    Reply With Quote  
     

  11. #10  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    25
    Posts
    1,171
    Thanks given
    74
    Thanks received
    129
    Rep Power
    64
    Quote Originally Posted by corrupted iz View Post
    @Override
    public void run() {
    if (loop == 0) {
    setNextAnimation(new Animation(836));
    } else if (loop == 1) {
    getPackets().sendGameMessage("Oh dear, you have died.");
    if (source instanceof Player) {
    Player killer = (Player) source;
    killer.setAttackedByDelay(4);
    }
    } else if (loop == 3) {
    controlerManager.startControler("DeathEvent");
    } else if (loop == 4) {
    getPackets().sendMusicEffect(90);
    stop();
    }
    loop++;
    }
    }, 0, 1);
    }





    then I have public void senditemsondeath(player killer)
    try:

    Code:
    @Override
    			public void run() {
    				if (loop == 0) {
    					setNextAnimation(new Animation(836));
    				} else if (loop == 1) {
    					getPackets().sendGameMessage("Oh dear, you have died.");
    					if (source instanceof Player) {
    						Player killer = (Player) source;
    						killer.setAttackedByDelay(4);
    					}
    				} else if (loop == 3) {
    					//controlerManager.startControler("DeathEvent"); 
    				} else if (loop == 4) {
    					getPackets().sendMusicEffect(90);
    					stop();
    				}
    				loop++;
    			}
    		}, 0, 1);
    	}
    	}
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 2 12 LastLast

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. Grim Reaper's Army Mini-Game [halloween]
    By Jinrake in forum Tutorials
    Replies: 45
    Last Post: 02-12-2009, 02:10 AM
  2. Grim reaper!
    By i k3b4b i in forum Showcase
    Replies: 2
    Last Post: 05-24-2008, 02:00 PM
  3. My first Pixel Grim Reaper!
    By Ninja Cat in forum Showcase
    Replies: 11
    Last Post: 03-06-2008, 01:13 AM
  4. Grim Reaper Npc
    By Mikey` in forum Configuration
    Replies: 7
    Last Post: 03-05-2008, 06:34 AM
  5. My grim reaper sig
    By Khaos in forum Showcase
    Replies: 3
    Last Post: 09-30-2007, 06:54 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •