tiddpd
PHP Scripter
- Joined
- Apr 16, 2008
- Messages
- 331
- Reaction score
- 0
I can make a simple version of this script but I need for features. Firstly this is a talkaction script, what I want it to do is when you say "open sesame" in front of the door, it will open. That door is the first of several doors through the quest where you have to figure out what to say to open it.
I am having two problems, the first is using doTransformItem to open the door (it doesnt know what item is), and my second problem is putting it so you have to be on a certain tile for it to open (so that you can't open the door from anywhere on the map).
This what I have so far... lol, note: I have tried putting doCreateItem right after remove item, does not work.
I am having two problems, the first is using doTransformItem to open the door (it doesnt know what item is), and my second problem is putting it so you have to be on a certain tile for it to open (so that you can't open the door from anywhere on the map).
This what I have so far... lol, note: I have tried putting doCreateItem right after remove item, does not work.
Code:
local statuePos = {x = 457, y = 198, z = 7, stackpos=1}
local statue = getThingfromPos(statuePos)
function onSay(cid, words, param)
doRemoveItem(statue.uid,1)
end