There:
local config = {
reward = 9020, --Vampire Token
teamStore = 1000,
flagStore = 2015,
depot = {x=1000, y=1000, z=7}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(cid) == TRUE then
doSendMagicEffect(fromPosition, CONST_ME_CRAPS)
end...