Initial commit
Initial commit. Updated release archive.
This commit is contained in:
38
_module/nss/en6_mq6_makeitem.nss
Normal file
38
_module/nss/en6_mq6_makeitem.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "en6_mq6_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sTag;
|
||||
int iType;
|
||||
object oItem;
|
||||
string sName;
|
||||
object oPC;
|
||||
int iValue;
|
||||
|
||||
oPC=GetPCSpeaker();
|
||||
sTag=GetLocalString(oPC,"QPTag");
|
||||
iType=GetLocalInt(oPC,"MQ6ItemType");
|
||||
oItem=GetItemPossessedBy(oPC,sTag);
|
||||
|
||||
sName=GetName(oItem);
|
||||
if (iType<2)
|
||||
{
|
||||
if (GetStringLeft(sName,7) == "Special")
|
||||
sName=GetStringRight(sName,GetStringLength(sName)-8);
|
||||
}
|
||||
sName = sName + " of Narsis";
|
||||
SetName(oItem,sName);
|
||||
SetLocalInt(oPC,"MQ6ItemMade",1);
|
||||
|
||||
if (GetGoodEvilValue(oPC) <35)
|
||||
iValue=1;
|
||||
else if (GetGoodEvilValue(oPC) >65)
|
||||
iValue=2;
|
||||
else
|
||||
iValue=3;
|
||||
|
||||
SetLocalInt(oPC,"MQ6Alignment",iValue);
|
||||
SetLocalInt(oPC,"MQ6Alignment2",Random(2));
|
||||
|
||||
GetMQ6Powers(oPC);
|
||||
}
|
||||
Reference in New Issue
Block a user