--Config by Wlj Otland--
local Config AddPlayerPremiumDays --- From server config premium=vip. So dont change config.lua to free prem then all get vip..---
local AddDays = 7 -- Days of VIP Player will get--
local STORE_VALUE = 11551 -- The doors unid '11551'--
local EXHAUST_TIME = 2 -- Exhaust time in seconds.--
--Config--
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2354 then -- Item ID <.<.
getPlayerStorageValue(cid, 11551) -- The doors unid '11551'--
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_BLUE_1)
if item.uid == 70430 and getPlayerStorageValue(cid,70430) == 1 then -- Use Unid '70430' on the "quest" SQM..--
doSendMagicEffect(pos, 29)
setPlayerStorageValue(cid, 11551, 1) -- The doors unid '11551'--
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,'You have not talked with CM Reaper! Please ask for a trip to GM Island.') -- CM Reaper is a npc, He can help the player to GM Island. Use the value to make this "quest".--
doRemoveItem(item.uid, 1)
end
return LUA_NO_ERROR
end