Static Loader
Wanderer
Remove Trap fix:
The differnet trap parts. Tested to OSI right now, it gives each proper message for each trap. Working right now for the new traps nad hopfully they will be out today so poison, darrt and such can be used.
[code:1]
from.PlaySound( 0x241 );
if ( from.CheckTargetSkill( SkillName.RemoveTrap, targ, 0, 100 ) )
{
if ( targ.TrapType == TrapType.PoisonTrap )
from.SendMessage( "The poison leaks harmlessly away due to your deft touch."
if ( targ.TrapType == TrapType.DartTrap )
from.SendMessage( "You carefully remove the dart from the firing mechanism."
if ( targ.TrapType = TrapType.ExplosionTrap )
from.SendMessage( "You carefully remove the trigger for the purple potion."
targ.TrapPower = 0;
targ.TrapType = TrapType.None;
}
else
{
from.SendLocalizedMessage( 502372 ); // You fail to disarm the trap... but you don't set it off
//TODO: Add chance to set off trap on fail.
}
}
else
{
from.SendLocalizedMessage( 502373 ); // That does'nt appear to be trapped
}
}
}
}
}[/code:1]
The differnet trap parts. Tested to OSI right now, it gives each proper message for each trap. Working right now for the new traps nad hopfully they will be out today so poison, darrt and such can be used.
[code:1]
from.PlaySound( 0x241 );
if ( from.CheckTargetSkill( SkillName.RemoveTrap, targ, 0, 100 ) )
{
if ( targ.TrapType == TrapType.PoisonTrap )
from.SendMessage( "The poison leaks harmlessly away due to your deft touch."
if ( targ.TrapType == TrapType.DartTrap )
from.SendMessage( "You carefully remove the dart from the firing mechanism."
if ( targ.TrapType = TrapType.ExplosionTrap )
from.SendMessage( "You carefully remove the trigger for the purple potion."
targ.TrapPower = 0;
targ.TrapType = TrapType.None;
}
else
{
from.SendLocalizedMessage( 502372 ); // You fail to disarm the trap... but you don't set it off
//TODO: Add chance to set off trap on fail.
}
}
else
{
from.SendLocalizedMessage( 502373 ); // That does'nt appear to be trapped
}
}
}
}
}[/code:1]