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

special doors

Nacke

New Member
Joined
Feb 13, 2008
Messages
79
Reaction score
0
hello, this makes the char scrip crosses the door to see if anyone can fix the door to open and close the door (not through the door).'m looking for but can not find. thank you very much

use tfs 0.3.6

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid == 10044 then
		if(isInArray(getPlayerStorageValue(cid, 10005), -1 == TRUE then
  			doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
		else
			doPlayerSendTextMessage(cid, 22, "You've absorbed enough energy! You may pass.")
			doTransformItem(item.uid, item.itemid + 1)
			doTeleportThing(cid, toPosition, TRUE)
		end
		return TRUE
	end
	return FALSE
end
 
It needs to be fixed on movements, that i can't do anything for you :( , but, you can change the door, put a door who can open and close... if you want, i can give you some IDs. :)

Sorry if I don't helped you :\
 
thz

hello, thank you for your attention and find one that works so I had another server

PHP:
function onUse(cid, item, frompos, item2, topos)

status = getPlayerStorageValue(cid,10005)

if item.actionid == 3001 and item.itemid == 5105 and status == 1 then
doTransformItem(item.uid,item.itemid+1)

elseif item.itemid == 5106 then
doTransformItem(item.uid,item.itemid-1)

end


if item.actionid == 3001 and status == -1 then
doPlayerSendTextMessage(cid,22,"The door seems to be sealed against unwanted intruders.")

end
return 1
end

use tfs 0.3.6
 
Back
Top Bottom