Lineage Justice
Spells & Skills
Lookup and validate skills and spells.
|
ReturnToNature
|
MP:
|
30
|
HP:
|
0
|
Item:
|
40319
|
Amount:
|
2
|
Duration:
|
0
|
Skill Type:
|
Probability
|
Delay:
|
0
|
Cast Invis:
|
No
|
Ignores CM:
|
No
|
Element:
|
None
|
Range:
|
20
|
Area:
|
N/A
|
Dmg Value:
|
0.0
|
Dmg Dice:
|
0
|
Dice Count:
|
0
|
Prob Value:
|
50
|
Prob Dice:
|
30
|
Prob Max:
|
90
|
L1SummonInstance:
public synchronized void returnToNature() {
_isReturnToNature = true;
if (!_tamed) {
setDead(true);
setCurrentHp(0);
setStatus(ActionCodes.ACTION_Die);
getMap().setPassable(getLocation(), true);
L1Inventory targetInventory = _master.getInventory();
List items = _inventory.getItems();
for (L1ItemInstance item : items) {
if (_master.getInventory().checkAddItem(item, item.getCount()) == L1Inventory.OK) {
_inventory
.tradeItem(item, item.getCount(), targetInventory);
((L1PcInstance) _master).sendPackets(new S_ServerMessage(
143, getName(), item.getLogName()));
} else {
targetInventory = L1World.getInstance().getInventory(
getX(), getY(), getMapId());
_inventory.tradeItem(item, item.getCount(), targetInventory);
}
}
deleteMe();
} else {
liberate();
}
}