generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
19
_module/nss/vat_mrusted.nss
Normal file
19
_module/nss/vat_mrusted.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "x2_inc_itemprop"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int iSlot = GetLocalInt(oPC, "iSlot");
|
||||
int iColorType = GetLocalInt(oPC, "iItemAppr");
|
||||
int iColor = GetLocalInt(oPC, "iColor" + IntToString(iColorType));
|
||||
|
||||
//metal rusted
|
||||
int iNewColor = 52;
|
||||
|
||||
object oItem = IPDyeArmor(GetItemInSlot(iSlot, oPC), iColorType, iNewColor);
|
||||
|
||||
SetLocalInt(oPC, "iColor" + IntToString(iColorType), iNewColor);
|
||||
FloatingTextStringOnCreature("Color " + IntToString(iNewColor), oPC, FALSE);
|
||||
|
||||
AssignCommand(oPC, ActionEquipItem(oItem, iSlot));
|
||||
}
|
Reference in New Issue
Block a user