Thread: Help with object

Results 1 to 3 of 3
  1. #1 Help with object 
    Registered Member
    Join Date
    May 2010
    Posts
    34
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Hi

    Code:
    if(objectID == 3203 && deathStage < 1 && inDuelOpponent.deathStage < 1){//forfeit duel
    toX = 3501;
    toY = 3488;
    AtkPray = 0;
    StrPrayer = 0;
    DefPray = 0;
    RangePray = 0;
    MagePray = 0;
    PrayHeal = false;
    ProtItem = false;
    ProtMage = false;
    ProtRange = false;
    ProtMelee = false;
    Redemption = false;
    Retribution = false;
    Smite = false;
    Chivalry = false;
    Piety = false;
    headIcon = 0;
    turnpray();
    heightLevel = 0;
    currentHealth = playerLevel[playerHitpoints];
    frame1();
    prayOn = false;
    RfdWave = 0;
    specialAmount = 100;
    sM("You have forfeit the duel.");//Now oppenent stuff below
    inDuelOpponent.toX = 3501;
    inDuelOpponent.toY = 3488;
    inDuelOpponent.specialAmount = 100;
    inDuelOpponent.sM("Your opponent has forfeit the duel.");
    inDuelOpponent.AtkPray = 0;
    inDuelOpponent.StrPrayer = 0;
    inDuelOpponent.DefPray = 0;
    inDuelOpponent.RangePray = 0;
    inDuelOpponent.MagePray = 0;
    inDuelOpponent.PrayHeal = false;
    inDuelOpponent.ProtItem = false;
    inDuelOpponent.ProtMage = false;
    inDuelOpponent.ProtRange = false;
    inDuelOpponent.ProtMelee = false;
    inDuelOpponent.Redemption = false;
    inDuelOpponent.Retribution = false;
    inDuelOpponent.Smite = false;
    inDuelOpponent.Chivalry = false;
    inDuelOpponent.Piety = false;
    inDuelOpponent.headIcon = 0;
    inDuelOpponent.turnpray();
    inDuelOpponent.heightLevel = 0;
    inDuelOpponent.currentHealth = playerLevel[playerHitpoints];
    inDuelOpponent.frame1();
    inDuelOpponent.prayOn = false;
    inDuelOpponent.RfdWave = 0;
    }
    How can I make this object not do any of:
    Code:
    inDuelOpponent.toX = 3501;
    inDuelOpponent.toY = 3488;
    inDuelOpponent.specialAmount = 100;
    inDuelOpponent.sM("Your opponent has forfeit the duel.");
    inDuelOpponent.AtkPray = 0;
    inDuelOpponent.StrPrayer = 0;
    inDuelOpponent.DefPray = 0;
    inDuelOpponent.RangePray = 0;
    inDuelOpponent.MagePray = 0;
    inDuelOpponent.PrayHeal = false;
    inDuelOpponent.ProtItem = false;
    inDuelOpponent.ProtMage = false;
    inDuelOpponent.ProtRange = false;
    inDuelOpponent.ProtMelee = false;
    inDuelOpponent.Redemption = false;
    inDuelOpponent.Retribution = false;
    inDuelOpponent.Smite = false;
    inDuelOpponent.Chivalry = false;
    inDuelOpponent.Piety = false;
    inDuelOpponent.headIcon = 0;
    inDuelOpponent.turnpray();
    inDuelOpponent.heightLevel = 0;
    inDuelOpponent.currentHealth = playerLevel[playerHitpoints];
    inDuelOpponent.frame1();
    inDuelOpponent.prayOn = false;
    inDuelOpponent.RfdWave = 0;
    The inDuelOpponent stuff if the player has no inDuelOpponent? Because when they use the object when there is no opponent it causes disconnect.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2010
    Posts
    34
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Halp
    Reply With Quote  
     

  3. #3  
    Austin_
    Guest
    take away oponentinduel shit
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •