Files
Anphillia_PRC8/_module/nss/cnr_fixing_convo.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

19 lines
556 B
Plaintext

#include "cnr_recipe_utils"
void main()
{
int IsOk = GetListenPatternNumber();
string Skill = GetMatchedSubstring(2);
string Value = GetMatchedSubstring(4);
object Speaker = GetLastSpeaker();
object Victim = GetLocalObject(GetModule(), "CreatureToBeFixed");
SendMessageToAllDMs(GetName(Speaker) + " set " + GetName(Victim) + "'s skill number " + Skill + " to " + Value);
if (GetIsDM (Speaker) && GetIsPC (Victim) && IsOk == 5)
{
CnrSetTradeskillXPByIndex(Victim, StringToInt(Skill), StringToInt(Value));
}
}