19 lines
556 B
Plaintext
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));
|
|
}
|
|
}
|