• 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!

vipdoor

ameer

New Member
Joined
Dec 31, 2010
Messages
83
Reaction score
0
Hello my problem is that i can only open the door when i am on ground floor.
With remers mapeditor floor 7. My vip room is in floor 6.
Someone know how to make the doors work on floor 6?
Here's the script i am using.




-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP on the MegaEvo.pl Shop!")
return TRUE
end
return FALSE
end
 
VIP DooR!
-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,19551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Cya!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP from Admin Amadeu.")
return TRUE
end
return FALSE
end
VIP MedaL!

-- Credits StreamSide, Empty and Kaorus
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
-- if getPlayerStorageValue(cid,19551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 19551)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.!", TEXTCOLOR_RED)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.", TEXTCOLOR_RED)
doSendMagicEffect(getPlayerPosition(cid),27)
doCreatureSay(cid, "CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!", TALKTYPE_ORANGE_1)
doBroadcastMessage("CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!")
setPlayerStorageValue(cid, 19551, (getPlayerStorageValue(cid,19551) + 999))
doSendMagicEffect(getPlayerPosition(cid),27)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
doRemoveItem(item.uid, 1)
end
-- else
-- doPlayerSendCancel(cid,"You are already a donator.")
-- end
return TRUE
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
		doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
		doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP on our Shop page.")
	end
	return true
end
 
Back
Top