24 lines
395 B
Plaintext
24 lines
395 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetItemActivator();
|
|
|
|
if (!GetIsPC(GetItemActivatedTarget())
|
|
){
|
|
|
|
SendMessageToPC(GetItemActivator(), "Improper use of item!");
|
|
return;}
|
|
|
|
if (GetGold(oPC) >= 500000)
|
|
{
|
|
oPC = GetItemActivatedTarget();
|
|
|
|
CreateItemOnObject("certificatele2", oPC);
|
|
|
|
oPC = GetItemActivator();
|
|
|
|
AssignCommand(oPC, TakeGoldFromCreature(500000, oPC, TRUE));
|
|
|
|
}
|
|
}
|
|
|