Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
25
_module/nss/qst_takeitem.nss
Normal file
25
_module/nss/qst_takeitem.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "rd_misc"
|
||||
|
||||
void main()
|
||||
{
|
||||
int iStep;
|
||||
int iSteps;
|
||||
object oPC;
|
||||
object oItemToTake;
|
||||
string sTag;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
sTag = GetLocalString(oPC,"QuestItemTag");
|
||||
|
||||
oItemToTake = GetItemPossessedBy(oPC, sTag);
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
|
||||
iStep = GetLocalInt(oPC,"QuestStep");
|
||||
iSteps = GetLocalInt(oPC,"QuestSteps");
|
||||
|
||||
if (iStep == iSteps)
|
||||
SetPartyInt(oPC,"QuestDone",1);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user