void main() { object oPC = GetPCSpeaker(); //Place any items in the main hand or the off-hand in the inventory object oCopied; int nCursed; if (GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC) != OBJECT_INVALID) { nCursed = GetItemCursedFlag(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC)); oCopied = CopyItem(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC), oPC, TRUE); if (oCopied != OBJECT_INVALID) DestroyObject(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC)); if (nCursed == TRUE) SetItemCursedFlag(oCopied, TRUE); nCursed = FALSE; } if (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC) != OBJECT_INVALID) { nCursed = GetItemCursedFlag(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)); oCopied = CopyItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC), oPC, TRUE); if (oCopied != OBJECT_INVALID) DestroyObject(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)); if (nCursed == TRUE) SetItemCursedFlag(oCopied, TRUE); nCursed = FALSE; } //The end of this chunk of code object oItem; if (GetLocalString(oPC, "StaffType") == "Wizard") oItem = CreateItemOnObject("anc_it_staff1a", oPC); if (GetLocalString(oPC, "StaffType") == "Sorcerer") oItem = CreateItemOnObject("anc_it_staff1b", oPC); if (GetLocalString(oPC, "StaffType") == "Druid") oItem = CreateItemOnObject("anc_it_staff1ca", oPC); SetIdentified(oItem, TRUE); SetLocalInt(oItem, "Prototype", TRUE); SetItemCursedFlag(oItem, TRUE); }