Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Would this work fine, or is there a better way?

[DiscordArchive] Would this work fine, or is there a better way?

[DiscordArchive] Would this work fine, or is there a better way?

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
05-19-2024, 09:55 AM
#1
Archived author: Sylian • Posted: 2024-05-19T09:55:02.768000+00:00
Original source

Would this work fine, or is there a better way?
rektbyfaith
05-19-2024, 09:55 AM #1

Archived author: Sylian • Posted: 2024-05-19T09:55:02.768000+00:00
Original source

Would this work fine, or is there a better way?

rektbyfaith
Administrator
0
05-19-2024, 10:11 AM
#2
Archived author: 老爷爷 • Posted: 2024-05-19T10:11:54.398000+00:00
Original source

The path that creatures take to move through the air is strange。
Always beating up and down
rektbyfaith
05-19-2024, 10:11 AM #2

Archived author: 老爷爷 • Posted: 2024-05-19T10:11:54.398000+00:00
Original source

The path that creatures take to move through the air is strange。
Always beating up and down

rektbyfaith
Administrator
0
05-19-2024, 11:06 AM
#3
Archived author: Foe • Posted: 2024-05-19T11:06:22.079000+00:00
Original source

No, you don't want to touch the uint32 value yourself
rektbyfaith
05-19-2024, 11:06 AM #3

Archived author: Foe • Posted: 2024-05-19T11:06:22.079000+00:00
Original source

No, you don't want to touch the uint32 value yourself

rektbyfaith
Administrator
0
05-19-2024, 11:06 AM
#4
Archived author: Foe • Posted: 2024-05-19T11:06:56.587000+00:00
Original source

You want to return a value to the function and add that onto the value before it gets returned
rektbyfaith
05-19-2024, 11:06 AM #4

Archived author: Foe • Posted: 2024-05-19T11:06:56.587000+00:00
Original source

You want to return a value to the function and add that onto the value before it gets returned

rektbyfaith
Administrator
0
05-19-2024, 11:13 AM
#5
Archived author: Sylian • Posted: 2024-05-19T11:13:04.753000+00:00
Original source

So you dont want me to do anything in the lua script to add to the stat using SetUInt32Value?
But then, how do I then get the data from the lua script to the C++ code?
rektbyfaith
05-19-2024, 11:13 AM #5

Archived author: Sylian • Posted: 2024-05-19T11:13:04.753000+00:00
Original source

So you dont want me to do anything in the lua script to add to the stat using SetUInt32Value?
But then, how do I then get the data from the lua script to the C++ code?

rektbyfaith
Administrator
0
05-19-2024, 11:23 AM
#6
Archived author: Sylian • Posted: 2024-05-19T11:23:15.143000+00:00
Original source

Like, when I login on my character, it would need to grab stuff from the db, then send it from Lua to the c++ and then update the players stats.

I can use the hook/event for that on the UpdateAllStats, but I don't understand how I would set all these things into the stats via LUA.
rektbyfaith
05-19-2024, 11:23 AM #6

Archived author: Sylian • Posted: 2024-05-19T11:23:15.143000+00:00
Original source

Like, when I login on my character, it would need to grab stuff from the db, then send it from Lua to the c++ and then update the players stats.

I can use the hook/event for that on the UpdateAllStats, but I don't understand how I would set all these things into the stats via LUA.

rektbyfaith
Administrator
0
05-19-2024, 11:25 AM
#7
Archived author: Foe • Posted: 2024-05-19T11:25:03.112000+00:00
Original source

By returning them through the hook
rektbyfaith
05-19-2024, 11:25 AM #7

Archived author: Foe • Posted: 2024-05-19T11:25:03.112000+00:00
Original source

By returning them through the hook

rektbyfaith
Administrator
0
05-19-2024, 11:35 AM
#8
Archived author: Sylian • Posted: 2024-05-19T11:35:22.535000+00:00
Original source

I get that I need a hook and return them though the hook.
But I am still lost because I don't understand how you can return something to a hook via an event.

Also, I figured out that the UpdateAllStats doesn't really work since sometimes it even does the GetTotalStatValue and doesn't call the UpdateAllStats. This happens when equipping new weapons and stuff.
rektbyfaith
05-19-2024, 11:35 AM #8

Archived author: Sylian • Posted: 2024-05-19T11:35:22.535000+00:00
Original source

I get that I need a hook and return them though the hook.
But I am still lost because I don't understand how you can return something to a hook via an event.

Also, I figured out that the UpdateAllStats doesn't really work since sometimes it even does the GetTotalStatValue and doesn't call the UpdateAllStats. This happens when equipping new weapons and stuff.

rektbyfaith
Administrator
0
05-19-2024, 11:37 AM
#9
Archived author: Sylian • Posted: 2024-05-19T11:37:08.654000+00:00
Original source

Like, how would I return something when the "PLAYER_EVENT_ON_LOG_OUT" is called? (This is an example to explain what I am lost on)
rektbyfaith
05-19-2024, 11:37 AM #9

Archived author: Sylian • Posted: 2024-05-19T11:37:08.654000+00:00
Original source

Like, how would I return something when the "PLAYER_EVENT_ON_LOG_OUT" is called? (This is an example to explain what I am lost on)

rektbyfaith
Administrator
0
05-19-2024, 11:44 AM
#10
Archived author: Foe • Posted: 2024-05-19T11:44:30.555000+00:00
Original source

Look at how events like PLAYER_EVENT_ON_REPUTATION_CHANGE works
rektbyfaith
05-19-2024, 11:44 AM #10

Archived author: Foe • Posted: 2024-05-19T11:44:30.555000+00:00
Original source

Look at how events like PLAYER_EVENT_ON_REPUTATION_CHANGE works

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