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;
}