/* * 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_ASSASSIN, oPC) == 0 ) return; // Abort if the PC has the item "assasin_weap". if ( GetItemPossessedBy(oPC, "assasin_weap") != OBJECT_INVALID ) return; // Give "asssin_weap" to the PC. CreateItemOnObject("assasin_weap", oPC); // Have text appear over the PC's head. FloatingTextStringOnCreature("You have recieved your *Assasin Weapon Power* ", oPC, FALSE); }