26 lines
426 B
Plaintext
26 lines
426 B
Plaintext
#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);
|
|
|
|
}
|
|
|