Jump to content

Instakill Mapflag 1.0.0


4 Screenshots

About This File

Tested and working with: 3e625dfdf9868690e36677701cbebe1b379a7485

This source edit is intended for my experiments. Feel free to have fun with it but I wouldn't be held accountable for damages that it may create for your server.

No support will be given other than the specified rAthena version above.

Purpose

Create a mapflag for instakill. As it would suggest, all damages done within the map will be amplified to max damage, thus instakilling the target.

It works both for the following use cases:

1. Player attacking a Monster

2. Player attacking another Player

3. Monster attacking a Player

4. Monster attacking another monster

Where "Monster" can be a normal mob or a Homunculus

Usage

In-game

@mapflag instakill [0|1]
Spoiler

Capture.PNG.d5e2e401a9a8cd40ebacc0d66147e7b3.PNG

Script as mapflag

prontera<tab>mapflag<tab>instakill

Script as used in setmapflag

setmapflag .EventMap$, mf_instakill;

Example

Tag, You're Dead Script

Spoiler

prontera,150,100,5    script    Tagger Dude    484,{
mes "^FF0000["+strnpcinfo(0)+"]^000000";
mes "Do you want to get in? Be careful, people die a lot inside.";
Switch(Select("Yes:No")){
    case 1:
        warp .EventMap$, .EventCenter[0], .EventCenter[1];
        break;
    case 2:
        mes "Okay.";
        close;
}
close;

OnInit:
set .EventMap$, "pvp_n_3-5";
setmapflag .EventMap$, mf_instakill;
setmapflag .EventMap$, mf_pvp;
setmapflag .EventMap$, mf_pvpnoparty;
setmapflag .EventMap$, mf_pvpnoguild;
setarray .EventCenter[0], 99, 100;
end;

OnPCDieEvent:
dispbottom "Tag, You're Dead!";
sleep2 3000;
OnPCLogoutEvent:
warp "SavePoint", 0, 0;
end;

}

Source In Action

Spoiler

screenrAthena011.jpg.9e092e45e36e58de26cca0cc5fa8b0dc.jpgscreenrAthena013.jpg.87ea1cdd5af6e1da88e0c52c0f0a8644.jpgscreenrAthena016.jpg.50acb38b527138d8c88bb3390800001e.jpgscreenrAthena018.jpg.b9bb29903f5dc12e6a715146e5d8bca0.jpg

Source file

 

1. I will retain all the rights in all the scripts that I create
2. Client cannot redistribute nor resell the scripts that I provide
3. No refunds
4. Maintenance of scripts does not include modification of the original intended behavior. If the script has been broken due to prior modification of the original behavior then it would mean a new service request
5. Modification of the original intended behavior would mean a new service request and would go through the process mentioned above

2. This can be redistributed anywhere in any form.
3. This shall not be in any way be branded for sale anywhere in any form.
4. Maintenance will not be provided. Feel free to use the support section.
5. See #3.
6. Ninja has the right to post all my free services to the release section and make it available for everybody to use
7. Maintenance of scripts will be provide free of charge
8. I will not keep any sensitive information from your server nor any credentials that you lend me
9. I will backup all my server files before I use this.
10. Ninja will not be liable in any way at any time.
11. The moment I use anything from here, I accept all the terms of services stated above.

Where the script author is Ninja (https://rathena.org/board/profile/7005-ninja/).

  • Upvote 1

×
×
  • Create New...