generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
18
_module/nss/tlr_cloth1c.nss
Normal file
18
_module/nss/tlr_cloth1c.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
//Created by 420 for the CEP
|
||||
//Set Cloth 1 color for cloak
|
||||
//Based on script tlr_cloth2.nss by Jake E. Fitch
|
||||
|
||||
#include "tlr_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_CLOAK, OBJECT_SELF);
|
||||
int iMaterialToDye = ITEM_APPR_ARMOR_COLOR_CLOTH1;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "MaterialToDye", iMaterialToDye);
|
||||
|
||||
int iColor = GetItemAppearance(oItem, ITEM_APPR_TYPE_ARMOR_COLOR, iMaterialToDye);
|
||||
|
||||
SendMessageToPC(oPC, "Current Color: " + ClothColor(iColor));
|
||||
}
|
||||
Reference in New Issue
Block a user