Forums WoW Modding Support Archives Azerothcore Discord Archives [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 ?

[DiscordArchive] is there any script that teleports a player to map x y z o, when he clicks right click on item ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-12-2024, 02:43 PM
#1
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 ?
rektbyfaith
02-12-2024, 02:43 PM #1

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 ?

rektbyfaith
Administrator
0
02-12-2024, 04:08 PM
#2
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
rektbyfaith
02-12-2024, 04:08 PM #2

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

rektbyfaith
Administrator
0
02-12-2024, 04:08 PM
#3
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));
```
rektbyfaith
02-12-2024, 04:08 PM #3

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));
```

rektbyfaith
Administrator
0
02-12-2024, 04:24 PM
#4
Archived author: cyberpro98 • Posted: 2024-02-12T16:24:24.501000+00:00
Original source

yea
rektbyfaith
02-12-2024, 04:24 PM #4

Archived author: cyberpro98 • Posted: 2024-02-12T16:24:24.501000+00:00
Original source

yea

rektbyfaith
Administrator
0
02-12-2024, 04:24 PM
#5
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
rektbyfaith
02-12-2024, 04:24 PM #5

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

rektbyfaith
Administrator
0
02-12-2024, 04:43 PM
#6
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'
rektbyfaith
02-12-2024, 04:43 PM #6

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'

rektbyfaith
Administrator
0
02-12-2024, 04:49 PM
#7
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
rektbyfaith
02-12-2024, 04:49 PM #7

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

rektbyfaith
Administrator
0
02-12-2024, 04:50 PM
#8
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
rektbyfaith
02-12-2024, 04:50 PM #8

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

rektbyfaith
Administrator
0
02-12-2024, 04:53 PM
#9
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 ?
rektbyfaith
02-12-2024, 04:53 PM #9

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 ?

rektbyfaith
Administrator
0
02-12-2024, 04:54 PM
#10
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
rektbyfaith
02-12-2024, 04:54 PM #10

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

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)