Alangara_PRC8/_module/nss/give_blackg_weap.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

34 lines
902 B
Plaintext

/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
*/
// Put this script OnEnter.
void main()
{
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Abort if the PC is not a certain class.
if ( GetLevelByClass(CLASS_TYPE_BLACKGUARD, oPC) == 0 )
return;
// Abort if the PC has the item "blackguard_weap".
if ( GetItemPossessedBy(oPC, "blackguard_weap") != OBJECT_INVALID )
return;
// Have text appear over the PC's head.
FloatingTextStringOnCreature("You have recieved your 'Blackguard Weapon Power*", oPC, FALSE);
// Give "blackguard_weap" to the PC.
CreateItemOnObject("blackguard_weap", oPC);
}