[DiscordArchive] is there any script that teleports a player to map x y z o, when he clicks right click on item ?
[DiscordArchive] is there any script that teleports a player to map x y z o, when he clicks right click on item ?
Archived author: cyberpro98 • Posted: 2024-02-12T14:43:09.714000+00:00
Original source
is there any script that teleports a player to map x y z o, when he clicks right click on item ?
Archived author: volek • Posted: 2024-02-12T16:08:07.296000+00:00
Original source
Eluna based? https://www.azerothcore.org/pages/eluna/...Event.html
Event 2.
[Embed: Global:RegisterItemEvent - Eluna]
API documentation for the Global:RegisterItemEvent method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...Event.html
Archived author: volek • Posted: 2024-02-12T16:08:07.817000+00:00
Original source
This is on ets but should be pretty easy to see how to do it in lua using the event above.
```
const TELEPORTER = 1000000;
const teleport: gameobject_event_on_use = (event, go: GameObject, player: Player) => {
player.Teleport(0, -5147.910845, 4024.771240, 59.303185, 5.775685);
return true;
};
RegisterGameObjectEvent(TELEPORTER, GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => teleport(...args));
```
Archived author: cyberpro98 • Posted: 2024-02-12T16:24:24.501000+00:00
Original source
yea
Archived author: cyberpro98 • Posted: 2024-02-12T16:24:46.796000+00:00
Original source
when i click on item right click it should teleport me somewhere
Archived author: cyberpro98 • Posted: 2024-02-12T16:43:55.672000+00:00
Original source
AC> [Eluna]: Error loading `lua_scripts/hyjalitemsummon.lua`
lua_scripts/hyjalitemsummon.lua:1: syntax error near 'TELEPORTER'
Archived author: Foe • Posted: 2024-02-12T16:49:06.302000+00:00
Original source
That's not Lua, it's Typescript, you'll have to convert it
Archived author: Honey • Posted: 2024-02-12T16:50:16.173000+00:00
Original source
Can just convert it with https://github.com/azerothcore/eluna-ts
[Embed: GitHub - azerothcore/eluna-ts: Eluna-TS converts TS files to Lua sc...]
Eluna-TS converts TS files to Lua scripts compatible with the Eluna system - GitHub - azerothcore/eluna-ts: Eluna-TS converts TS files to Lua scripts compatible with the Eluna system
https://github.com/azerothcore/eluna-ts
Archived author: cyberpro98 • Posted: 2024-02-12T16:53:20.485000+00:00
Original source
i download the module and then run it in my computer ?
Archived author: cyberpro98 • Posted: 2024-02-12T16:54:07.526000+00:00
Original source
I tried to make a script but it didn´t go well ... What is wrong here ? its lua