enderalse/scripts/source/_00e_itemdropchecksc.psc

20 lines
519 B
Plaintext

Scriptname _00E_ItemDropCheckSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef != Game.GetPlayer()
Form base = akActionRef.GetBaseObject()
if (base as Weapon) || (base as Armor) || (base as MiscObject) || (base as Potion) || (base as Book) || (base as Ingredient)
_00E_Game_CannotDropItemsInSkillmenu.Show()
Game.GetPlayer().AddItem(akActionRef)
akActionRef.Delete()
endif
endif
EndEvent
Message Property _00E_Game_CannotDropItemsInSkillmenu Auto