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

getPlayerStorageValue

tibiamo

New Member
Joined
May 30, 2009
Messages
50
Reaction score
1
Good Guys, If I Wanted To Know How would someone help me, with a script so that only the player who is with the getPlayerStorageValue (cid, 15200) can pass the Tile.

Can someone help me?


Kisses KoJiiRo
 
Code:
local uid = xxxx

function onStepIn(cid, item, position, fromPosition)
if item.uniqueid == uid and (getPlayerStorageValue(cid, 15200) == -1) then
	pushBack(cid, position, fromPosition, true)
else
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't enter")
end
 
Code:
local uid = xxxx

function onStepIn(cid, item, position, fromPosition)
if item.uniqueid == uid and (getPlayerStorageValue(cid, 15200) == -1) then
	pushBack(cid, position, fromPosition, true)
else
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't enter")
end
item.uid instead of "item.uniqueid" ;s i think it does matter
 
oh well onStepIn doesnt support uniqueids i think just actionids i have tried couple of times in a mod and in lua
 
oh well onStepIn doesnt support uniqueids i think just actionids i have tried couple of times in a mod and in lua
it supports -.- but why would you ever check if item.uid == uid if the script is not shared with anything else?
 
Back
Top