36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Talus Menu on Rest
|
|
// tal_onacquire
|
|
// OPW Integration and Clean Up By Don Anderson
|
|
// dandersonru@msn.com
|
|
//
|
|
// Place in the Module OnAcquired Event
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
object oItem = GetModuleItemAcquired();
|
|
object oPC=GetItemPossessor(oItem);
|
|
object nPC= GetFirstFactionMember(oPC,TRUE);
|
|
object oWinner;
|
|
string itemname=GetName(oItem);
|
|
int goldvalue=GetGoldPieceValue(oItem);
|
|
string itemvalue=IntToString(goldvalue);
|
|
|
|
|
|
while(nPC!=OBJECT_INVALID)
|
|
{
|
|
if(GetLocalInt(nPC,"plmode")&& goldvalue>GetLocalInt(nPC,"plmin")&&GetLocalInt(nPC,"stealthloot")!=TRUE)
|
|
{
|
|
string lootstring=itemname+"("+GetName(oPC)+","+itemvalue+" gp)";
|
|
string spacer="\n";
|
|
int i;
|
|
SetLocalString(nPC,"partyloot",GetLocalString(nPC,"partyloot")+lootstring+spacer);
|
|
SetCustomToken(6667,GetLocalString(nPC,"partyloot"));
|
|
}
|
|
nPC=GetNextFactionMember(oPC,TRUE);
|
|
}
|
|
}
|