16 lines
375 B
Plaintext
16 lines
375 B
Plaintext
#include "x2_inc_switches"
|
|
#include "x2_inc_intweapon"
|
|
|
|
void main()
|
|
{
|
|
|
|
|
|
object oItem = GetPCItemLastUnequipped();
|
|
object oPC = GetPCItemLastUnequippedBy();
|
|
|
|
// Unequip DISARM CODE BEGINS HERE
|
|
SetLocalInt(oPC, "currentgold", GetGold(oPC));
|
|
SetLocalInt(oItem, "recentunequip", TRUE);
|
|
DelayCommand(3.0, DeleteLocalInt(oItem, "recentunequip"));
|
|
}
|