本文整理汇总了C#中RunescapeServer.player.Player.getSpecialAttack方法的典型用法代码示例。如果您正苦于以下问题:C# Player.getSpecialAttack方法的具体用法?C# Player.getSpecialAttack怎么用?C# Player.getSpecialAttack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RunescapeServer.player.Player
的用法示例。
在下文中一共展示了Player.getSpecialAttack方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: execute
public void execute(Player player, string[] arguments)
{
player.getSpecialAttack().resetSpecial();
}
示例2: resetVariables
private void resetVariables(Player p) {
p.setSkullCycles(0);
p.getSpecialAttack().resetSpecial();
p.setLastkiller(null);
p.setDead(false);
p.setEntityFocus(65535);
p.setPoisonAmount(0);
p.clearKillersHits();
p.setLastVengeanceTime(0);
p.setVengeance(false);
p.removeTemporaryAttribute("willDie");
p.setFrozen(false);
p.removeTemporaryAttribute("unmovable");
p.setAntifireCycles(0);
p.setSuperAntipoisonCycles(0);
p.setTeleblockTime(0);
p.removeTemporaryAttribute("teleblocked");
p.setTarget(null);
p.setAttacker(null);
foreach (Skills.SKILL skill in Enum.GetValues(typeof(Skills.SKILL)))
p.getSkills().setCurLevel(skill, p.getSkills().getMaxLevel(skill));
p.getPackets().sendSkillLevels();
Prayer.deactivateAllPrayers(p);
if (p.getTemporaryAttribute("cantDoAnything") != null) {
p.getAppearance().setInvisible(false);
p.getUpdateFlags().setAppearanceUpdateRequired(true);
p.removeTemporaryAttribute("cantDoAnything");
p.removeTemporaryAttribute("unmovable");
teleportToWaitingRoom(p, false);
p.getPackets().closeInterfaces();
p.getPackets().setMinimapStatus(0);
p.getPackets().clearMapFlag();
}
}
示例3: handleActionButton
//.........这里部分代码省略.........
if (buttonId == 14) {
player.getEquipment().unequipItem((ItemData.EQUIP)buttonId2);
break;
}
break;
case 771: // Character design interface.
ConfigureAppearance.sortButton(player, buttonId);
break;
case 311: // Smelt interface.
Smelting.smeltOre(player, buttonId, true, -1);
break;
case 300: // Bar smithing interface.
Smithing.smithItem(player, buttonId, 1, true);
break;
case 92: // Unarmed attack interface.
switch(buttonId) {
case 24: // Auto retaliate.
player.toggleAutoRetaliate();
break;
default:
AttackInterface.configureButton(player, interfaceId, buttonId);
break;
}
break;
case 85: // Spear attack interface.
switch(buttonId) {
case 8: // Special attack.
player.getSpecialAttack().toggleSpecBar();
break;
case 24: // Auto retaliate.
player.toggleAutoRetaliate();
break;
default:
AttackInterface.configureButton(player, interfaceId, buttonId);
break;
}
break;
case 93: // Whip attack interface.
switch(buttonId) {
case 8: // Special attack.
player.getSpecialAttack().toggleSpecBar();
break;
case 24: // Auto retaliate.
player.toggleAutoRetaliate();
break;
default:
AttackInterface.configureButton(player, interfaceId, buttonId);
break;
}
break;
case 89: // Dagger attack interface.
switch(buttonId) {
case 10: // Special attack.
player.getSpecialAttack().toggleSpecBar();