-
Notifications
You must be signed in to change notification settings - Fork 52
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
Core/Missings scripts #129
Conversation
Core/Missings scripts - wow token
wow tokens: |
it was originally in the code, but alexYa was removed. but not completely. we have 2 ways to remove completely or or add missing code fragments |
@@ -0,0 +1,176 @@ | |||
#include "ScriptMgr.h" | |||
#include "GridNotifiersImpl.h" | |||
#include "DatabaseEnv.h" // borrar si no necesitas base de datos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems not using databases function.
{ | ||
if (player->IsInCombat() || player->InArena() || player->InBattleground()) //Item is not usable in combat, arenas and battlegrounds. This can be modified to your taste. | ||
{ | ||
player->GetSession()->SendNotification("You may not use this token whilst you are in combat or present in an arena or battleground."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think custom message can handler in trinity_string table.
|
||
void AddSC_wow_token() // Add to scriptloader normally | ||
{ | ||
new wow_token_1(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe token_1,token_2,token_5,token_10 can handler in onescript.
…1_11_05_Intendentes-PVE.sql
Isn't this variant easier? |
83fcc06
to
73008fa
Compare
Change locale text to trinity string
This commit already merge into master branch. |
Core/Missings scripts - wow token