FatBoy-DOTC
1 year ago
2 changed files with 68 additions and 0 deletions
@ -0,0 +1,67 @@
@@ -0,0 +1,67 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2022
|
||||
// www.magicbane.com
|
||||
|
||||
|
||||
package engine.devcmd.cmds; |
||||
|
||||
import engine.devcmd.AbstractDevCmd; |
||||
import engine.objects.*; |
||||
|
||||
import java.util.HashMap; |
||||
|
||||
/** |
||||
* |
||||
*/ |
||||
|
||||
public class PrintEffectsCmd extends AbstractDevCmd { |
||||
|
||||
public PrintEffectsCmd() { |
||||
super("printeffects"); |
||||
// super("printstats", MBServerStatics.ACCESS_LEVEL_ADMIN);
|
||||
} |
||||
|
||||
public static ItemBase getWeaponBase(int slot, HashMap<Integer, MobEquipment> equip) { |
||||
if (equip.containsKey(slot)) { |
||||
MobEquipment item = equip.get(slot); |
||||
if (item != null && item.getItemBase() != null) { |
||||
return item.getItemBase(); |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
protected void _doCmd(PlayerCharacter pc, String[] words, |
||||
AbstractGameObject target) { |
||||
|
||||
AbstractCharacter tar; |
||||
|
||||
if (target != null && target instanceof AbstractCharacter) { |
||||
tar = (AbstractCharacter) target; |
||||
|
||||
String newline = "\r\n "; |
||||
String output = "Applied Runes For Character: " + tar.getName() + newline; |
||||
|
||||
for(String effect : tar.effects.keySet()){ |
||||
output += effect + newline; |
||||
} |
||||
throwbackInfo(pc, output); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
protected String _getHelpString() { |
||||
return "Returns the player's current stats"; |
||||
} |
||||
|
||||
@Override |
||||
protected String _getUsageString() { |
||||
return "' /printstats'"; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue