Thread: Become A Ghost when You Die

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Become A Ghost when You Die 
    Community Veteran

    Shobaky's Avatar
    Join Date
    Oct 2006
    Posts
    1,252
    Thanks given
    105
    Thanks received
    101
    Rep Power
    1115
    Ok this tutorial makes you a ghost when you die, and then after a certain amount of time, changes you back.

    First off, declare these:

    Code:
    public int ghostTimer = 0;
    public boolean isGhost = false;Then add this to your public boolean Applydead():
    Code:
    npcId = 2862; //Grim Reaper: Change if you'd like
    isNpc = true;
    updateRequired = true;
    appearanceUpdateRequired = true;
    sendMessage("Your death makes you a ghost!");
    isGhost = true;
    ghostTimer = 240;Add this under your public boolean process():
    Code:
    ghostTimer -= 1;
    if (isGhost == true && ghostTimer <= 0)
    {
    isGhost = false;
    sendMessage("The Gods have granted you with life!");
    }
    if (isGhost == false)
    {
    isNpc = false;
    updateRequired = true;
    appearanceUpdateRequired = true;
    }And finally, add this with your attacking stuff (this makes you not be able to attack when your a ghost):
    Code:
    if (isGhost == true)
    {
    teleportToX = absX;
    teleportToY = absY;
    sendMessage("You can't attack while you're a ghost!");
    }Have fun
    ALL CREDITS TO RUNITE

    REP++ IF you like it
    Shit just don't change to this day




     

  2. #2  
    kajakas
    Guest
    tut already posted.this isnt yours.
    why say rep++ if it runite's tut|?
     

  3. #3  
    JavaNerd
    Guest
    This is awsome could help me with one of my server projects.
     

  4. #4  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    i think i saw this alredy somewhere
     

  5. #5  
    Member

    Join Date
    Dec 2006
    Posts
    1,263
    Thanks given
    3
    Thanks received
    3
    Rep Power
    0
    Runite orginaly posted this.
     

  6. #6  
    Madskillz100
    Guest
    good tut and he did give credit to runite, =] tnx for the help
     

  7. #7  
    Crazy Cam10
    Guest
    So? It's Still Leeching.. Credits Or None
     

  8. #8  
    ~Legend Rene
    Guest
    Pretty much rep hungry for Runites work.
     

  9. #9  
    Crazy Cam10
    Guest
    Meh, I Repped Runite Not Joo
     

  10. #10  
    Community Veteran

    Shobaky's Avatar
    Join Date
    Oct 2006
    Posts
    1,252
    Thanks given
    105
    Thanks received
    101
    Rep Power
    1115
    Crazy Cam I know u hate me and i hate u, but still, i said all credits go to runite and rep++ if this helps thats all, i didnt make any lie, and the reason i leeched this is because it was the last tut on the last page, so it will be gone if some1 posted somethin. So i added it so that people could find it usefull again

    Moderator Or A Administrator Kindly Plz Close This Thread.
    Last edited by Shobaky; 10-16-2007 at 08:20 PM. Reason: Double posting is not allowed!
    Shit just don't change to this day




     

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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •