Initial Upload
Initial Upload
This commit is contained in:
77
_module/nss/asg_resdesk_01t.nss
Normal file
77
_module/nss/asg_resdesk_01t.nss
Normal file
@@ -0,0 +1,77 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name(ASG) Test Lecturn out
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
string sMid(string sString, int iStart,int iChars)
|
||||
{
|
||||
string sCut1;
|
||||
string sCut2;
|
||||
string sReturn;
|
||||
int iCut = iStart+iChars;
|
||||
sCut1 = GetStringLeft(sString,iCut);
|
||||
sCut2 = GetStringRight(sCut1,iChars);
|
||||
sReturn = sCut2;
|
||||
// ** No checks on this one
|
||||
|
||||
return sReturn;
|
||||
}
|
||||
string sEnd(string sString, int iStart)
|
||||
{
|
||||
string sCut1;
|
||||
string sCut2;
|
||||
string sReturn;
|
||||
int iLength = GetStringLength(sString);
|
||||
int iChars = iLength-iStart;
|
||||
int iCut = iStart+iChars;
|
||||
sCut1 = GetStringLeft(sString,iCut);
|
||||
sCut2 = GetStringRight(sCut1,iChars);
|
||||
sReturn = sCut2;
|
||||
// ** No checks on this one
|
||||
|
||||
return sReturn;
|
||||
}
|
||||
int StartingConditional()
|
||||
{
|
||||
int iResult = FALSE;
|
||||
object oLecturn =GetNearestObjectByTag("ASG_LECTURN");
|
||||
object oSelf = OBJECT_SELF;
|
||||
object oPC = GetPCSpeaker();
|
||||
if (GetIsObjectValid(oLecturn))
|
||||
{
|
||||
object oItem = GetFirstItemInInventory(oLecturn);
|
||||
// ASG_ArcaneBookofBelts
|
||||
if (GetIsObjectValid(oItem))
|
||||
{
|
||||
string sTag = GetTag(oItem);
|
||||
string sLeft3 = GetStringLeft(sTag,3);
|
||||
if (sLeft3=="RBK")
|
||||
{
|
||||
sLeft3 = sEnd(sTag,4);
|
||||
string sArDiv = sMid(sLeft3,4,3);
|
||||
sTag = sLeft3;
|
||||
if (sArDiv=="ARC")
|
||||
{
|
||||
|
||||
int iSorC = 1;
|
||||
int iWizC = 1;
|
||||
if (iSorC>0 || iWizC>0) iResult = TRUE;
|
||||
}
|
||||
else if (sArDiv=="DIV")
|
||||
{
|
||||
int iClrC = 1;
|
||||
int iDrdC = 1;
|
||||
if (iClrC>0 || iDrdC>0) iResult = TRUE;
|
||||
}
|
||||
SetLocalString(OBJECT_SELF,"RBK_ARDIV",sArDiv);
|
||||
}
|
||||
}
|
||||
}
|
||||
return iResult;
|
||||
}
|
Reference in New Issue
Block a user