245246247248249250251252253254255
if (Rnd.chance(36)) { dropItem(actor, Water_Dragon_Claw, Rnd.get(1, 3)); } cleanUp(); actor.deleteMe(); } } /** * Method dropItem.
6162636465666768697071
case admin_delete: GameObject obj = wordList.length == 1 ? activeChar.getTarget() : GameObjectsStorage.getNpc(NumberUtils.toInt(wordList[1])); if ((obj != null) && obj.isNpc()) { NpcInstance target = (NpcInstance) obj; target.deleteMe(); Spawner spawn = target.getSpawn(); if (spawn != null) { spawn.stopRespawn(); }
6869707172737475767778
if ((target != null) && target.isTrap()) { TrapInstance trap = (TrapInstance) target; if (trap.getLevel() <= getPower()) { trap.deleteMe(); } } } if (isSSPossible()) {
1313213133131341313513136131371313813139131401314113142
TrapInstance trap; for (Integer trapId : traps.keySet()) { if ((trap = (TrapInstance) GameObjectsStorage.get(traps.get(trapId))) != null) { trap.deleteMe(); return; } return; } }
895896897898899900901902903904905
} else { item = entry.getValue(); } item.deleteMe(); } } /** * Method addListener.
116117118119120121122123124125126
closestItem = (ItemInstance) obj; } } if (closestItem != null) { closestItem.deleteMe(); actor.altUseSkill(s_display_bug_of_fortune1, actor); Functions.npcSayInRange(actor, 600, NpcString.YUMYUM_YUMYUM); i_ai0++; if ((i_ai0 > 1) && (i_ai0 <= 10)) {
482483484485486487488489490491492
for (Skill skill : skills) { altUseSkill(skill, this); } } item.deleteMe(); return; } if (!getInventory().validateWeight(item)) { sendPacket(Msg.EXCEEDED_PET_INVENTORYS_WEIGHT_LIMIT);
43494350435143524353435443554356435743584359
{ altUseSkill(skill, this); } } broadcastPacket(new GetItem(item, getObjectId())); item.deleteMe(); return; } FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null; if (!isInParty() || (attachment != null)) {