darkshin
New old member
- Joined
- Dec 14, 2010
- Messages
- 231
- Reaction score
- 22
Hello !
I'm trying to make a script that when I use an item somewhere, it addEvents that will send some animations and teleport the player.
But, I just can't do it.
Someone has a clue why it don't work?
I'm trying to make a script that when I use an item somewhere, it addEvents that will send some animations and teleport the player.
But, I just can't do it.
Someone has a clue why it don't work?
Code:
addEvent(speech, 2000)
addEvent(effect, 6000)
addEvent(teleport, position), 8000)
local function speech()
doCreatureSay(cid, "Woow!", TALKTYPE_ORANGE_1)
end
local function effect()
doSendMagicEffect(getCreaturePosition(cid), 48)
end
local function teleport()
doTeleportThing(getCreaturePosition(cid), {x = 977, y = 1046, z = 7})
end