Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname KMRefundScript extends ActiveMagicEffect
- {Passively refunds gold back to user}
- MiscObject property gold auto
- {Item to add to user inventory; in this case gold}
- int itemValue ; stores the item's gold value
- ; Triggers when item is used
- Event OnItemRemoved (Form Item, int ItemCount, ObjectReference ItemRef, ObjectReference DestCont)
- if (!DestCont && !ItemRef)
- itemValue = Item.GetGoldValue()
- itemValue = itemValue/2
- Game.GetPlayer().AddItem(gold, itemValue)
- endif
- EndEvent
- ; - KunoMochi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement