Markyieee Posted March 29, 2014 Posted March 29, 2014 A source modification that allows player to use @hatredreset. Thank you. I already tried the one in eAthena. but i think its a little more different :-) Thank you for those who will share :-) Quote
0 sandbox Posted April 2, 2014 Posted April 2, 2014 Not sure what variable does Hatred skill store in global_reg_value, kindly change the 'pc_hate_id' to the correct variable name... - script hatredreset -1,{ OnInit: bindatcmd strnpcinfo(1),strnpcinfo(1)+"::OnAtcommand",0,40; end; OnAtcommand: query_sql("UPDATE `global_reg_value` SET `value`='0' WHERE `str`='PC_HATE_MOB_%' AND `char_id`='"+getcharid(0)+"'"); message strcharinfo(0),"Reset 'Hatred' maps, you may need to relog for the changes to take effect."; end; } Quote
0 Markyieee Posted April 16, 2014 Author Posted April 16, 2014 Not sure what variable does Hatred skill store in global_reg_value, kindly change the 'pc_hate_id' to the correct variable name... - script hatredreset -1,{ OnInit: bindatcmd strnpcinfo(1),strnpcinfo(1)+"::OnAtcommand",0,40; end; OnAtcommand: query_sql("UPDATE `global_reg_value` SET `value`='0' WHERE `str`='pc_hate_id' AND `char_id`='"+getcharid(0)+"'"); message strcharinfo(0),"Your hatred has been reset."; end; } Which one is it : PC_HATE_MOB_MOON PC_HATE_MOB_STAR PC_HATE_MOB_SUN ??? Quote
0 sandbox Posted April 16, 2014 Posted April 16, 2014 I've updated the post containing the script, test it out Quote
0 Noobie Posted April 24, 2014 Posted April 24, 2014 src/map/atcommand.c Add this /*========================================== * Feel (SG save map) Reset [HiddenDragon] *------------------------------------------*/ ACMD_FUNC(feelreset) { pc_resetfeel(sd); clif_displaymessage(fd, msg_txt(sd,1324)); // Reset 'Feeling' maps. return 0; } + /*========================================== + * Hatred Reset [GodLesZ] modified by n00b1e + *------------------------------------------*/ + ACMD_FUNC(hatredreset) + { + pc_resethate(sd); + clif_displaymessage(sd->fd, "Reset 'Hatred' state~"); + return 0; + } and this ACMD_DEF(feelreset), +ACMD_DEF(hatredreset), ACMD_DEF(auction), And then edit your groups.conf and atcommand.conf btw Thanks to GodLesZ for the old eathena modification Quote
0 tiwawits14 Posted November 5, 2014 Posted November 5, 2014 when i used this i got error then suddenly when i remove it atcommand.c: In function ‘atcommand_param’: atcommand.c:2517: error: ‘struct Battle_Config’ has no member named ‘atcommand_max_stat_bypass’ atcommand.c: In function ‘atcommand_stat_all’: atcommand.c:2579: error: ‘struct Battle_Config’ has no member named ‘atcommand_max_stat_bypass’ atcommand.c: In function ‘atcommand_recallall’: atcommand.c:3532: error: too few arguments to function ‘pc_setstand’ atcommand.c: In function ‘atcommand_reload’: atcommand.c:3690: warning: implicit declaration of function ‘merc_reload’ atcommand.c:3691: warning: implicit declaration of function ‘read_mercenarydb’ atcommand.c:3692: warning: implicit declaration of function ‘read_mercenary_skilldb’ atcommand.c:3697: warning: implicit declaration of function ‘merc_skill_reload’ atcommand.c: In function ‘atcommand_useskill’: atcommand.c:5525: warning: implicit declaration of function ‘merc_is_hom_active’ atcommand.c: In function ‘atcommand_autotrade’: atcommand.c:5747: error: ‘buyingstore_db’ undeclared (first use in this function) atcommand.c:5747: error: (Each undeclared identifier is reported only once atcommand.c:5747: error: for each function it appears in.) atcommand.c: In function ‘atcommand_homlevel’: atcommand.c:7132: warning: implicit declaration of function ‘merc_hom_levelup’ atcommand.c: In function ‘atcommand_homevolution’: atcommand.c:7154: warning: implicit declaration of function ‘merc_hom_evolution’ atcommand.c: In function ‘atcommand_makehomun’: atcommand.c:7214: warning: implicit declaration of function ‘merc_create_homunculus_request’ atcommand.c: In function ‘atcommand_homshuffle’: atcommand.c:7421: warning: implicit declaration of function ‘merc_hom_shuffle’ atcommand.c: In function ‘atcommand_font’: atcommand.c:8672: error: ‘struct map_session_data’ has no member named ‘user_font’ atcommand.c:8674: error: ‘struct map_session_data’ has no member named ‘user_font’ atcommand.c:8686: error: ‘struct map_session_data’ has no member named ‘user_font’ atcommand.c:8688: error: ‘struct map_session_data’ has no member named ‘user_font’ atcommand.c: In function ‘atcmd_channel_help’: atcommand.c:9082: error: ‘Channel_Config’ undeclared (first use in this function) atcommand.c: In function ‘atcommand_channel’: atcommand.c:9175: error: ‘Channel_Config’ undeclared (first use in this function) atcommand.c: In function ‘atcommand_fontcolor’: atcommand.c:9224: error: ‘Channel_Config’ undeclared (first use in this function) make[1]: *** [obj/atcommand.o] Error 1 make[1]: Leaving directory `/root/rAthena/src/map' make: *** [map] Error 2 Quote
0 Radian Posted April 15, 2016 Posted April 15, 2016 which one is working? The one Sandbox posted. - script hatredreset -1,{ OnInit: bindatcmd strnpcinfo(1),strnpcinfo(1)+"::OnAtcommand",0,40; end; OnAtcommand: query_sql("UPDATE `acc_reg_str` SET `value`='0' WHERE `str`='PC_HATE_MOB_%' AND `char_id`='"+getcharid(0)+"'"); message strcharinfo(0),"Reset 'Hatred' maps, you may need to relog for the changes to take effect."; end; } Quote
0 lanblakebea Posted April 16, 2016 Posted April 16, 2016 how to make this @hatredreset without relogging? bump? Quote
0 mauiboy Posted August 25, 2016 Posted August 25, 2016 (edited) Sandbox's script has no error, i can @hatredreset but it does not reset my hatred. Any help? Edited August 25, 2016 by mauiboy Quote
0 sandbox Posted August 29, 2016 Posted August 29, 2016 Sandbox's script has no error, i can @hatredreset but it does not reset my hatred. Any help? You need to relogin/char select. Quote
0 mauiboy Posted August 29, 2016 Posted August 29, 2016 Sandbox's script has no error, i can @hatredreset but it does not reset my hatred. Any help? You need to relogin/char select. Still the same. Quote
0 Emistry Posted August 30, 2016 Posted August 30, 2016 you have to use the source mod to clear the hatred, not the SQL trick. The SQL trick only work if you executed it while your char isn't online. Any changes that you made on the data that stored within these `acc_reg_*` table won't be updated unless your char is currently offline. When your char logout, it would simply get overwritten by current status of the char. Quote
0 mauiboy Posted August 30, 2016 Posted August 30, 2016 I have found a solution. This is currently working on my test server. https://rathena.org/board/topic/65054-hatereset/ Quote
Question
Markyieee
A source modification that allows player to use @hatredreset. Thank you. I already tried the one in eAthena. but i think
its a little more different :-)
Thank you for those who will share :-)
14 answers to this question
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.