Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] What is it then ?

[DiscordArchive] What is it then ?

[DiscordArchive] What is it then ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-12-2024, 05:20 PM
#1
Archived author: cyberpro98 • Posted: 2024-02-12T17:20:32.866000+00:00
Original source

What is it then ?
rektbyfaith
02-12-2024, 05:20 PM #1

Archived author: cyberpro98 • Posted: 2024-02-12T17:20:32.866000+00:00
Original source

What is it then ?

rektbyfaith
Administrator
0
02-12-2024, 05:20 PM
#2
Archived author: cyberpro98 • Posted: 2024-02-12T17:20:35.454000+00:00
Original source

just a number
rektbyfaith
02-12-2024, 05:20 PM #2

Archived author: cyberpro98 • Posted: 2024-02-12T17:20:35.454000+00:00
Original source

just a number

rektbyfaith
Administrator
0
02-12-2024, 05:20 PM
#3
Archived author: cyberpro98 • Posted: 2024-02-12T17:20:43.358000+00:00
Original source

RegisterPlayerEvent( 1000, 1, 0 ) this ?
rektbyfaith
02-12-2024, 05:20 PM #3

Archived author: cyberpro98 • Posted: 2024-02-12T17:20:43.358000+00:00
Original source

RegisterPlayerEvent( 1000, 1, 0 ) this ?

rektbyfaith
Administrator
0
02-12-2024, 05:22 PM
#4
Archived author: volek • Posted: 2024-02-12T17:22:02.060000+00:00
Original source

Here I converted the typescript
```
doTeleport = function(____, eventId, player, item, target)
if player then
player:Teleport(
571,
5496.157227,
4725.473633,
-194.177444,
2.009775
)
return true
end
end
RegisterItemEvent(
100000,
2,
function(...) return doTeleport(_G, ...) end
)

```
rektbyfaith
02-12-2024, 05:22 PM #4

Archived author: volek • Posted: 2024-02-12T17:22:02.060000+00:00
Original source

Here I converted the typescript
```
doTeleport = function(____, eventId, player, item, target)
if player then
player:Teleport(
571,
5496.157227,
4725.473633,
-194.177444,
2.009775
)
return true
end
end
RegisterItemEvent(
100000,
2,
function(...) return doTeleport(_G, ...) end
)

```

rektbyfaith
Administrator
0
02-12-2024, 05:22 PM
#5
Archived author: cyberpro98 • Posted: 2024-02-12T17:22:27.364000+00:00
Original source

what is number 2 ?
rektbyfaith
02-12-2024, 05:22 PM #5

Archived author: cyberpro98 • Posted: 2024-02-12T17:22:27.364000+00:00
Original source

what is number 2 ?

rektbyfaith
Administrator
0
02-12-2024, 05:22 PM
#6
Archived author: volek • Posted: 2024-02-12T17:22:33.682000+00:00
Original source

2 is the eventId
rektbyfaith
02-12-2024, 05:22 PM #6

Archived author: volek • Posted: 2024-02-12T17:22:33.682000+00:00
Original source

2 is the eventId

rektbyfaith
Administrator
0
02-12-2024, 05:23 PM
#7
Archived author: cyberpro98 • Posted: 2024-02-12T17:23:00.764000+00:00
Original source

mhmm ok
rektbyfaith
02-12-2024, 05:23 PM #7

Archived author: cyberpro98 • Posted: 2024-02-12T17:23:00.764000+00:00
Original source

mhmm ok

rektbyfaith
Administrator
0
02-12-2024, 05:23 PM
#8
Archived author: cyberpro98 • Posted: 2024-02-12T17:23:09.757000+00:00
Original source

What is wrong with my script ?
rektbyfaith
02-12-2024, 05:23 PM #8

Archived author: cyberpro98 • Posted: 2024-02-12T17:23:09.757000+00:00
Original source

What is wrong with my script ?

rektbyfaith
Administrator
0
02-12-2024, 05:24 PM
#9
Archived author: volek • Posted: 2024-02-12T17:24:04.410000+00:00
Original source

```
enum ItemEvents
{
ITEM_EVENT_ON_DUMMY_EFFECT = 1, // (event, caster, spellid, effindex, item)
ITEM_EVENT_ON_USE = 2, // (event, player, item, target) - Can return false to stop the spell casting
```
From docs
rektbyfaith
02-12-2024, 05:24 PM #9

Archived author: volek • Posted: 2024-02-12T17:24:04.410000+00:00
Original source

```
enum ItemEvents
{
ITEM_EVENT_ON_DUMMY_EFFECT = 1, // (event, caster, spellid, effindex, item)
ITEM_EVENT_ON_USE = 2, // (event, player, item, target) - Can return false to stop the spell casting
```
From docs

rektbyfaith
Administrator
0
02-12-2024, 05:25 PM
#10
Archived author: volek • Posted: 2024-02-12T17:25:04.580000+00:00
Original source

in the script you still have to change the item id (100000) and teleport coordinates / id)
rektbyfaith
02-12-2024, 05:25 PM #10

Archived author: volek • Posted: 2024-02-12T17:25:04.580000+00:00
Original source

in the script you still have to change the item id (100000) and teleport coordinates / id)

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