Results 1 to 1 of 1
  1. #1
    The 7th Hokage's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Location
    Konoha
    Posts
    2,424
    Reputation
    264
    Thanks
    1,324
    My Mood
    Chatty

    /revive Command {FSOD} ~ 4

     
    Code:
        internal class ReviveCommand : Command
        {
            public ReviveCommand() : base("revive", 85) { }
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                if (string.IsNullOrEmpty(args[0]))
                {
                    player.SendHelp("Usage: /revive <accId> <fame>");
                    return false;
                }
                player.Manager.Database.DoActionAsync(db =>
                {
                    var cmd = db.CreateQuery();
                    cmd.CommandText = "UPDATE characters SET dead=0 WHERE accId=@accId AND fame=@base";
                    cmd.Parameters.AddWithValue("@base", args[1]);
                    cmd.Parameters.AddWithValue("@accId", args[0]);
                    if (cmd.ExecuteNonQuery() == 0)
                    {
                        player.SendInfo("Could not revive. Make sure you wrote it right.");
                    }
                    else
                        player.SendInfo("Character Successfully Revived");
                });
                return true;
            }
        }



    [SIZE=5]Note! You'll need the /accid command that i've released here;
    https://www.mpgh.net/forum/showthread...760&p=11996443

    Also. This was made for a specific rank at rank 85. So change this line: public ReviveCommand() : base("revive", "*85*") { }
    (The number) To the rank you want it to be at. Remove the "**" i did.


    You need an accid and you need to know the base fame on the character that died. Not total fame, but base fame. Just write in /revive <accId> <base-fame>

    Press a thanks if you like this command.

  2. The Following User Says Thank You to The 7th Hokage For This Useful Post:

    Zxoro (09-01-2016)

Similar Threads

  1. [Command] [FSOD] Vanish Command
    By Daemonmann in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 44
    Last Post: 12-05-2017, 04:10 PM
  2. /accId Command {FSOD} ~1
    By The 7th Hokage in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 2
    Last Post: 08-28-2016, 11:24 AM
  3. [Help Request] Revive command.
    By fleepies in forum Vindictus Help
    Replies: 4
    Last Post: 02-01-2012, 10:27 AM
  4. Replies: 1
    Last Post: 12-25-2011, 06:02 AM
  5. [Solved] what is the revive command?
    By element72 in forum Vindictus Help
    Replies: 1
    Last Post: 12-23-2011, 01:19 AM