Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] ```If Player:HasQuest(questid)```

[DiscordArchive] ```If Player:HasQuest(questid)```

[DiscordArchive] ```If Player:HasQuest(questid)```

rektbyfaith
Administrator
0
04-11-2022, 11:08 AM
#1
Archived author: Bogir • Posted: 2022-04-11T11:08:52.887000+00:00
Original source

```If Player:HasQuest(questid)```
Which player must be checked here? How the server must understand it?
rektbyfaith
04-11-2022, 11:08 AM #1

Archived author: Bogir • Posted: 2022-04-11T11:08:52.887000+00:00
Original source

```If Player:HasQuest(questid)```
Which player must be checked here? How the server must understand it?

rektbyfaith
Administrator
0
04-11-2022, 11:09 AM
#2
Archived author: Bogir • Posted: 2022-04-11T11:09:30.421000+00:00
Original source

Maybe you wanted `if (player->HasQuest(quest_id)) { }` ?
rektbyfaith
04-11-2022, 11:09 AM #2

Archived author: Bogir • Posted: 2022-04-11T11:09:30.421000+00:00
Original source

Maybe you wanted `if (player->HasQuest(quest_id)) { }` ?

rektbyfaith
Administrator
0
04-11-2022, 11:10 AM
#3
Archived author: Bogir • Posted: 2022-04-11T11:10:13.254000+00:00
Original source

Player* player = <who is this player?> ;
rektbyfaith
04-11-2022, 11:10 AM #3

Archived author: Bogir • Posted: 2022-04-11T11:10:13.254000+00:00
Original source

Player* player = <who is this player?> ;

rektbyfaith
Administrator
0
04-11-2022, 11:55 AM
#4
Archived author: Honey • Posted: 2022-04-11T11:55:12.681000+00:00
Original source

In lua the Syntax is `object:HasQuest()`
But i agree it would be way more easy to See more context. Some of these bugs are impossible so solve without seeing the whole script, because the actual mistake is several lines before.
rektbyfaith
04-11-2022, 11:55 AM #4

Archived author: Honey • Posted: 2022-04-11T11:55:12.681000+00:00
Original source

In lua the Syntax is `object:HasQuest()`
But i agree it would be way more easy to See more context. Some of these bugs are impossible so solve without seeing the whole script, because the actual mistake is several lines before.

rektbyfaith
Administrator
0
04-11-2022, 12:39 PM
#5
Archived author: Shard • Posted: 2022-04-11T12:39:10.562000+00:00
Original source

<@114208819449561094>
I'm doing something like this :
```lua
local questId = 199999;
if (player:HasQuest(questId) and not player:GetQuestRewardStatus(questId)) then ... end
```
rektbyfaith
04-11-2022, 12:39 PM #5

Archived author: Shard • Posted: 2022-04-11T12:39:10.562000+00:00
Original source

<@114208819449561094>
I'm doing something like this :
```lua
local questId = 199999;
if (player:HasQuest(questId) and not player:GetQuestRewardStatus(questId)) then ... end
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)