Clear out experimental .35 files
Clear out experimental .35 files
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#include "x2_inc_switches"
|
||||
|
||||
void main()
|
||||
{
|
||||
if(GetUserDefinedItemEventNumber() == X2_ITEM_EVENT_UNACQUIRE)
|
||||
{
|
||||
object oBag = GetModuleItemLost();
|
||||
object oNewOwner = GetItemPossessor(oBag);
|
||||
|
||||
if(GetIsPC(oNewOwner))
|
||||
{
|
||||
string sName = GetName(oBag);
|
||||
string sGP = GetStringByStrRef(6407)+" ";
|
||||
int nGold = StringToInt(GetStringRight(sName, GetStringLength(sName) - GetStringLength(sGP)));
|
||||
|
||||
DestroyObject(oBag);
|
||||
GiveGoldToCreature(oNewOwner, nGold);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user