Updated onClientEnter script

Updated onClientEnter script to remove DMFI DM wands from PCs.  Updated release archive.
This commit is contained in:
Jaysyn904 2024-10-02 11:36:56 -04:00
parent 000a8bd935
commit 4f57249663
3 changed files with 34 additions and 3 deletions

Binary file not shown.

View File

@ -165,20 +165,51 @@ void main()
//:: Give DMFI Wands if player doesn't have them //:: Give DMFI Wands if player doesn't have them
if ( GetItemPossessedBy(oPC, "dmfi_pc_dicebag") == OBJECT_INVALID ) if ( GetItemPossessedBy(oPC, "dmfi_pc_dicebag") == OBJECT_INVALID )
{ {
DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Dicebag acquired.", oPC)); //DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Dicebag acquired.", oPC));
GiveDMFI(oPC, "dmfi_pc_dicebag"); GiveDMFI(oPC, "dmfi_pc_dicebag");
} }
if ( GetItemPossessedBy(oPC, "dmfi_pc_emote") == OBJECT_INVALID ) if ( GetItemPossessedBy(oPC, "dmfi_pc_emote") == OBJECT_INVALID )
{ {
DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Emote Wand acquired.", oPC)); //DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Emote Wand acquired.", oPC));
GiveDMFI(oPC, "dmfi_pc_emote"); GiveDMFI(oPC, "dmfi_pc_emote");
} }
if ( GetItemPossessedBy(oPC, "dmfi_pc_follow") == OBJECT_INVALID ) if ( GetItemPossessedBy(oPC, "dmfi_pc_follow") == OBJECT_INVALID )
{ {
DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Autofollow Wand acquired.", oPC)); //DelayCommand(1.0, FloatingTextStringOnCreature("DMFI PC Autofollow Wand acquired.", oPC));
GiveDMFI(oPC, "dmfi_pc_follow"); GiveDMFI(oPC, "dmfi_pc_follow");
} }
//:: Remove DMFI DM Wands from players
if ( GetItemPossessedBy(oPC, "dmfi_dicebag") != OBJECT_INVALID )
{
// Check if the player is not a DM
if (!GetIsDM(oPC))
{
// Remove the item from the player's inventory
object oItem = GetItemPossessedBy(oPC, "dmfi_dicebag");
DestroyObject(oItem);
}
}
if ( GetItemPossessedBy(oPC, "dmfi_naming") != OBJECT_INVALID )
{
// Check if the player is not a DM
if (!GetIsDM(oPC))
{
// Remove the item from the player's inventory
object oItem = GetItemPossessedBy(oPC, "dmfi_naming");
DestroyObject(oItem);
}
}
if ( GetItemPossessedBy(oPC, "dmfi_emote") != OBJECT_INVALID )
{
// Check if the player is not a DM
if (!GetIsDM(oPC))
{
// Remove the item from the player's inventory
object oItem = GetItemPossessedBy(oPC, "dmfi_emote");
DestroyObject(oItem);
}
}
//Test to see if PC has a skill book.. if not, then create one. //Test to see if PC has a skill book.. if not, then create one.
if (GetItemPossessedBy(oPC,"NoDrop_SkillLogBook")==OBJECT_INVALID) if (GetItemPossessedBy(oPC,"NoDrop_SkillLogBook")==OBJECT_INVALID)
{ {

Binary file not shown.