Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 103:
- {
- var _loc52 = _loc7;
- var _loc53 = this.api.datacenter.Sprites.getItemAt(_loc52);
- var _loc54 = _loc53.mc;
- if (_loc54 == undefined)
- {
- return;
- } // end if
- var _loc55 = _loc53.sex == 1 ? ("f") : ("m");
- _loc11.addAction(false, this.api.kernel, this.api.kernel.showMessage, [undefined, ank.utils.PatternDecoder.combine(this.api.lang.getText("DIE", [_loc53.name]), _loc55, true), "INFO_FIGHT_CHAT"]);
- var _loc56 = this.api.ui.getUIComponent("Timeline");
- _loc11.addAction(false, _loc56, _loc56.hideItem, [_loc52]);
- _loc11.addAction(true, _loc54, _loc54.setAnim, ["Die"], 1500);
- if (_loc53.hasCarriedChild())
- {
- this.api.gfx.uncarriedSprite(_loc53.carriedSprite.id, _loc53.cellNum, false, _loc11);
- _loc11.addAction(false, this.api.gfx, this.api.gfx.addSpriteExtraClip, [_loc53.carriedChild.id, dofus.Constants.CIRCLE_FILE, dofus.Constants.TEAMS_COLOR[_loc53.carriedChild.Team]]);
- } // end if
- _loc11.addAction(false, _loc54, _loc54.clear);
- if (this.api.datacenter.Player.summonedCreaturesID[_loc52])
- {
- --this.api.datacenter.Player.SummonedCreatures;
- delete this.api.datacenter.Player.summonedCreaturesID[_loc52];
- this.api.ui.getUIComponent("Banner").shortcuts.setSpellStateOnAllContainers();
- } // end if
- if (_loc52 == this.api.datacenter.Player.ID)
- {
- if (_loc6 == this.api.datacenter.Player.ID)
- {
- this.api.kernel.SpeakingItemsManager.triggerEvent(dofus.managers.SpeakingItemsManager.SPEAK_TRIGGER_KILLED_HIMSELF);
- }
- else
- {
- var _loc57 = this.api.datacenter.Sprites.getItemAt(this.api.datacenter.Player.ID).Team;
- var _loc58 = this.api.datacenter.Sprites.getItemAt(_global.parseInt(_loc6)).Team;
- if (_loc57 == _loc58)
- {
- this.api.kernel.SpeakingItemsManager.triggerEvent(dofus.managers.SpeakingItemsManager.SPEAK_TRIGGER_KILLED_BY_ALLY);
- }
- else
- {
- this.api.kernel.SpeakingItemsManager.triggerEvent(dofus.managers.SpeakingItemsManager.SPEAK_TRIGGER_KILLED_BY_ENEMY);
- } // end else if
- } // end else if
- }
- else if (_loc6 == this.api.datacenter.Player.ID)
- {
- var _loc59 = this.api.datacenter.Sprites.getItemAt(this.api.datacenter.Player.ID).Team;
- var _loc60 = this.api.datacenter.Sprites.getItemAt(_global.parseInt(_loc52)).Team;
- if (_loc59 == _loc60)
- {
- this.api.kernel.SpeakingItemsManager.triggerEvent(dofus.managers.SpeakingItemsManager.SPEAK_TRIGGER_KILL_ALLY);
- }
- else
- {
- this.api.kernel.SpeakingItemsManager.triggerEvent(dofus.managers.SpeakingItemsManager.SPEAK_TRIGGER_KILL_ENEMY);
- } // end else if
- } // end else if
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement