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.