Hello i wonder if its possible to make an item work like a key to a door? Like à sword or à Rune or something like that?
/R.
Hello i wonder if its possible to make an item work like a key to a door? Like à sword or à Rune or something like that?
/R.
dident get it to work![]()
firerunedoor.lua
Actions.xmllocal item = 2304 -- item id of item used as key.
local location = {x=198, y=477, z=7} -- location of where to be moved upon using the door
function onUse(cid, item, frompos, item2, topos)
if getPlayerItemCount(cid,item) >= 1 then
doTeleportThing(cid, location)
else
doPlayerSendCancel(cid, "You are required to have the fire rune of fire master to open this door!")
end
end
<action uniqueid="32000" script="Other/firerunedoor.lua"/>
Use actionid not uniqueid...
Ok will try thanks =)
Hm maybe I'm a retard but dident work have put out the door set the action id to 32000 but when i try to open it no message appear that whould have beenand when i try the rune on the door. it just say not possible?You are required to have the fire rune of fire master to open this door!
if you want to add new item, what will works like a key, and make it fully automatic you have to edit a bit your key.lua and door.lua by adding there new ids
otherwise you have to make new script for each doors with new keys you have.
-~= Mathematics =~-
MENSA Level
There are currently 1 users browsing this thread. (0 members and 1 guests)