This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
features:sinfar_supporter_housing:npc_appearance [2019/07/20 15:08] spankitty |
features:sinfar_supporter_housing:npc_appearance [2019/07/22 07:07] (current) spankitty |
||
---|---|---|---|
Line 3: | Line 3: | ||
If you know how to put an npc in your house , it may be time to dress them up ! | If you know how to put an npc in your house , it may be time to dress them up ! | ||
- | ==== Resources to be created in your webclient resource page : ==== | + | ==== Resources to use or that need to be created (similar) in your webclient resource page : ==== |
{{:features:sinfar_supporter_housing:npc_playerhouse_resources.jpg}} | {{:features:sinfar_supporter_housing:npc_playerhouse_resources.jpg}} | ||
Line 11: | Line 11: | ||
- | 1: A NPC. | + | 1: A NPC. (female in this case) |
Line 42: | Line 42: | ||
SetEntireCreatureAppearance(OBJECT_SELF, sBodyAppearance); | SetEntireCreatureAppearance(OBJECT_SELF, sBodyAppearance); | ||
} | } | ||
- | if(sArmorAppearance!=""&&GetIsObjectValid(oArmor)) | + | if(sArmorAppearance != "" && GetIsObjectValid(oArmor)) |
{ | { | ||
RestoreItemAppearance(oArmor, sArmorAppearance); | RestoreItemAppearance(oArmor, sArmorAppearance); | ||
object oNewArmor = UpdateItemAppr(oArmor); | object oNewArmor = UpdateItemAppr(oArmor); | ||
- | if(GetItemAC(oNewArmor)!=iOrginalAC) | + | if(GetItemAC(oNewArmor) != iOrginalAC) |
{ | { | ||
SetItemAC(oNewArmor, iOrginalAC); | SetItemAC(oNewArmor, iOrginalAC); | ||
} | } | ||
} | } | ||
- | if(sHeadAppearance!="") | + | if(sHeadAppearance != "") |
{ | { | ||
SetHeadItemOverrideString(OBJECT_SELF,sHeadAppearance); | SetHeadItemOverrideString(OBJECT_SELF,sHeadAppearance); |