Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void dismissFamiliar(boolean logout) {
- if(summonedFamiliar != null && c.summoned != null) {
- c.summoned.isDead = true;
- c.summoned.applyDead = true;
- c.summoned.actionTimer = 0;
- c.summoned.npcType = -1;
- c.summoned.updateRequired = true;
- c.sendMessage(":summoninactive:");
- c.summoned = null;
- if(!logout) {
- for(int i = 0; i < burdenedItems.length; i++) {
- Server.itemHandler.createGroundItem(c, burdenedItems[i] - 1, c.summoned.absX, c.summoned.absY, 1, c.summoned.summonedFor);
- }
- burdenedItems = null;
- summonedFamiliar = null;
- }
- } else {
- c.sendMessage(":summoninactive:");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement