Rune_PRC8/_module/nss/b2_act_startauc.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

50 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name(b2) Start Auction
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Donny Wilbanks
//:: Created On: 10/10/02
//:://////////////////////////////////////////////
#include "nw_o2_coninclude"
void Generate()
{
object oPC = GetLastUsedBy();
object oCChest = GetNearestObjectByTag("ASG_CCHEST");
CreateGenericClassItem(oCChest,oPC,TRUE);
}
void main()
{
int iResult=FALSE;
object oAuctioneer = GetNearestObjectByTag("DMrGAuctioneer");
if(GetIsObjectValid(oAuctioneer))
{
int vAStarted = GetLocalInt(oAuctioneer,"B2_AUCTIONSTATUS");
if (vAStarted == TRUE) iResult=TRUE;
else
{
//
PlaySound("as_cv_gongring2");
Generate(); // adds something else to the chest
SetLocalInt(oAuctioneer,"B2_AUCTIONSTATUS",TRUE);
SetLocalInt(OBJECT_SELF,"B2_AuctionRound",0);
object oCChest = GetNearestObjectByTag("ASG_CCHEST");
if (GetIsObjectValid(oCChest))
{
int vCount = 0;
object oItem = GetFirstItemInInventory(oCChest);
if (GetIsObjectValid(oItem))
{
vCount++;
oItem = GetNextItemInInventory(oCChest);
}
}
// Set up Acutioneers
}
}
}