• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Pacc Rune for Hours

Dorianek

Member
Joined
Nov 29, 2018
Messages
252
Reaction score
10
Location
Poland
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
 
Back
Top