Jump to content

Giving a NPC items upon quest completion


antstubell

Recommended Posts

Hi all.

 

The quest was to catch 3 specific salmon and give them to a NPC. Player catches the salmon, returns to NPC and gets a "Thank you" and 300 gold reward but the 3 salmon meats remain in the players inventory. How can, more precisely what script will give the salmon to the NPC?

Thanks.

Link to comment
Share on other sites

This should remove three salmon from the player and give them to the npc:

 

Game.GetPlayer().RemoveItem(salmon, 3, False, NPC_alias.GetRef())

Edited by steve40
Link to comment
Share on other sites

This should remove three salmon from the player and give them to the npc:

 

Game.GetPlayer().RemoveItem(salmon, 3, False, NPC_alias.GetRef())

The soecific item to give the NPC is "Yellow Salmon Meat" which is a copy of Salmon Meat retextured. The script requires a property and I don't see a way to add the Yellow Meat as an Alias. I can create a new property but what catergory of property should I create? I tried MiscObject and the Yellow Meat doesn't appear in the list. Tried Ingredient still doesn't appear. Help please.

Edited by antstubell
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...