/revenge

/revenge

Postby Jay53928 » 13 Jul 2013, 03:43

Can someone code a command called revenge? Here is what it does..

/revenge [name] - Takes revenge on [name], killing and infecting them.
Jay53928
 
Posts: 44
Joined: 27 Feb 2013, 21:45

Re: /revenge

Postby Warren1001 » 13 Jul 2013, 07:32

Would this be a store item?
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: /revenge

Postby Jay53928 » 13 Jul 2013, 13:11

Probably not. I have a lot of players with a substantial amount of money so they would probably abuse it.
Jay53928
 
Posts: 44
Joined: 27 Feb 2013, 21:45

Re: /revenge

Postby Breakdown901 » 13 Jul 2013, 13:12

Is this for a zombie server? I could probably make it, but I'll need to find out the code for infecting someone.
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /revenge

Postby Breakdown901 » 13 Jul 2013, 13:22

OK, I know I could make it kill him but not infect. I'm not very familiar with the infection system. If I were to make this for you , would you want it like: Player got revenge on Player?
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /revenge

Postby Jay53928 » 13 Jul 2013, 13:40

Yes.
Jay53928
 
Posts: 44
Joined: 27 Feb 2013, 21:45

Re: /revenge

Postby HETAL » 13 Jul 2013, 14:02

I'll make one for you soon
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: /revenge

Postby Conor » 13 Jul 2013, 14:04

Breakdown901 wrote:OK, I know I could make it kill him but not infect. I'm not very familiar with the infection system. If I were to make this for you , would you want it like: Player got revenge on Player?


Take a look at Ismellike's infection command. You can incorporate it into this.
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: /revenge

Postby Breakdown901 » 13 Jul 2013, 14:19

This is the code, but there is a bug. When you use it, it says killed itself in confusion. Colud one of you expert coders help a noob coder like me? :P

Code: Select all
//Made by Breakdown901
using System;
namespace MCDzienny
{
   public class CmdRevenge : Command
   {
      public override string name { get { return "revenge"; } }
      public override string shortcut { get { return "rev"; } }
      public override string type { get { return "other"; } }
      public override bool museumUsable { get { return false; } }
      public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }

      public override void Use(Player p, string message)
      {
         if (message == "") { Help(p); return; }

                Player who = Player.Find(message);

                if (who == null)
                {
                    Player.SendMessage(p, "Player not found!");
                    return;
                }

                else
                {
                  Command.all.Find("kill").Use(p, p.color + p.name + " took revenge on " + who.PublicName);           
      }
   }   
      public override void Help(Player p)
      {
         Player.SendMessage(p, "/revenge - /revenge [player]- Take revenge on someone.");
      }
   }
}
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /revenge

Postby HETAL » 13 Jul 2013, 14:26

Code: Select all
if (pl.group.Permission < p.group.Permission)
this only allows you to kill players under your rank
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Next

Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 4 guests

cron