Hello everyone!
The other day I made the switch from Arcemu to Trinity. I'm starting to get used to Eluna and I'm learning the new functions. I wanted to make a teleporter that would teleport a player while putting them in a invis for a few seconds so so they don't get ganked right after porting.
My whole script works fine with the server even the teleport works! It's just the buff and the speech right afterwards that doesn't work. I'm sure its something stupid on my part like a wrong function but does anyone know how I can make this NPC cast the invis spell and say the, "You are invisible" line after talking to him?
Here is the part of the script:
if (intid == 1) then
player:Teleport(530, -3816.390137, -11477.362305, -138.452454, 4.254857) -- this works
player:SendBroadcastMessage("You are invisible!") -- this doesn't work
player:AddAura(29309, player) -- this doesn't work
end
Thanks!