Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
→Show Gift Window and Identify Items Given
imported>JustinOther m (→Script to make an item cast a spell: Condensed properties, optimized slightly via removal of unnecessary '&&') |
imported>Sollar |
||
| Line 822: | Line 822: | ||
Function FeedCompanion() | Function FeedCompanion() | ||
AddInventoryEventFilter(FoodList) | |||
ShowGiftMenu(True, FoodList, False, False) | |||
RemoveAllInventoryEventFilters() | |||
EndFunction | EndFunction | ||
| Line 836: | Line 830: | ||
If akSourceContainer == Game.GetPlayer() | If akSourceContainer == Game.GetPlayer() | ||
self.RemoveItem(akBaseItem,aiItemCount) | self.RemoveItem(akBaseItem,aiItemCount) | ||
If hasBeenFedToday | If !hasBeenFedToday | ||
hasBeenFedToday=True | hasBeenFedToday=True | ||
EndIf | EndIf | ||