Results 1 to 5 of 5
  1. #1
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep

    /pause command (definitive)

    Code:
    else if (cmd.Equals("pause", StringComparison.OrdinalIgnoreCase) && args.Length == 0)
                {
                    if (psr.Player.HasConditionEffect(ConditionEffects.Paused) == false)
                    {
                        if (psr.Player.Owner.EnemiesCollision.HitTest(psr.Player.X, psr.Player.Y, 8).OfType<Enemy>().Any())
                        {
                            psr.SendPacket(new TextPacket()
                            {
                                BubbleTime = 0,
                                Stars = -1,
                                Name = "",
                                Text = "Not safe enough to pause!"
                            });
                        }
                        else
                        {
                            ApplyConditionEffect(new ConditionEffect()
                            {
                                Effect = ConditionEffectIndex.Paused,
                                DurationMS = -1
                            });
                            psr.SendPacket(new TextPacket()
                            {
                                BubbleTime = 0,
                                Stars = -1,
                                Name = "",
                                Text = "Game paused."
                            });
                        }
                    }
                    else if (psr.Player.HasConditionEffect(ConditionEffects.Paused) == true)
                    {
                        ApplyConditionEffect(new ConditionEffect()
                        {
                            Effect = ConditionEffectIndex.Paused,
                            DurationMS = 0
                        });
                        psr.SendPacket(new TextPacket()
                        {
                            BubbleTime = 0,
                            Stars = -1,
                            Name = "",
                            Text = "Game resumed."
                        });
                    }
                }
    "The great merit of society is to make one appreciate solitude."
    Charles Chincholles, "Reflections on the Art of Life" (from fortune-mod)

  2. The Following 3 Users Say Thank You to Trapped For This Useful Post:

    abi97 (04-30-2013),Alde. (04-30-2013),Axeall (04-30-2013)

  3. #2
    abi97's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    8
    My Mood
    Relaxed
    Nice! Also are there any greater fixes you are working on? (Dungeons, Guilds, less crashing,...)

  4. #3
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    @abi97 Dungeons, less crashing. I might try something for guilds but we'd have to edit the database to include a guilds table.
    "The great merit of society is to make one appreciate solitude."
    Charles Chincholles, "Reflections on the Art of Life" (from fortune-mod)

  5. The Following User Says Thank You to Trapped For This Useful Post:

    Alde. (04-30-2013)

  6. #4
    abi97's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    8
    My Mood
    Relaxed
    Aww, really looking forward to this, you are so awesome

  7. #5
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    @abi97 <3 Just finished the /tell command, will post in a few minutes
    "The great merit of society is to make one appreciate solitude."
    Charles Chincholles, "Reflections on the Art of Life" (from fortune-mod)

  8. The Following User Says Thank You to Trapped For This Useful Post:

    Alde. (04-30-2013)

Similar Threads

  1. /pause command fix
    By Trapped in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 9
    Last Post: 04-28-2013, 02:31 AM
  2. The definition of "Flame war:
    By Severed in forum Spammers Corner
    Replies: 17
    Last Post: 12-11-2006, 05:25 PM
  3. Command & Conquer Generals
    By heero_yuy in forum General Game Hacking
    Replies: 2
    Last Post: 06-21-2006, 03:12 AM
  4. Warrock Command List
    By Dave84311 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-26-2006, 11:03 PM
  5. Demon of some commands
    By HolyFate in forum Gunz Hacks
    Replies: 12
    Last Post: 02-21-2006, 01:43 PM