Kuroe 5 Posted April 11, 2019 (edited) View File race_resist A simple plugin that adds race_resist() into your emulator (Checks race resist of a player). //===== Description ========================================== //= Checks how much resistance a character has to a particular // race. // //= race_resist(<type>{, <account id>}); //= E.g. race_resist(RC_Player); //= E.g. race_resist(RC_Player, getcharid(CHAR_ID_ACCOUNT)); Its just actually a rip off plugin from @bWolfie's check_resist() plugin full credits goes to him. Submitter Kuroe Submitted 04/11/19 Category Plugins Edited April 11, 2019 by Kuroe 1 banhelba2019 reacted to this Share this post Link to post Share on other sites
AnnieRuru 958 Posted April 11, 2019 not working I equip a 'Secular_Mission' ItemID 2127, and expecting it to list all as 25, prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i ) dispbottom race_resist(.@i) +""; end; } but it display all in 0 instead a few places are wrong in your plugin, but are actually correct in wolfie's version 1. the constant case-sensitivity wolfie's constants are correct, but yours are wrong should follow the constants.md file, not the source filehttps://github.com/HerculesWS/Hercules/blob/stable/doc/constants.md#elements ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255 2. your plugin stop at RC_Player, which is 10, but I tested with 'Secular_Mission' which hasScript: <" bonus2 bSubRace, RC_All, 25; "> RC_ALL is 255 ... lol Share this post Link to post Share on other sites
Kuroe 5 Posted April 11, 2019 1 hour ago, AnnieRuru said: not working I equip a 'Secular_Mission' ItemID 2127, and expecting it to list all as 25, prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i ) dispbottom race_resist(.@i) +""; end; } but it display all in 0 instead a few places are wrong in your plugin, but are actually correct in wolfie's version 1. the constant case-sensitivity wolfie's constants are correct, but yours are wrong should follow the constants.md file, not the source filehttps://github.com/HerculesWS/Hercules/blob/stable/doc/constants.md#elements ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255 2. your plugin stop at RC_Player, which is 10, but I tested with 'Secular_Mission' which hasScript: <" bonus2 bSubRace, RC_All, 25; "> RC_ALL is 255 ... lol Thank you for pointing it out. updated to ver 1.1 1 AnnieRuru reacted to this Share this post Link to post Share on other sites
Eternity 1 Posted April 12, 2019 Hi, is there also you can make a compatible for rAthena? Share this post Link to post Share on other sites
Mihael 2 Posted July 14, 2019 On 4/11/2019 at 7:02 AM, AnnieRuru said: not working I equip a 'Secular_Mission' ItemID 2127, and expecting it to list all as 25, prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i ) dispbottom race_resist(.@i) +""; end; } prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i ) dispbottom race_resist(.@i) +""; end; } but it display all in 0 instead a few places are wrong in your plugin, but are actually correct in wolfie's version 1. the constant case-sensitivity wolfie's constants are correct, but yours are wrong should follow the constants.md file, not the source filehttps://github.com/HerculesWS/Hercules/blob/stable/doc/constants.md#elements ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255 ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255 2. your plugin stop at RC_Player, which is 10, but I tested with 'Secular_Mission' which hasScript: <" bonus2 bSubRace, RC_All, 25; "> RC_ALL is 255 ... lol Yes, bug.. Share this post Link to post Share on other sites
heroji 2 Posted April 11, 2020 nice idea but bugged? https://imgur.com/MS05qqz Share this post Link to post Share on other sites
Rynbef 3 Posted April 13, 2020 (edited) That's rly helpful for users who can see it at a npc and no longer need to calculate it and for server owner to check if all effects (race or ele resistant) works. U do not longer need to attack with the item and without the item. I will add size and skill resistence too and others like freeze resistance. Thanks Edited April 13, 2020 by Rynbef Share this post Link to post Share on other sites
Timokha 0 Posted July 15, 2021 Are there any updates on this plugin? It shows ZERO values. Share this post Link to post Share on other sites