Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if item.actionid == 2075 and getPlayerStorageValue(cid,21444) == 1 then
if cidPosition.y < toPosition.y then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
end
return TRUE
else
doCreatureSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
return TRUE
end
return FALSE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if item.actionid == 2076 and getPlayerStorageValue(cid,21444) == 1 then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
end
return TRUE
else
doCreatureSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
return TRUE
end
return FALSE
end
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,1)
setPlayerStorageValue(cid,21444,1)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Vip Access!", TALKTYPE_ORANGE_1)
end
end
<action itemid="5785" script="Vipaccess.lua" />
<action actionid="2075" script="vipdoor.lua"/>
<action actionid="2076" script="vipdoor2.lua"/>
item id="5785" article="a" name="medal of honour">
<attribute key="weight" value="100"/>
</item>
<item id="5785" article="a" name="vip access">
<attribute key="weight" value="100"/>
<attribute key="writeable" value="0"/>
</item>
-- By Sotwin --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,5785)
setPlayerStorageValue(cid,21444,1)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Vip Access!", TALKTYPE_ORANGE_1)
end
end
<item id="5785" article="a" name="Vip Access">
</item>
--VIP Sotwin--
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=xxx, y=yyy, z=z} -- pozycja temple VIP-a!
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2075 and getPlayerStorageValue(cid,21444) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doCreatureSay(cid, "Powodzienia VIP'ie!!!", TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
end
return 1
end
<action actionid="2075" script="vipdoor.lua"/>
.