mirror of
https://github.com/freekode/mod-reward-played-time-improved.git
synced 2026-01-13 00:28:34 +00:00
Merge pull request #16 from azerothcore/fix-build
chore: fix get guid function
This commit is contained in:
6
.github/workflows/core-build.yml
vendored
6
.github/workflows/core-build.yml
vendored
@@ -8,8 +8,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
compiler: [clang6, clang9, clang10]
|
compiler: [clang]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
name: ${{ matrix.compiler }}
|
name: ${{ matrix.compiler }}
|
||||||
env:
|
env:
|
||||||
COMPILER: ${{ matrix.compiler }}
|
COMPILER: ${{ matrix.compiler }}
|
||||||
@@ -42,4 +42,4 @@ jobs:
|
|||||||
- name: Dry run
|
- name: Dry run
|
||||||
run: source ./apps/ci/ci-worldserver-dry-run.sh
|
run: source ./apps/ci/ci-worldserver-dry-run.sh
|
||||||
- name: Check startup errors
|
- name: Check startup errors
|
||||||
run: source ./apps/ci/ci-error-check.sh
|
run: source ./apps/ci/ci-error-check.sh
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ uint32 Max_roll;
|
|||||||
|
|
||||||
class reward_system : public PlayerScript
|
class reward_system : public PlayerScript
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
reward_system() : PlayerScript("reward_system") {}
|
reward_system() : PlayerScript("reward_system") {}
|
||||||
|
|
||||||
@@ -76,7 +77,7 @@ public:
|
|||||||
|
|
||||||
ChatHandler(receiver->GetSession()).PSendSysMessage("You will receive your item in your mailbox");
|
ChatHandler(receiver->GetSession()).PSendSysMessage("You will receive your item in your mailbox");
|
||||||
// format: name "subject text" "mail text" item1[:count1] item2[:count2] ... item12[:count12]
|
// format: name "subject text" "mail text" item1[:count1] item2[:count2] ... item12[:count12]
|
||||||
uint64 receiverGuid = receiver->GetGUID();
|
uint64 receiverGuid = receiver->GetGUID().GetCounter();
|
||||||
std::string receiverName;
|
std::string receiverName;
|
||||||
|
|
||||||
std::string subject = "Reward System prize";
|
std::string subject = "Reward System prize";
|
||||||
@@ -115,7 +116,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// from console show not existed sender
|
// from console show not existed sender
|
||||||
MailSender sender(MAIL_NORMAL, receiver->GetSession() ? receiver->GetGUIDLow() : 0, MAIL_STATIONERY_TEST);
|
MailSender sender(MAIL_NORMAL, receiver->GetSession() ? receiver->GetGUID().GetCounter() : 0, MAIL_STATIONERY_TEST);
|
||||||
|
|
||||||
// fill mail
|
// fill mail
|
||||||
MailDraft draft(subject, text);
|
MailDraft draft(subject, text);
|
||||||
@@ -131,7 +132,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
draft.SendMailTo(trans, MailReceiver(receiver, GUID_LOPART(receiverGuid)), sender);
|
draft.SendMailTo(trans, MailReceiver(receiver, receiverGuid), sender);
|
||||||
CharacterDatabase.CommitTransaction(trans);
|
CharacterDatabase.CommitTransaction(trans);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user