Alexeng
25-06-10, 12:56 PM
The point with this script was to copy a spell from a wc3 map, everything is working perfectly, tested for collision with a friend.
What it does: When you cast spell 111 (time step, does nothing) the script activates, if you already got the time step aura on you, nothing will happen (to stop a collision error), else the script will save your cords inside a table thats unique to your name (no collision there), it will also save your current hp and mana. after 10 seconds (thats the lenght of the time step aura, used that for the script too) it will make your character cast a visual, then you will get "reseted" back to the point of casting, restoring hp, mana and teleporting you to the cords you casted the spell at, including orientation. It will stop working if you have removed/lost the aura.
Lua | TimeWalk = {} TimeWalk_V = {} - Laurea - 5jn5Fdf5 - Pastebin.com (http://pastebin.com/5jn5Fdf5)
Taken from my original post on WoW-V
What it does: When you cast spell 111 (time step, does nothing) the script activates, if you already got the time step aura on you, nothing will happen (to stop a collision error), else the script will save your cords inside a table thats unique to your name (no collision there), it will also save your current hp and mana. after 10 seconds (thats the lenght of the time step aura, used that for the script too) it will make your character cast a visual, then you will get "reseted" back to the point of casting, restoring hp, mana and teleporting you to the cords you casted the spell at, including orientation. It will stop working if you have removed/lost the aura.
Lua | TimeWalk = {} TimeWalk_V = {} - Laurea - 5jn5Fdf5 - Pastebin.com (http://pastebin.com/5jn5Fdf5)
Taken from my original post on WoW-V