Initial upload
Initial upload
This commit is contained in:
43
_module/nss/btlr_miltailor.nss
Normal file
43
_module/nss/btlr_miltailor.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: BODY TAILOR: mil tailor
|
||||
//:: onconv bodytailor
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
this switches to the mil tailor conversation,
|
||||
and creates the tailoring clothing/helmets
|
||||
on the creature.
|
||||
you MUST have the miltailor already installed.
|
||||
(i recommend the helmet add-on, which is currently the latest)
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: bloodsong
|
||||
//:: based on the Mil_Tailor by Milambus Mandragon
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
object oClothing = GetItemPossessedBy(oSelf, "Clothing");
|
||||
object oHelmet = GetItemPossessedBy(oSelf, "Tlr_Helmet");
|
||||
|
||||
if (oClothing == OBJECT_INVALID)
|
||||
{
|
||||
if(GetGender(oSelf) == GENDER_FEMALE)
|
||||
{ oClothing = CreateItemOnObject("mil_clothing667"); }
|
||||
else
|
||||
{ oClothing = CreateItemOnObject("mil_clothing668"); }
|
||||
|
||||
}
|
||||
if (oHelmet == OBJECT_INVALID)
|
||||
{ oHelmet = CreateItemOnObject("mil_clothing669"); }
|
||||
|
||||
DelayCommand(0.6, ActionEquipItem(oClothing, INVENTORY_SLOT_CHEST));
|
||||
|
||||
|
||||
ActionStartConversation(oPC, "mil_tailor", TRUE, FALSE);
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user