Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PTR Paymaster ScriptDev #536

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

insunaa
Copy link
Contributor

@insunaa insunaa commented May 7, 2022

🍰 Pullrequest

This PR implements the ScriptDev script for the PTR Paymaster NPC.

Todo / Checklist

  • Add SQL Part
DELETE FROM `npc_text_broadcast_text` WHERE `Id` IN (39288);
INSERT INTO `npc_text_broadcast_text` (`Id`, `Prob0`, `BroadcastTextId0`) VALUES
(39288, 1, 39288);

UPDATE `creature_template` SET `GossipMenuId`=26751 WHERE `Entry`=26075;
UPDATE `creature_template` SET `ScriptName`="npc_paymaster" WHERE `Entry`=26075;

@miraco
Copy link
Contributor

miraco commented May 17, 2022

After learning an Profession skill you also learn all of the recipts including sunwell. Is this wanted?
Current PTR only has T6 items (no ZA no Sunwell) and afaik on PTR you only learn the profession spells for example Alchemy(Master) and get 375 skill points.

@insunaa
Copy link
Contributor Author

insunaa commented May 17, 2022

After learning an Profession skill you also learn all of the recipts including sunwell. Is this wanted? Current PTR only has T6 items (no ZA no Sunwell) and afaik on PTR you only learn the profession spells for example Alchemy(Master) and get 375 skill points.

Learning Sunwell recipes is not intended, on PTR you only learn up to BT recipes, but I don't know how to exclude sunwell recipes aside from using a static list of ids.

@miraco
Copy link
Contributor

miraco commented May 17, 2022

on what ptr you get all recipes from paymaster?
Or is my char buged? This video is from current tbc ptr.
https://youtu.be/slgw10MNx_I
im fine with having all recipes up to bt and i think a static list is still better then having all sunwell recipes

@insunaa
Copy link
Contributor Author

insunaa commented May 17, 2022

You're correct, I am now also only receiving the profession and no recipes. Either they changed this in the meantime or I misremember this, tho I did record it on video. I'll check that when I get home

@@ -2820,6 +2820,110 @@ bool GossipHello_npc_gossip_npc(Player* player, Creature* creature)
return true;
}

bool GossipHello_npc_paymaster(Player* pPlayer, Creature* pCreature)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand why the hello part is not in DB.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if there are broadcast texts for it etc.

@killerwife
Copy link
Contributor

Ok I will sum up merging the PR. Basically, we have broadcast texts that handle all translations and if we add it like it is right now, the translations wont be handled by this npc. Whenever I can be bothered, or before you do, we need to remove the hello part and move it to db and the select part needs to be somehow better integrated into using broadcast texts. The PR as-is is on par with old stuff but there is no reason why we cant make a better future for this clearly needed custom paradigm in 2022. And since you added BossAI which is exactly a step in that direction I bet you will agree with me. I will sit on it and think about how this can be better integrated.

davidonete added a commit to davidonete/mangos-tbc that referenced this pull request Apr 3, 2024
* fix ProcSystemArguments constructor arg mismatch

* [Quest] rework Missing in Action quest using new systems (cmangos#660)

* [Quest] rework Missing in Action quest using new systems

* add changes requested in comments

* SpawnGroup: Implement CREATURE_GROUP_FORMATION_MIRRORING

* Config: Implement config override with env vars (cmangos#502)

* Config: Implement config override with env vars

Implement overriding of configuration from the .conf file with environment variables.
Environment variables keys are autogenerated based on the keys defined in .conf file.
Usage example:
$ export CM_DATA_DIR=/usr
$ CM_WORLD_SERVER_PORT=8080 ./mangosd

* Update env var key format and encapsulated env loading logic.

The new env key format:
Mangosd_Rate_Health
Mangosd_DataDir

* Add suggestions from code review.

* Add missing includes.

* Pet: Tryfix double unsummon crash due to visibility

Close cmangos/mangos-wotlk#508

Credit @insunaa for the general idea

* [Quest] modernize defias brotherhood escort quest
Closes cmangos#662

* [Quest] modernize 'Protect the Shipment' escort quest
Closes cmangos#663

* Remove gameobject los temp fix for playerbots

* G3D: Extend Support for new MacOS Versions (+Apple Silicon)

* Pet: Fix compilation for pch on linux

* Network: Minor rework of code to make it same as wotlk

* Move spell to proper section

* G3D: Fix MacOS/Apple Silicon compile

* Spell/Unit: Remove now redundant default coeff calculation

I am expecting trouble, but we need to threat 0 as 0

Closes cmangos/issues#3685

* AC: Add ignore los to shirrak inhibit magic aoe

* Playerbots: Fix grid loading issue (cmangos#536) - Exxenoz

* Spell/Unit: Fix default for coefficient being 0 and fix coeff for npc pets

Closes cmangos/issues#3685

again

---------

Co-authored-by: cdkr <[email protected]>
Co-authored-by: _daanieL <[email protected]>
Co-authored-by: killerwife <[email protected]>
Co-authored-by: Anton Popovichenko <[email protected]>
Co-authored-by: insunaa <[email protected]>
Co-authored-by: insunaa <[email protected]>
davidonete added a commit to davidonete/mangos-tbc that referenced this pull request Apr 4, 2024
* fix ProcSystemArguments constructor arg mismatch

* [Quest] rework Missing in Action quest using new systems (cmangos#660)

* [Quest] rework Missing in Action quest using new systems

* add changes requested in comments

* SpawnGroup: Implement CREATURE_GROUP_FORMATION_MIRRORING

* Config: Implement config override with env vars (cmangos#502)

* Config: Implement config override with env vars

Implement overriding of configuration from the .conf file with environment variables.
Environment variables keys are autogenerated based on the keys defined in .conf file.
Usage example:
$ export CM_DATA_DIR=/usr
$ CM_WORLD_SERVER_PORT=8080 ./mangosd

* Update env var key format and encapsulated env loading logic.

The new env key format:
Mangosd_Rate_Health
Mangosd_DataDir

* Add suggestions from code review.

* Add missing includes.

* Pet: Tryfix double unsummon crash due to visibility

Close cmangos/mangos-wotlk#508

Credit @insunaa for the general idea

* [Quest] modernize defias brotherhood escort quest
Closes cmangos#662

* [Quest] modernize 'Protect the Shipment' escort quest
Closes cmangos#663

* Remove gameobject los temp fix for playerbots

* G3D: Extend Support for new MacOS Versions (+Apple Silicon)

* Pet: Fix compilation for pch on linux

* Network: Minor rework of code to make it same as wotlk

* Move spell to proper section

* G3D: Fix MacOS/Apple Silicon compile

* Spell/Unit: Remove now redundant default coeff calculation

I am expecting trouble, but we need to threat 0 as 0

Closes cmangos/issues#3685

* AC: Add ignore los to shirrak inhibit magic aoe

* Playerbots: Fix grid loading issue (cmangos#536) - Exxenoz

* Spell/Unit: Fix default for coefficient being 0 and fix coeff for npc pets

Closes cmangos/issues#3685

again

* Playerbots: Handle spell item requirements by the bot system

---------

Co-authored-by: cdkr <[email protected]>
Co-authored-by: _daanieL <[email protected]>
Co-authored-by: killerwife <[email protected]>
Co-authored-by: Anton Popovichenko <[email protected]>
Co-authored-by: insunaa <[email protected]>
Co-authored-by: insunaa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants