Thread: Holy Force

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Holy Force 
    Ferret
    Guest
    Purpose: Item that kills people in a 9,000 square range!
    Difficulty: 1
    Files Modified: Client.java
    Procedure:

    Find:
    Code:
    case 733:
    Above it add this:
    Code:
    case 748: // Holy Force
    	if (playerRights >= 2) {
    		setAnimation(2840);
    		txt4 = "Holy FORCE!";
                    string4UpdateRequired = true;
    		stillgfx(444, absY, absX);
    		hitPlayersWithin(444, 99, 9000);
            inCombat();
    	} else if (playerRights <= 2) {
    		sendMessage("How the hell did you get this item?!");
    		deleteItem(748,getItemSlot(748), 1);
    		killSelf(444, 99);
    	}
    break;
    Now find:

    Code:
    public void attackPlayersWithin(int gfx, int maxDamage, int range)
    above it, add this:
    Code:
    public void killSelf(int gfx, int maxDamage) {
    
    	int damage = misc.random(maxDamage);
            stillgfx(gfx, absY, absX);
             if (playerLevel[3] - hitDiff < 0)
             damage = playerLevel[3];
    	 		hitDiff = damage;
    	 		updateRequired = true;
    	 		hitUpdateRequired = true;
    	}
    EDIT:

    Make sure you have this void:
    Code:
    public void hitPlayersWithin(int gfx, int maxDamage, int range) {
     for (Player p : server.playerHandler.players)
      {
       if(p != null)
        {
         client person = (client)p;
         if((person.playerName != null || person.playerName != "null"))
          {
           if(person.distanceToPoint(absX, absY) <= range && person.playerId != playerId)
            {
             int damage = misc.random(maxDamage);
             person.stillgfx(gfx, person.absY, person.absX);
             if (person.playerLevel[3] - hitDiff < 0)
             damage = person.playerLevel[3];
    	 person.hitDiff = damage;
    	 person.KillerId = playerId;
    	 person.updateRequired = true;
    	 person.hitUpdateRequired = true;
            }
          }
        }
      }
    }
    And your done!

    Credits: Ferret (Made since I was bored.)
     

  2. #2  
    Xx God xX
    Guest
    thanks iv been looking for this +rep,ohh..how do i use it?
     

  3. #3  
    Ferret
    Guest
    You click the item and it happens.
     

  4. #4  
    paintplaye
    Guest
    Yea it would be nice if there was a command that would get you a holy force
     

  5. #5  
    Registered Member
    Join Date
    Aug 2007
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    i dont have case 733...
     

  6. #6  
    Crazy Cam10
    Guest
    Try Searching For
    Code:
    case 2520:
     

  7. #7  
    Community Veteran

    Bullet's Avatar
    Join Date
    Nov 2006
    Posts
    2,246
    Thanks given
    43
    Thanks received
    92
    Rep Power
    748
    wasnt made by you. Made by oblak ages ago.
     

  8. #8  
    Registered Member $esame st's Avatar
    Join Date
    Aug 2007
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    39
    yeah made by oblak but i edited a tad bit then u stole from my source i knew u doing something with it..........you lose my trust
    Elite Series Coder
    RSBot Scripter
    RSBot Full Member
    Likes Boobs
     

  9. #9  
    Crazy Cam10
    Guest
    I Knew This Wasn't His, Seen It Loads Of Times
     

  10. #10  
    x19
    Guest
    Once again... admin overpowering, this will make people hate your server.

    X19
     

Page 1 of 3 123 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. 614 Rune-Force && Co.
    By chaflie in forum Projects
    Replies: 29
    Last Post: 04-25-2011, 07:24 PM
  2. DP - Dragonical Force.
    By Clawz in forum Showcase
    Replies: 3
    Last Post: 05-16-2009, 12:18 PM
  3. Force
    By IvA V1n in forum Showcase
    Replies: 8
    Last Post: 04-29-2008, 10:16 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
  •