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

Value to open doors

krille09

Belden
Joined
Aug 15, 2007
Messages
4,892
Reaction score
55
Location
Stockholm, Sweden
Lua:
function onUse(cid, item, frompos, item2, topos)
local value = 11447
	if getPlayerStorageValue(cid,value) == TRUE then
		-- happens when he has the value
	else
		-- happens if he doesn't have the value
	end
	return TRUE
end

Someone can help me with that door, it should be able to be everydoor, no mather what with value 11447 then it goes open, not a spefific door (spelling?)

Something like Postman Quest
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newpos = {x=fromPosition.x -0,y=fromPosition.y+1,z=fromPosition.z}
	if item.uid == 1229 and getPlayerStorageValue(cid,101) >= 1 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "happens when he has the value!")
		doTeleportThing(cid,newpos)
	elseif item.uid == 1229 and getPlayerStorageValue(cid,101) < 1 then 
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not have done the mission!")
	end
	return true
end
 
Just put Doors with red handle and set up ActionID to storage key which you want to player have to pass door.
 
Back
Top