240 lines
6.3 KiB
Plaintext
240 lines
6.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName mand_payload
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 1/25/2006 7:30:07 PM
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
// Give the speaker the items
|
|
object oPC = GetPCSpeaker();
|
|
CreateItemOnObject("mil_dyekit001", GetPCSpeaker(), 1);
|
|
object oItemToTake1 = GetItemPossessedBy(oPC, "Amethyst");
|
|
object oItemToTake2 = GetItemPossessedBy(oPC, "Tanzanite");
|
|
object oItemToTake3 = GetItemPossessedBy(oPC, "Sapphire");
|
|
object oItemToTake4 = GetItemPossessedBy(oPC, "Ruby");
|
|
object oItemToTake5 = GetItemPossessedBy(oPC, "Peridot");
|
|
object oItemToTake6 = GetItemPossessedBy(oPC, "Pearl");
|
|
object oItemToTake7 = GetItemPossessedBy(oPC, "Iolite");
|
|
object oItemToTake8 = GetItemPossessedBy(oPC, "Garnet");
|
|
object oItemToTake9 = GetItemPossessedBy(oPC, "Emerald");
|
|
object oItemToTake10 = GetItemPossessedBy(oPC, "Diamond");
|
|
object oItemToTake11 = GetItemPossessedBy(oPC, "Citrine");
|
|
object oItemToTake12 = GetItemPossessedBy(oPC, "BlackDiamond");
|
|
object oItemToTake13 = GetItemPossessedBy(oPC, "Aquamarine");
|
|
object oItemToTake14 = GetItemPossessedBy(oPC, "Ametrine");
|
|
object oItemToTake15 = GetItemPossessedBy(oPC, "Zircon");
|
|
object oItemToTake16 = GetItemPossessedBy(oPC, "Tourmaline");
|
|
object oItemToTake17 = GetItemPossessedBy(oPC, "Topaz");
|
|
object oItemToTake18 = GetItemPossessedBy(oPC, "Taulite");
|
|
|
|
// Remove some gold from the player
|
|
TakeGoldFromCreature(80000, GetPCSpeaker(), TRUE);
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Amethyst")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake1) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake1, GetItemStackSize(oItemToTake1)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake1) == 1)
|
|
{
|
|
DestroyObject(oItemToTake1);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Tanzanite")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake2) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake2, GetItemStackSize(oItemToTake2)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake2) == 1)
|
|
{
|
|
DestroyObject(oItemToTake2);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Sapphire")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake3) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake3, GetItemStackSize(oItemToTake3)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake3) == 1)
|
|
{
|
|
DestroyObject(oItemToTake3);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Ruby")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake4) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake4, GetItemStackSize(oItemToTake4)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake4) == 1)
|
|
{
|
|
DestroyObject(oItemToTake4);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Peridot")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake5) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake5, GetItemStackSize(oItemToTake5)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake5) == 1)
|
|
{
|
|
DestroyObject(oItemToTake5);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Pearl")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake6) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake6, GetItemStackSize(oItemToTake6)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake6) == 1)
|
|
{
|
|
DestroyObject(oItemToTake6);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Iolite")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake7) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake7, GetItemStackSize(oItemToTake7)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake7) == 1)
|
|
{
|
|
DestroyObject(oItemToTake7);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Emerald")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake8) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake8, GetItemStackSize(oItemToTake8)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake8) == 1)
|
|
{
|
|
DestroyObject(oItemToTake8);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Garnet")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake9) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake9, GetItemStackSize(oItemToTake9)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake9) == 1)
|
|
{
|
|
DestroyObject(oItemToTake9);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Diamond")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake10) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake10, GetItemStackSize(oItemToTake10)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake10) == 1)
|
|
{
|
|
DestroyObject(oItemToTake10);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Citrine")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake11) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake11, GetItemStackSize(oItemToTake11)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake11) == 1)
|
|
{
|
|
DestroyObject(oItemToTake11);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "BlackDiamond")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake12) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake12, GetItemStackSize(oItemToTake12)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake12) == 1)
|
|
{
|
|
DestroyObject(oItemToTake12);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Aquamarine")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake13) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake13, GetItemStackSize(oItemToTake13)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake13) == 1)
|
|
{
|
|
DestroyObject(oItemToTake13);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Ametrine")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake14) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake14, GetItemStackSize(oItemToTake14)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake14) == 1)
|
|
{
|
|
DestroyObject(oItemToTake14);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Zircon")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake15) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake15, GetItemStackSize(oItemToTake15)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake15) == 1)
|
|
{
|
|
DestroyObject(oItemToTake15);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Tourmaline")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake16) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake16, GetItemStackSize(oItemToTake16)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake16) == 1)
|
|
{
|
|
DestroyObject(oItemToTake16);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Topaz")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake17) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake17, GetItemStackSize(oItemToTake1)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake17) == 1)
|
|
{
|
|
DestroyObject(oItemToTake17);
|
|
}
|
|
|
|
if(GetIsObjectValid(GetItemPossessedBy(oPC, "Taulite")))
|
|
{
|
|
if (GetItemStackSize(oItemToTake18) > 1)
|
|
{
|
|
SetItemStackSize(oItemToTake18, GetItemStackSize(oItemToTake18)-1);
|
|
}
|
|
else if (GetItemStackSize(oItemToTake18) == 1)
|
|
{
|
|
DestroyObject(oItemToTake18);
|
|
}
|
|
|
|
object oItemToTake00;
|
|
oItemToTake00 = GetItemPossessedBy(GetPCSpeaker(), "mil_dyekit001");
|
|
DestroyObject(oItemToTake00);
|
|
CreateItemOnObject("mil_dyekit001", GetPCSpeaker(), 1);
|
|
}}}}}}}}}}}}}}}}}}
|
|
|
|
}
|