Ninja Posted May 30, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 30, 2017 View File Instakill Mapflag 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 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 Source file 1. I will retain all the rights in all the scripts that I create2. 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/). Submitter Ninja Submitted 05/30/2017 Category Source Modifications Video Content Author Ninja 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.