Changed folder name.
Changed folder name.
This commit is contained in:
13
_module/nss/gc_set_lefthand.nss
Normal file
13
_module/nss/gc_set_lefthand.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
int nType;
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_LEFTHAND,GetPCSpeaker());
|
||||
nType = GetBaseItemType(oItem);
|
||||
int nSlot = INVENTORY_SLOT_LEFTHAND;
|
||||
SetLocalInt(GetPCSpeaker(), "CRAFT_SLOT", nSlot);
|
||||
SetLocalInt(GetPCSpeaker(), "CRAFT_TYPE", nType);
|
||||
string s = GetResRef(oItem);
|
||||
SetLocalString(GetPCSpeaker(), "RESREF", s);
|
||||
SetLocalInt(oItem, "CRAFTING", 1);
|
||||
}
|
Reference in New Issue
Block a user