Aantioch_Infernum/_module/nss/ohswhtkeygen.nss

15 lines
350 B
Plaintext
Raw Normal View History

2023-08-08 16:22:17 -04:00
void main()
{
if (GetTag(GetItemActivated()) == "ohswhtkeygen")
{
object oTarget = GetItemActivatedTarget();
if (!GetIsObjectValid(oTarget))
return;
// Apply effects
AssignCommand(oTarget, ClearAllActions());
CreateItemOnObject("ohstowerkey", oTarget);
CreateItemOnObject("whiteapprentice", oTarget);
}
}