I need to rewrite this script so that instead of (7days) it was at (x) hours
Code:
-- Script by Magic
function onUse(cid, item, frompos, item2, topos)
local idruny = 2275 -- Tu wpisz ID Runy
local dnipacc = 7 -- Ile dni pacca
if item.itemid == idruny then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid, 1)
doPlayerAddPremiumDays(cid, dnipacc)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Dostales 7dni pacc!") -- Co bedzie napisane.
end
end