Full Version : idea for deathball game
xmlspawner >>XMLPoints Discussion >>idea for deathball game


<< Prev | Next >>

ambak- 01-31-2006
in the deathball everybody attacks themselves not to the only the person who holds the ball.if a restriction comes like players only attack the person who hold the ball this can be very good otherwise the game turns to pvp challenge smile.gif

ArteGordon- 01-31-2006
just make this change in DeathBallGauntlet.cs

QUOTE

        public override bool AreChallengers(Mobile from, Mobile target)
        {
  /*
  // allow pets of challengers
  if (from is BaseCreature && (((BaseCreature)from).Controled || ((BaseCreature)from).Summoned))
    from = ((BaseCreature)from).ControlMaster;
  if (target is BaseCreature && (((BaseCreature)target).Controled || ((BaseCreature)target).Summoned))
    target = ((BaseCreature)target).ControlMaster;
    */

            // everyone participant is a challenger to everyone other participant, so just being a participant
            // makes you a challenger
            return(AreInGame(from) && BallOwner == target);
        }


  public Mobile BallOwner
  {
  get
  {
    Mobile owner = null;
    if (m_DeathBall != null && m_DeathBall.RootParent is Mobile)
    {
    owner = m_DeathBall.RootParent as Mobile;
    }

    return owner;
  }
  }


ambak- 01-31-2006
ok thanks arte but there is not a code like this in my arechallengers
// allow pets of challengers
if (from is BaseCreature && (((BaseCreature)from).Controled || ((BaseCreature)from).Summoned))
from = ((BaseCreature)from).ControlMaster;
if (target is BaseCreature && (((BaseCreature)target).Controled || ((BaseCreature)target).Summoned))
target = ((BaseCreature)target).ControlMaster;
*/

i wonder whats this?

ArteGordon- 01-31-2006
that is just some optional code. It is commented out, so you can ignore it.

ambak- 01-31-2006
whats it for?i can enable it if i like.

ArteGordon- 01-31-2006
sure if you like. It just allows pets into the games.