Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/eagle_npc.nss
Normal file
23
_module/nss/eagle_npc.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oNPC = OBJECT_SELF;
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oPC);
|
||||
|
||||
if(GetIsObjectValid(oItem))
|
||||
{
|
||||
ActionTakeItem(oItem,oPC);
|
||||
AssignCommand(oNPC, ActionEquipItem(oItem, INVENTORY_SLOT_RIGHTHAND));
|
||||
AssignCommand(oNPC, ActionSpeakString("Thanks!,take these in exchange"));
|
||||
CreateItemOnObject("flying_boots",oPC,1);
|
||||
SetLocalInt(oPC, "eaglenpc", 1);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
AssignCommand(oNPC, ActionSpeakString("You ain't got no weapon!"));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user