SHOW:
|
|
- or go back to the newest paste.
1 | - | Index: DlgAnswer.java |
1 | + | Index: Player.java |
2 | - | |
2 | + | if ((isPet && _summon != null && _summon.isDead()) || (!isPet && isDead())) |
3 | - | if (_messageId == SystemMessageId.S1_IS_MAKING_AN_ATTEMPT_AT_RESURRECTION_DO_YOU_WANT_TO_CONTINUE_WITH_THIS_RESURRECTION.getId()) |
3 | + | |
4 | _reviveRequested = 1; | |
5 | - | player.reviveAnswer(_answer); |
5 | + | _revivePower = (isPhoenixBlessed()) ? 100 : Formulas.calculateSkillResurrectRestorePercent(skill.getPower(), reviver); |
6 | - | } |
6 | + | _revivePet = isPet; |
7 | - | |
7 | + | |
8 | - | Index: PlayerInstance.java |
8 | + | ConfirmDlg confirm = new ConfirmDlg(SystemMessageId.RESSURECTION_REQUEST_BY_S1.getId()); |
9 | - | |
9 | + | + confirm.addString("Do you wish to Res?"); |
10 | - | public void reviveRequest(PlayerInstance reviver, Skill skill, boolean pet) |
10 | + | + confirm.addTime(45000); |
11 | - | { |
11 | + | + confirm.addRequesterId(reviver.getObjectId()); |
12 | - | if (_reviveRequested == 1) |
12 | + | + confirm.addString(reviver.getName()); |
13 | + sendPacket(confirm); | |
14 | - | if (_revivePet == pet) |
14 | + | } |
15 | - | { |
15 | + | } |