-- By Maly Wizak --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2110 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2110)
setPlayerStorageValue(cid,21444,1)
doSendMagicEffect(playerpos, 12)
doPlayerSay(cid, "Congratulation! Now you are have Super VIP Access!!!", TALKTYPE_ORANGE_1)
end
end
--VIP MALY WIZAK--
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=515, y=1031, z=7}
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2020 and getPlayerStorageValue(cid,21444) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doPlayerSay(cid, "Welcome on Super VIP !!!", TALKTYPE_ORANGE_1)
end
else
doPlayerSay(cid, "You don't have Super VIP!!!", TALKTYPE_ORANGE_1)
end
return 1
end
-- By Maly Wizak --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2112 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2112)
setPlayerStorageValue(cid,21445,1)
doSendMagicEffect(playerpos, 12)
doPlayerSay(cid, "Congratulation! Now you are have Super VIP Access!!!", TALKTYPE_ORANGE_1)
end
end
--VIP MALY WIZAK--
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21445
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=515, y=1031, z=7}
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2112 and getPlayerStorageValue(cid,21445) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doPlayerSay(cid, "Welcome on Super VIP !!!", TALKTYPE_ORANGE_1)
end
else
doPlayerSay(cid, "You don't have Super VIP!!!", TALKTYPE_ORANGE_1)
end
return 1
end
local config = {
--VIP acces
item = 2322, --king doll
storage = 20000,
efekt = CONST_ME_SOUND_RED,
--door
position = {x=515, y=1031, z=7},
actionid = 2010,
efekt = CONST_ME_TELEPORT
}
function onUse(cid, item, frompos, itemEx, topos)
local vipstatus = getPlayerStorageValue(cid, config.storage)
if item.itemid == config.item then
local pos = getCreaturePosition(cid)
doRemoveItem(item.uid, 1)
doPlayerSetStorageValue(cid, config.storage, 1)
doSendMagicEffect(pos, config.efekt)
doCreatureSay(cid, "Congratulation! Now you are have Super VIP Access!!!", TALKTYPE_ORANGE_1)
end
if vipstatus == 1 and item.actionid == config.actionid then
doTeleportThing(cid, config.position)
doSendMagicEffect(config.position, config.efekt)
doCreatureSay(cid, "Welcome on Super VIP !!!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You don't have Super VIP!!!", TALKTYPE_ORANGE_1)
end
return true
end
<action itemid="2322" event="script" value="superVIP.lua"/>
<action actionid="2010" event="script" value="superVIP.lua"/>