Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: DlgAnswer.java
- if (_messageId == SystemMessageId.S1_IS_MAKING_AN_ATTEMPT_AT_RESURRECTION_DO_YOU_WANT_TO_CONTINUE_WITH_THIS_RESURRECTION.getId())
- {
- player.reviveAnswer(_answer);
- }
- Index: PlayerInstance.java
- public void reviveRequest(PlayerInstance reviver, Skill skill, boolean pet)
- {
- if (_reviveRequested == 1)
- {
- if (_revivePet == pet)
- {
- reviver.sendPacket(SystemMessageId.RESURRECTION_HAS_ALREADY_BEEN_PROPOSED); // Resurrection is already been proposed.
- }
- else if (pet)
- {
- reviver.sendPacket(SystemMessageId.A_PET_CANNOT_BE_RESURRECTED_WHILE_IT_S_OWNER_IS_IN_THE_PROCESS_OF_RESURRECTING); // A pet cannot be resurrected while it's owner is in the process of resurrecting.
- }
- else
- {
- reviver.sendPacket(SystemMessageId.WHILE_A_PET_IS_ATTEMPTING_TO_RESURRECT_IT_CANNOT_HELP_IN_RESURRECTING_ITS_MASTER); // While a pet is attempting to resurrect, it cannot help in resurrecting its master.
- }
- return;
- }
- if ((pet && (getPet() != null) && getPet().isDead()) || (!pet && isDead()))
- {
- _reviveRequested = 1;
- if (isPhoenixBlessed())
- {
- _revivePower = 100;
- }
- else if (skill != null)
- {
- _revivePower = Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), reviver);
- }
- else
- {
- _revivePower = 0;
- }
- _revivePet = pet;
- + ConfirmDlg confirm = new ConfirmDlg(SystemMessageId.S1_IS_MAKING_AN_ATTEMPT_AT_RESURRECTION_DO_YOU_WANT_TO_CONTINUE_WITH_THIS_RESURRECTION.getId());
- + confirm.addString("Do you wish to Res?");
- + confirm.addTime(45000);
- + confirm.addRequesterId(reviver.getObjectId());
- + confirm.addString(reviver.getName());
- + sendPacket(confirm);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement