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