Update vendored mod-playerbots to ba46fcd
This commit is contained in:
@@ -2,6 +2,7 @@ name: Enforce test-staging → master
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, edited]
|
||||
branches:
|
||||
- master
|
||||
- test-staging
|
||||
|
||||
+14
-4
@@ -6,10 +6,6 @@ on:
|
||||
- reopened
|
||||
- synchronize
|
||||
- ready_for_review
|
||||
paths:
|
||||
- src/**
|
||||
- "!README.md"
|
||||
- "!docs/**"
|
||||
|
||||
concurrency:
|
||||
group: "codestyle-cppcheck-${{ github.event.pull_request.number }}"
|
||||
@@ -22,13 +18,27 @@ jobs:
|
||||
if: github.event.pull_request.draft == false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: dorny/paths-filter@v3
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
cpp:
|
||||
- 'src/**'
|
||||
- '!README.md'
|
||||
- '!docs/**'
|
||||
|
||||
- name: Setup python
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: AzerothCore codestyle
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
run: python ./apps/codestyle/codestyle-cpp.py
|
||||
|
||||
- name: C++ Advanced
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install -y cppcheck
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
|
||||
- name: Set reusable strings
|
||||
id: strings
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Label translation PRs
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
label-translation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout base branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch PR head and generate diff
|
||||
run: |
|
||||
git fetch origin refs/pull/${{ github.event.pull_request.number }}/head
|
||||
git diff ${{ github.event.pull_request.base.sha }}...FETCH_HEAD > pr.diff
|
||||
|
||||
- name: Detect ai_playerbot_texts inserts
|
||||
id: detect
|
||||
run: |
|
||||
if grep -E '^\+.*INSERT[[:space:]]+INTO[[:space:]]+`?ai_playerbot_texts`?' pr.diff; then
|
||||
echo "has_translation=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "has_translation=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Add label
|
||||
if: steps.detect.outputs.has_translation == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh pr edit ${{ github.event.pull_request.number }} \
|
||||
--repo ${{ github.repository }} \
|
||||
--add-label "Added translation"
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
+124
-15
@@ -1,4 +1,5 @@
|
||||
name: windows-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master", "test-staging" ]
|
||||
@@ -6,7 +7,7 @@ on:
|
||||
branches: [ "master", "test-staging" ]
|
||||
|
||||
concurrency:
|
||||
group: "windows-build-${{ github.event.pull_request.number }}"
|
||||
group: "windows-build-${{ github.event.pull_request.number || github.ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@@ -14,36 +15,144 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
os: [windows-2022]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
BOOST_ROOT: C:\local\boost_1_82_0
|
||||
BOOST_ROOT: C:\local\boost_1_87_0
|
||||
CMAKE_GENERATOR: Ninja
|
||||
CTOOLS_BUILD: all
|
||||
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
path: 'ac'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
path: a
|
||||
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/mod-playerbots'
|
||||
#path: 'modules/mod-playerbots'
|
||||
path: ac/modules/mod-playerbots
|
||||
path: a/modules/mod-playerbots
|
||||
|
||||
- name: Move source tree to short path
|
||||
shell: powershell
|
||||
run: |
|
||||
if (Test-Path C:\ac) {
|
||||
Remove-Item C:\ac -Recurse -Force
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path C:\ac | Out-Null
|
||||
|
||||
robocopy "${{ github.workspace }}\a" "C:\ac" /MIR /NFL /NDL /NJH /NJS /NP
|
||||
|
||||
if ($LASTEXITCODE -le 7) {
|
||||
exit 0
|
||||
}
|
||||
|
||||
exit $LASTEXITCODE
|
||||
|
||||
- name: Install Boost and Ninja
|
||||
shell: powershell
|
||||
run: |
|
||||
choco install ninja -y --no-progress
|
||||
choco install boost-msvc-14.3 --version=1.87.0 -y --no-progress
|
||||
|
||||
- name: Prepare OpenSSL from runner image
|
||||
shell: powershell
|
||||
run: |
|
||||
$candidates = @(
|
||||
"C:\Program Files\OpenSSL",
|
||||
"C:\Program Files\OpenSSL-Win64"
|
||||
)
|
||||
|
||||
$opensslRoot = $null
|
||||
|
||||
foreach ($candidate in $candidates) {
|
||||
if ((Test-Path "$candidate\bin\openssl.exe") -and (Test-Path "$candidate\include\openssl\ssl.h")) {
|
||||
$opensslRoot = $candidate
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $opensslRoot) {
|
||||
Write-Host "OpenSSL candidates checked:"
|
||||
$candidates | ForEach-Object { Write-Host " - $_" }
|
||||
throw "OpenSSL development files not found on runner image"
|
||||
}
|
||||
|
||||
if (Test-Path C:\openssl) {
|
||||
Remove-Item C:\openssl -Recurse -Force
|
||||
}
|
||||
|
||||
New-Item -ItemType Junction -Path C:\openssl -Target $opensslRoot | Out-Null
|
||||
|
||||
"OPENSSL_ROOT_DIR=C:\openssl" >> $env:GITHUB_ENV
|
||||
"OPENSSL_DIR=C:\openssl" >> $env:GITHUB_ENV
|
||||
"PATH=C:\openssl\bin;$env:PATH" >> $env:GITHUB_ENV
|
||||
|
||||
C:\openssl\bin\openssl.exe version
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||
- name: Configure OS
|
||||
|
||||
- name: Create AzerothCore CI config
|
||||
shell: bash
|
||||
working-directory: ac
|
||||
env:
|
||||
CONTINUOUS_INTEGRATION: true
|
||||
working-directory: C:\ac
|
||||
run: |
|
||||
./acore.sh install-deps
|
||||
mkdir -p conf
|
||||
|
||||
cat > conf/config.sh <<'EOF'
|
||||
CCOMPILERC="cl"
|
||||
CCOMPILERCXX="cl"
|
||||
|
||||
CTYPE="Release"
|
||||
CSCRIPTS="static"
|
||||
CMODULES="static"
|
||||
CTOOLS_BUILD="all"
|
||||
|
||||
CCUSTOMOPTIONS="-DBOOST_ROOT=C:/local/boost_1_87_0 -DOPENSSL_ROOT_DIR=C:/openssl -DOPENSSL_USE_STATIC_LIBS=FALSE -DCMAKE_RC_COMPILER=rc -DCMAKE_NINJA_FORCE_RESPONSE_FILE=ON -DCMAKE_NINJA_CMCLDEPS_RC=OFF -DCMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS=ON -DCMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES=ON -DCMAKE_C_USE_RESPONSE_FILE_FOR_LIBRARIES=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_LIBRARIES=ON"
|
||||
EOF
|
||||
|
||||
cat conf/config.sh
|
||||
|
||||
- name: Setup MSVC
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
|
||||
with:
|
||||
arch: x64
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
working-directory: ac
|
||||
working-directory: C:\ac
|
||||
run: |
|
||||
export CTOOLS_BUILD=all
|
||||
export CMAKE_GENERATOR=Ninja
|
||||
|
||||
export CC=cl
|
||||
export CXX=cl
|
||||
export RC=rc
|
||||
|
||||
cmake --version
|
||||
ninja --version
|
||||
|
||||
echo "CMAKE_GENERATOR=$CMAKE_GENERATOR"
|
||||
echo "CC=$CC"
|
||||
echo "CXX=$CXX"
|
||||
echo "BOOST_ROOT=$BOOST_ROOT"
|
||||
echo "OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR"
|
||||
|
||||
which cl || true
|
||||
which rc || true
|
||||
which openssl || true
|
||||
|
||||
cl || true
|
||||
rc || true
|
||||
openssl version || true
|
||||
|
||||
rm -rf var/build/obj
|
||||
|
||||
./acore.sh compiler build
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
# List of AUTHORS who contributed over time to the mod-playerbots project
|
||||
|
||||
## Point of current development
|
||||
The project is currently developed under https://github.com/mod-playerbots/mod-playerbots, as a module for AzerothCore (https://www.azerothcore.org/)
|
||||
|
||||
## History of development
|
||||
mod-playerbots continues the playerbot AI lineage, which was developed under various umbrellas over time:
|
||||
* Playerbot AI core by ike3, originally developed for the MaNGOS/TrinityCore family
|
||||
* CMaNGOS playerbots, located at https://github.com/cmangos/playerbots
|
||||
* mod-playerbots, 2021-CURRENT, located at https://github.com/mod-playerbots/mod-playerbots
|
||||
|
||||
## Authorship of the code
|
||||
Authorship is assigned for each commit within the git history, which is stored in this git repository:
|
||||
* github.com/mod-playerbots/mod-playerbots
|
||||
|
||||
## Authors List:
|
||||
|
||||
*Please inform us, if you find somebody who is missing!*
|
||||
|
||||
* achyles222
|
||||
* Aldori
|
||||
* Alex Dcnh
|
||||
* Alvin Zhu
|
||||
* antony
|
||||
* Atidot3
|
||||
* avirar
|
||||
* AzoraNova
|
||||
* bash
|
||||
* BeardBear
|
||||
* Ben Wagner
|
||||
* Benjamin Jackson
|
||||
* blinkysc
|
||||
* Bobblybook
|
||||
* Bogir[rus]
|
||||
* Boidl
|
||||
* Boxhead78
|
||||
* Brian
|
||||
* Caffarius
|
||||
* chris
|
||||
* Chris Lacy
|
||||
* Christoph Wilk
|
||||
* Chromie-WoW
|
||||
* Crow
|
||||
* Cryo81
|
||||
* CrypticAvacado
|
||||
* Dennis
|
||||
* dillyns
|
||||
* Dreathean
|
||||
* Engardium
|
||||
* EricksOliveira
|
||||
* Fiery
|
||||
* Flashtate98
|
||||
* FutterSillo
|
||||
* Fuzz
|
||||
* Gabriel Comeau
|
||||
* Garashan
|
||||
* Gonzalo
|
||||
* gtkk
|
||||
* HennyWilly
|
||||
* Hokken
|
||||
* hongyiqin
|
||||
* HT Cesta
|
||||
* Iain Donnelly
|
||||
* Ivan Novokhatski
|
||||
* Jay
|
||||
* Jelly
|
||||
* Jered
|
||||
* Jgoodwin64
|
||||
* jublinq
|
||||
* Julien MAS
|
||||
* kadeshar
|
||||
* Keleborn
|
||||
* kikiviki
|
||||
* killerzwelch
|
||||
* Lichborne
|
||||
* Mikhail
|
||||
* mostlynick3
|
||||
* mtm84
|
||||
* nick
|
||||
* Nicolas Lebacq
|
||||
* Noscopezz
|
||||
* Not
|
||||
* NotCronky
|
||||
* NoxMax
|
||||
* Oiuv
|
||||
* OlegKungurov
|
||||
* oskov
|
||||
* Paulo
|
||||
* Paulo Oliveira
|
||||
* privatecore
|
||||
* qcloud
|
||||
* qudzy
|
||||
* Revision
|
||||
* Rikus Louw
|
||||
* SaW
|
||||
* Scarecr0w12
|
||||
* sd3420625
|
||||
* secahtah
|
||||
* Spargel
|
||||
* St0ny
|
||||
* sudlud
|
||||
* Tecc
|
||||
* ThePenguinMan96
|
||||
* Thomas Frey
|
||||
* tomcoffingiii
|
||||
* Trus3683
|
||||
* Type1Error
|
||||
* UltraNix
|
||||
* valsan-azerty-boi
|
||||
* Vanna White
|
||||
* Veit F.
|
||||
* Vigerus
|
||||
* wetbrownsauce
|
||||
* whipowill
|
||||
* xSparky911x
|
||||
* XYUU
|
||||
* yang
|
||||
* Yunfan Li
|
||||
* zeb139
|
||||
* ZhengPeiRu21
|
||||
* 姜耀
|
||||
+281
-603
@@ -1,620 +1,281 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
NO WARRANTY
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
@@ -626,36 +287,53 @@ free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
||||
@@ -1,124 +1,122 @@
|
||||
# Pull Request
|
||||
<!--
|
||||
Thank you for contributing to mod-playerbots, please make sure that you...
|
||||
1. Submit your PR to the test-staging branch, not master.
|
||||
2. Read the guidelines below before submitting.
|
||||
3. Don't delete parts of this template.
|
||||
|
||||
Describe what this change does and why it is needed...
|
||||
DESIGN PHILOSOPHY: We prioritize STABILITY, PERFORMANCE, AND PREDICTABILITY over behavioral realism.
|
||||
|
||||
---
|
||||
Every action and decision executes PER BOT AND PER TRIGGER. Small increases in logic complexity scale
|
||||
poorly across thousands of bots and negatively affect all. We prioritize a stable system over a smarter
|
||||
one. Bots don't need to behave perfectly; believable behavior is the goal, not human simulation.
|
||||
Default behavior must be cheap in processing; expensive behavior must be opt-in.
|
||||
|
||||
## Design Philosophy
|
||||
Before submitting, make sure your changes aligns with these principles.
|
||||
-->
|
||||
|
||||
We prioritize **stability, performance, and predictability** over behavioral realism.
|
||||
Complex player-mimicking logic is intentionally limited due to its negative impact on scalability, maintainability, and
|
||||
long-term robustness.
|
||||
## Pull Request Description
|
||||
<!-- Describe what this change does and why it is needed -->
|
||||
|
||||
Excessive processing overhead can lead to server hiccups, increased CPU usage, and degraded performance for all
|
||||
participants. Because every action and
|
||||
decision tree is executed **per bot and per trigger**, even small increases in logic complexity can scale poorly and
|
||||
negatively affect both players and
|
||||
world (random) bots. Bots are not expected to behave perfectly, and perfect simulation of human decision-making is not a
|
||||
project goal. Increased behavioral
|
||||
realism often introduces disproportionate cost, reduced predictability, and significantly higher maintenance overhead.
|
||||
|
||||
Every additional branch of logic increases long-term responsibility. All decision paths must be tested, validated, and
|
||||
maintained continuously as the system evolves.
|
||||
If advanced or AI-intensive behavior is introduced, the **default configuration must remain the lightweight decision
|
||||
model**. More complex behavior should only be
|
||||
available as an **explicit opt-in option**, clearly documented as having a measurable performance cost.
|
||||
|
||||
Principles:
|
||||
|
||||
- **Stability before intelligence**
|
||||
A stable system is always preferred over a smarter one.
|
||||
|
||||
- **Performance is a shared resource**
|
||||
Any increase in bot cost affects all players and all bots.
|
||||
|
||||
- **Simple logic scales better than smart logic**
|
||||
Predictable behavior under load is more valuable than perfect decisions.
|
||||
|
||||
- **Complexity must justify itself**
|
||||
If a feature cannot clearly explain its cost, it should not exist.
|
||||
|
||||
- **Defaults must be cheap**
|
||||
Expensive behavior must always be optional and clearly communicated.
|
||||
|
||||
- **Bots should look reasonable, not perfect**
|
||||
The goal is believable behavior, not human simulation.
|
||||
|
||||
Before submitting, confirm that this change aligns with those principles.
|
||||
|
||||
---
|
||||
|
||||
## Feature Evaluation
|
||||
<!--
|
||||
If your PR is very minimal (comment typo, wrong ID reference, etc), and it is very obvious it will not have
|
||||
any impact on performance, you may skip these question. If necessary, a maintainer may ask you for them later.
|
||||
-->
|
||||
|
||||
Please answer the following:
|
||||
<!-- Please answer the following: -->
|
||||
- Describe the **minimum logic** required to achieve the intended behavior.
|
||||
- Describe the **processing cost** when this logic executes across many bots.
|
||||
|
||||
- Describe the **minimum logic** required to achieve the intended behavior?
|
||||
- Describe the **cheapest implementation** that produces an acceptable result?
|
||||
- Describe the **runtime cost** when this logic executes across many bots?
|
||||
|
||||
---
|
||||
|
||||
## How to Test the Changes
|
||||
<!--
|
||||
- Step-by-step instructions to test the change.
|
||||
- Any required setup (e.g. multiple players, number of bots, specific configuration).
|
||||
- Expected behavior and how to verify it.
|
||||
-->
|
||||
|
||||
- Step-by-step instructions to test the change
|
||||
- Any required setup (e.g. multiple players, bots, specific configuration)
|
||||
- Expected behavior and how to verify it
|
||||
|
||||
## Complexity & Impact
|
||||
|
||||
Does this change add new decision branches?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain below**)
|
||||
## Impact Assessment
|
||||
<!-- As a generic test, before and after measure of pmon (playerbot pmon tick) can help you here. -->
|
||||
- Does this change increase per-bot/per-tick processing or risk scaling poorly with thousands of bots?
|
||||
- - [ ] No, not at all
|
||||
- - [ ] Minimal impact (**explain below**)
|
||||
- - [ ] Moderate impact (**explain below**)
|
||||
|
||||
Does this change increase per-bot or per-tick processing?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**describe and justify impact**)
|
||||
|
||||
Could this logic scale poorly under load?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain why**)
|
||||
---
|
||||
|
||||
## Defaults & Configuration
|
||||
- Does this change modify default bot behavior?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain why**)
|
||||
|
||||
|
||||
|
||||
- Does this change add new decision branches or increase maintenance complexity?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain below**)
|
||||
|
||||
Does this change modify default bot behavior?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain why**)
|
||||
|
||||
If this introduces more advanced or AI-heavy logic:
|
||||
- - [ ] Lightweight mode remains the default
|
||||
- - [ ] More complex behavior is optional and thereby configurable
|
||||
---
|
||||
|
||||
## AI Assistance
|
||||
|
||||
Was AI assistance (e.g. ChatGPT or similar tools) used while working on this change?
|
||||
<!--
|
||||
AI assistance is allowed, but all submitted code must be fully understood, reviewed, and owned by the contributor.
|
||||
We expect contributors to be honest about what they do and do not understand.
|
||||
-->
|
||||
Was AI assistance used while working on this change?
|
||||
- - [ ] No
|
||||
- - [ ] Yes (**explain below**)
|
||||
|
||||
<!--
|
||||
If yes, please specify:
|
||||
- Purpose of usage (e.g. brainstorming, refactoring, documentation, code generation).
|
||||
- Which parts of the change were influenced or generated, and whether it was thoroughly reviewed.
|
||||
-->
|
||||
|
||||
- AI tool or model used (e.g. ChatGPT, GPT-4, Claude, etc.)
|
||||
- Purpose of usage (e.g. brainstorming, refactoring, documentation, code generation)
|
||||
- Which parts of the change were influenced or generated
|
||||
- Whether the result was manually reviewed and adapted
|
||||
|
||||
AI assistance is allowed, but all submitted code must be fully understood, reviewed, and owned by the contributor.
|
||||
Any AI-influenced changes must be verified against existing CORE and PB logic. We expect contributors to be honest
|
||||
about what they do and do not understand.
|
||||
|
||||
---
|
||||
## Code Provenance / Attribution
|
||||
<!--
|
||||
mod-playerbots is GPLv2 and is derived from the CMaNGOS playerbots (ike3). Code may be ported or
|
||||
adapted from other GPLv2 projects, but upstream attribution MUST be preserved (GPLv2 §1 and §2(a)).
|
||||
Never replace an upstream copyright notice with the project header.
|
||||
-->
|
||||
Was any code in this PR copied or adapted from a sister / upstream project (e.g. CMaNGOS playerbots,
|
||||
MaNGOS, another module)?
|
||||
- - [ ] No, all code in this PR is original
|
||||
- - [ ] Yes (**name the project and the original author(s) below**)
|
||||
<!--
|
||||
If yes, please provide:
|
||||
- Source project + URL (and the specific file/commit if known).
|
||||
- Original author(s) — add a `Co-authored-by: Name <email>` trailer for each to your commit.
|
||||
- Attribution in code: an in-file "Ported/adapted from <project>" note on substantially-ported files,
|
||||
or an inline "// Adapted from <project>" comment for small snippets.
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
TRANSLATIONS:
|
||||
Anything new that the bots say in chat must be in a translatable format. This is done using GetBotTextOrDefault,
|
||||
which you can search for in the codebase to find examples. Your code needs to have English as the default fallback,
|
||||
while the full translations need to be in an SQL update file. The languages in the file are the nine language
|
||||
options supported by AzerothCore: English, Korean, French, German, Chinese, Taiwanese, Spanish, Spanish Mexico, and
|
||||
Russian. See data/sql/playerbots/updates/2025_12_27_ai_playerbot_fishing_text.sql as an example of a translation SQL
|
||||
update, whose content are called within the codebase at src/strategy/actions/FishingAction.cpp
|
||||
-->
|
||||
|
||||
## Final Checklist
|
||||
|
||||
- - [ ] Stability is not compromised
|
||||
- - [ ] Performance impact is understood, tested, and acceptable
|
||||
- - [ ] Added logic complexity is justified and explained
|
||||
- - [ ] Documentation updated if needed
|
||||
|
||||
---
|
||||
- - [ ] Stability is not compromised.
|
||||
- - [ ] Performance impact is understood, tested, and acceptable.
|
||||
- - [ ] Added logic complexity is justified and explained.
|
||||
- - [ ] Any new bot dialogue lines are translated.
|
||||
- - [ ] Any code ported/adapted from another project is attributed (project + author(s), `Co-authored-by:` trailer + in-file note).
|
||||
- - [ ] New source files use the GPLv2 header.
|
||||
- - [ ] Documentation updated if needed (Conf comments, WiKi commands).
|
||||
- - [ ] New and modified files do not introduce new compiler warnings.
|
||||
|
||||
## Notes for Reviewers
|
||||
|
||||
Anything that significantly improves realism at the cost of stability or performance should be carefully discussed
|
||||
before merging.
|
||||
<!-- Anything else that's helpful to review or test your pull request. -->
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
<div align="center">
|
||||
<img src="icon.png" alt="Playerbots Icon" width="700px">
|
||||
<img src="banner.png" alt="Playerbots Banner" width="700px">
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
@@ -32,13 +32,11 @@ We also have a **[Discord server](https://discord.gg/NQm5QShwf9)** where you can
|
||||
|
||||
## Installation
|
||||
|
||||
Supported platforms are Ubuntu, Windows, and macOS. Other Linux distributions may work, but may not receive support.
|
||||
Supported platforms are Ubuntu, Windows, and macOS. Other Linux distributions may work, but may not receive support.
|
||||
|
||||
**All `mod-playerbots` installations require a custom branch of AzerothCore: [mod-playerbots/azerothcore-wotlk/tree/Playerbot](https://github.com/mod-playerbots/azerothcore-wotlk/tree/Playerbot).** This branch allows the `mod-playerbots` module to build and function. Updates from the upstream are implemented regularly to this branch. Instructions for installing this required branch and this module are provided below.
|
||||
> **Important:** All `mod-playerbots` installations require a custom fork of AzerothCore: [mod-playerbots/azerothcore-wotlk (Playerbot branch)](https://github.com/mod-playerbots/azerothcore-wotlk/tree/Playerbot). The standard AzerothCore repository will **not** work.
|
||||
|
||||
### Cloning the Repositories
|
||||
|
||||
To install both the required branch of AzerothCore and the `mod-playerbots` module from source, run the following:
|
||||
### Quick Start
|
||||
|
||||
```bash
|
||||
git clone https://github.com/mod-playerbots/azerothcore-wotlk.git --branch=Playerbot
|
||||
@@ -46,44 +44,18 @@ cd azerothcore-wotlk/modules
|
||||
git clone https://github.com/mod-playerbots/mod-playerbots.git --branch=master
|
||||
```
|
||||
|
||||
For more information, refer to the [AzerothCore Installation Guide](https://www.azerothcore.org/wiki/installation) and [Installing a Module](https://www.azerothcore.org/wiki/installing-a-module) pages.
|
||||
Then build the server following the platform-specific instructions in our **[Installation Guide](https://github.com/mod-playerbots/mod-playerbots/wiki/Installation-Guide)**.
|
||||
|
||||
### Docker Installation
|
||||
> **Testing branch:** A `test-staging` branch is available with the latest features and fixes before they are merged into `master`. To use it, clone with `--branch=test-staging` instead. Note that this branch may contain unstable or breaking changes — use it at your own risk and only if you are comfortable troubleshooting issues.
|
||||
|
||||
Docker installations are considered experimental (unofficial with limited support), and previous Docker experience is recommended. To install `mod-playerbots` on Docker, first clone the required branch of AzerothCore and this module:
|
||||
### Detailed Guides
|
||||
|
||||
```bash
|
||||
git clone https://github.com/mod-playerbots/azerothcore-wotlk.git --branch=Playerbot
|
||||
cd azerothcore-wotlk/modules
|
||||
git clone https://github.com/mod-playerbots/mod-playerbots.git --branch=master
|
||||
```
|
||||
| Guide | Description |
|
||||
|---|---|
|
||||
| **[Installation Guide](https://github.com/mod-playerbots/mod-playerbots/wiki/Installation-Guide)** | Full step-by-step instructions for clean installs, migrating from existing AzerothCore, Docker setup, adding modules, and updating |
|
||||
| **[Troubleshooting](https://github.com/mod-playerbots/mod-playerbots/wiki/Troubleshooting)** | Solutions to the most common build errors, database issues, configuration mistakes, crashes, and platform-specific problems |
|
||||
|
||||
Afterwards, create a `docker-compose.override.yml` file in the `azerothcore-wotlk` directory. This override file allows for mounting the modules directory to the `ac-worldserver` service which is required for it to run. Put the following inside and save:
|
||||
|
||||
```yml
|
||||
services:
|
||||
ac-worldserver:
|
||||
volumes:
|
||||
- ./modules:/azerothcore/modules:ro
|
||||
```
|
||||
|
||||
Additionally, this override file can be used to set custom configuration settings for `ac-worldserver` and any modules you install as environment variables:
|
||||
|
||||
```yml
|
||||
services:
|
||||
ac-worldserver:
|
||||
environment:
|
||||
AC_RATE_XP_KILL: "1"
|
||||
AC_AI_PLAYERBOT_RANDOM_BOT_AUTOLOGIN: "1"
|
||||
volumes:
|
||||
- ./modules:/azerothcore/modules:ro
|
||||
```
|
||||
|
||||
For example, to double the experience gain rate per kill, take the setting `Rate.XP.Kill = 1` from [woldserver.conf](https://github.com/mod-playerbots/azerothcore-wotlk/blob/Playerbot/src/server/apps/worldserver/worldserver.conf.dist), convert it to an environment variable, and change it to the desired setting in the override file to get `AC_RATE_XP_KILL: "2"`. If you wanted to disable random bots from logging in automatically, take the `AiPlayerbot.RandomBotAutologin = 1` setting from [playerbots.conf](https://github.com/mod-playerbots/mod-playerbots/blob/master/conf/playerbots.conf.dist) and do the same to get `AC_AI_PLAYERBOT_RANDOM_BOT_AUTOLOGIN: "0"`. For more information on how to configure Azerothcore, Playerbots, and other module settings as environment variables in Docker Compose, see the "Configuring AzerothCore in Containers" section in the [Install With Docker](https://www.azerothcore.org/wiki/install-with-docker) guide.
|
||||
|
||||
Before building, consider setting the database password. One way to do this is to create a `.env` file in the root `azerothcore-wotlk` directory using the [template](https://github.com/mod-playerbots/azerothcore-wotlk/blob/Playerbot/conf/dist/env.docker). This file also allows you to set the user and group Docker uses for the services in case you run into any permissions issues, which are the most common cause for Docker installation problems.
|
||||
|
||||
Use `docker compose up -d --build` to build and run the server. For more information, including how to create an account and taking backups, refer to the [Install With Docker](https://www.azerothcore.org/wiki/install-with-docker) page.
|
||||
For additional references, see the [AzerothCore Installation Guide](https://www.azerothcore.org/wiki/installation) and [Installing a Module](https://www.azerothcore.org/wiki/installing-a-module) pages.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 204 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+21
-18
@@ -4,15 +4,19 @@
|
||||
-- zhTW, esES, esMX, ruRU)
|
||||
-- #########################################################
|
||||
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN ('pvp_currency', 'pvp_arena_team', 'pvp_no_arena_team');
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN ('pvp_currency', 'pvp_arena_team', 'pvp_no_arena_team');
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- pvp_currency
|
||||
-- [PVP] Arena points: %arena_points | Honor Points: %honor_points
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`name`, `text`, `say_type`, `reply_type`,
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
SELECT
|
||||
VALUES (
|
||||
1737,
|
||||
'pvp_currency',
|
||||
'[PVP] Arena points: %arena_points | Honor Points: %honor_points',
|
||||
0, 0,
|
||||
@@ -31,20 +35,20 @@ SELECT
|
||||
-- esMX
|
||||
'[PVP] Puntos de arena: %arena_points | Puntos de honor: %honor_points',
|
||||
-- ruRU
|
||||
'[PVP] Очки арены: %arena_points | Очки чести: %honor_points'
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM `ai_playerbot_texts` WHERE `name` = 'pvp_currency'
|
||||
);
|
||||
'[PVP] Очки арены: %arena_points | Очки чести: %honor_points');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pvp_currency', 100);
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- pvp_arena_team
|
||||
-- [PVP] %bracket: <%team_name> (rating %team_rating)
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`name`, `text`, `say_type`, `reply_type`,
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
SELECT
|
||||
VALUES (
|
||||
1738,
|
||||
'pvp_arena_team',
|
||||
'[PVP] %bracket: <%team_name> (rating %team_rating)',
|
||||
0, 0,
|
||||
@@ -63,20 +67,20 @@ SELECT
|
||||
-- esMX
|
||||
'[PVP] %bracket: <%team_name> (índice %team_rating)',
|
||||
-- ruRU
|
||||
'[PVP] %bracket: <%team_name> (рейтинг %team_rating)'
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM `ai_playerbot_texts` WHERE `name` = 'pvp_arena_team'
|
||||
);
|
||||
'[PVP] %bracket: <%team_name> (рейтинг %team_rating)');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pvp_arena_team', 100);
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- pvp_no_arena_team
|
||||
-- [PVP] I have no Arena Team.
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`name`, `text`, `say_type`, `reply_type`,
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
SELECT
|
||||
VALUES (
|
||||
1739,
|
||||
'pvp_no_arena_team',
|
||||
'[PVP] I have no Arena Team.',
|
||||
0, 0,
|
||||
@@ -95,7 +99,6 @@ SELECT
|
||||
-- esMX
|
||||
'[PVP] No tengo equipo de arena.',
|
||||
-- ruRU
|
||||
'[PVP] У меня нет команды арены.'
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM `ai_playerbot_texts` WHERE `name` = 'pvp_no_arena_team'
|
||||
);
|
||||
'[PVP] У меня нет команды арены.');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pvp_no_arena_team', 100);
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
UPDATE `ai_playerbot_texts` SET `text_loc3`='%s, du hörst den triefenden Sarkasmus in meinem text nicht' WHERE `id`=1353;
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
-- #########################################################
|
||||
-- Playerbots - Add texts for SetWaitForAttackTimeAction
|
||||
-- Localized for all WotLK locales (koKR, frFR, deDE, zhCN,
|
||||
-- zhTW, esES, esMX, ruRU)
|
||||
-- #########################################################
|
||||
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN ('wait_for_attack_provide_time', 'wait_for_attack_invalid_time', 'wait_for_attack_time_set');
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN ('wait_for_attack_provide_time', 'wait_for_attack_invalid_time', 'wait_for_attack_time_set');
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- wait_for_attack_provide_time
|
||||
-- Please provide a time to set (in seconds)
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1740,
|
||||
'wait_for_attack_provide_time',
|
||||
'Please provide a time to set (in seconds)',
|
||||
0, 0,
|
||||
-- koKR
|
||||
'설정할 시간을 입력해 주세요 (초 단위)',
|
||||
-- frFR
|
||||
'Veuillez indiquer un temps à définir (en secondes)',
|
||||
-- deDE
|
||||
'Bitte gib eine Zeit an (in Sekunden)',
|
||||
-- zhCN
|
||||
'请提供要设置的时间(以秒为单位)',
|
||||
-- zhTW
|
||||
'請提供要設定的時間(以秒為單位)',
|
||||
-- esES
|
||||
'Por favor, indica un tiempo a establecer (en segundos)',
|
||||
-- esMX
|
||||
'Por favor, indica un tiempo a establecer (en segundos)',
|
||||
-- ruRU
|
||||
'Пожалуйста, укажите время (в секундах)');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('wait_for_attack_provide_time', 100);
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- wait_for_attack_invalid_time
|
||||
-- Please provide valid time to set (in seconds) between 0 and 99
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1741,
|
||||
'wait_for_attack_invalid_time',
|
||||
'Please provide valid time to set (in seconds) between 0 and 99',
|
||||
0, 0,
|
||||
-- koKR
|
||||
'0에서 99 사이의 유효한 시간을 입력해 주세요 (초 단위)',
|
||||
-- frFR
|
||||
'Veuillez indiquer un temps valide (en secondes) entre 0 et 99',
|
||||
-- deDE
|
||||
'Bitte gib eine gültige Zeit an (in Sekunden) zwischen 0 und 99',
|
||||
-- zhCN
|
||||
'请提供有效的时间(以秒为单位),范围为 0 到 99',
|
||||
-- zhTW
|
||||
'請提供有效的時間(以秒為單位),範圍為 0 到 99',
|
||||
-- esES
|
||||
'Por favor, indica un tiempo válido (en segundos) entre 0 y 99',
|
||||
-- esMX
|
||||
'Por favor, indica un tiempo válido (en segundos) entre 0 y 99',
|
||||
-- ruRU
|
||||
'Пожалуйста, укажите допустимое время (в секундах) от 0 до 99');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('wait_for_attack_invalid_time', 100);
|
||||
|
||||
-- ---------------------------------------------------------
|
||||
-- wait_for_attack_time_set
|
||||
-- Wait for attack time set to %new_time seconds
|
||||
-- ---------------------------------------------------------
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1742,
|
||||
'wait_for_attack_time_set',
|
||||
'Wait for attack time set to %new_time seconds',
|
||||
0, 0,
|
||||
-- koKR
|
||||
'공격 대기 시간이 %new_time초로 설정되었습니다',
|
||||
-- frFR
|
||||
'Temps d''attente avant l''attaque défini à %new_time secondes',
|
||||
-- deDE
|
||||
'Wartezeit vor dem Angriff auf %new_time Sekunden gesetzt',
|
||||
-- zhCN
|
||||
'等待攻击时间已设置为 %new_time 秒',
|
||||
-- zhTW
|
||||
'等待攻擊時間已設定為 %new_time 秒',
|
||||
-- esES
|
||||
'Tiempo de espera para atacar establecido en %new_time segundos',
|
||||
-- esMX
|
||||
'Tiempo de espera para atacar establecido en %new_time segundos',
|
||||
-- ruRU
|
||||
'Время ожидания атаки установлено на %new_time секунд');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('wait_for_attack_time_set', 100);
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
-- Translations for additional logout related messages
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN ('bot_not_your_master', 'bot_rndbot_no_logout');
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN ('bot_not_your_master', 'bot_rndbot_no_logout');
|
||||
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1743,
|
||||
'bot_not_your_master',
|
||||
"You are not my master!",
|
||||
0, 0,
|
||||
-- koKR
|
||||
"당신은 내 주인이 아닙니다!",
|
||||
-- frFR
|
||||
"Tu n'es pas mon maître !",
|
||||
-- deDE
|
||||
"Du bist nicht mein Meister!",
|
||||
-- zhCN
|
||||
"你不是我的主人!",
|
||||
-- zhTW
|
||||
"你不是我的主人!",
|
||||
-- esES
|
||||
"¡No eres mi amo!",
|
||||
-- esMX
|
||||
"¡No eres mi amo!",
|
||||
-- ruRU
|
||||
"Ты не мой хозяин!");
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('bot_not_your_master', 100);
|
||||
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1744,
|
||||
'bot_rndbot_no_logout',
|
||||
"You can't command me to logout!",
|
||||
0, 0,
|
||||
-- koKR
|
||||
"당신은 나에게 로그아웃을 명령할 수 없습니다!",
|
||||
-- frFR
|
||||
"Tu ne peux pas m'ordonner de me déconnecter !",
|
||||
-- deDE
|
||||
"Du kannst mir nicht befehlen, mich auszuloggen!",
|
||||
-- zhCN
|
||||
"你不能命令我下线!",
|
||||
-- zhTW
|
||||
"你不能命令我登出!",
|
||||
-- esES
|
||||
"¡No puedes ordenarme que cierre sesión!",
|
||||
-- esMX
|
||||
"¡No puedes ordenarme que cierre sesión!",
|
||||
-- ruRU
|
||||
"Ты не можешь приказать мне выйти из игры!");
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('bot_rndbot_no_logout', 100);
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
-- #########################################################
|
||||
-- Playerbots - Add focus heal command texts
|
||||
-- Localized for all WotLK locales (koKR, frFR, deDE, zhCN,
|
||||
-- zhTW, esES, esMX, ruRU)
|
||||
-- #########################################################
|
||||
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN (
|
||||
'focus_heal_not_healer',
|
||||
'focus_heal_provide_names',
|
||||
'focus_heal_no_targets',
|
||||
'focus_heal_current_targets',
|
||||
'focus_heal_cleared',
|
||||
'focus_heal_add_remove_syntax',
|
||||
'focus_heal_not_in_group',
|
||||
'focus_heal_not_in_group_with',
|
||||
'focus_heal_added',
|
||||
'focus_heal_removed'
|
||||
);
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN (
|
||||
'focus_heal_not_healer',
|
||||
'focus_heal_provide_names',
|
||||
'focus_heal_no_targets',
|
||||
'focus_heal_current_targets',
|
||||
'focus_heal_cleared',
|
||||
'focus_heal_add_remove_syntax',
|
||||
'focus_heal_not_in_group',
|
||||
'focus_heal_not_in_group_with',
|
||||
'focus_heal_added',
|
||||
'focus_heal_removed'
|
||||
);
|
||||
|
||||
-- focus_heal_not_healer
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1745,
|
||||
'focus_heal_not_healer',
|
||||
'I''m not a healer or offhealer (please change my strats to heal or offheal)',
|
||||
0, 0,
|
||||
'저는 힐러나 오프힐러가 아닙니다 (전략을 heal 또는 offheal로 변경해주세요)',
|
||||
'Je ne suis pas un soigneur ou un soigneur secondaire (veuillez changer mes strats en heal ou offheal)',
|
||||
'Ich bin kein Heiler oder Nebenheiler (bitte ändere meine Strategien auf heal oder offheal)',
|
||||
'我不是治疗者或副治疗者(请将我的策略更改为 heal 或 offheal)',
|
||||
'我不是治療者或副治療者(請將我的策略更改為 heal 或 offheal)',
|
||||
'No soy un sanador ni un sanador secundario (por favor cambia mis estrategias a heal o offheal)',
|
||||
'No soy un sanador ni un sanador secundario (por favor cambia mis estrategias a heal o offheal)',
|
||||
'Я не лекарь и не побочный лекарь (пожалуйста, измените мои стратегии на heal или offheal)');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_not_healer', 100);
|
||||
|
||||
-- focus_heal_provide_names
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1746,
|
||||
'focus_heal_provide_names',
|
||||
'Please provide one or more player names',
|
||||
0, 0,
|
||||
'하나 이상의 플레이어 이름을 제공해주세요',
|
||||
'Veuillez fournir un ou plusieurs noms de joueurs',
|
||||
'Bitte geben Sie einen oder mehrere Spielernamen an',
|
||||
'请提供一个或多个玩家名称',
|
||||
'請提供一個或多個玩家名稱',
|
||||
'Por favor proporciona uno o más nombres de jugadores',
|
||||
'Por favor proporciona uno o más nombres de jugadores',
|
||||
'Пожалуйста, укажите одно или несколько имён игроков');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_provide_names', 100);
|
||||
|
||||
-- focus_heal_no_targets
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1747,
|
||||
'focus_heal_no_targets',
|
||||
'I don''t have any focus heal targets',
|
||||
0, 0,
|
||||
'지정된 집중 치유 대상이 없습니다',
|
||||
'Je n''ai aucune cible de soin prioritaire',
|
||||
'Ich habe keine fokussierten Heilziele',
|
||||
'我没有任何集中治疗目标',
|
||||
'我沒有任何集中治療目標',
|
||||
'No tengo ningún objetivo de sanación prioritario',
|
||||
'No tengo ningún objetivo de sanación prioritario',
|
||||
'У меня нет целей приоритетного лечения');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_no_targets', 100);
|
||||
|
||||
-- focus_heal_current_targets: %targets is replaced with comma-separated player names
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1748,
|
||||
'focus_heal_current_targets',
|
||||
'My focus heal targets are %targets',
|
||||
0, 0,
|
||||
'나의 집중 치유 대상: %targets',
|
||||
'Mes cibles de soin prioritaire sont %targets',
|
||||
'Meine fokussierten Heilziele sind %targets',
|
||||
'我的集中治疗目标是 %targets',
|
||||
'我的集中治療目標是 %targets',
|
||||
'Mis objetivos de sanación prioritarios son %targets',
|
||||
'Mis objetivos de sanación prioritarios son %targets',
|
||||
'Мои цели приоритетного лечения: %targets');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_current_targets', 100);
|
||||
|
||||
-- focus_heal_cleared
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1749,
|
||||
'focus_heal_cleared',
|
||||
'Removed focus heal targets',
|
||||
0, 0,
|
||||
'집중 치유 대상을 제거했습니다',
|
||||
'Cibles de soin prioritaire supprimées',
|
||||
'Fokussierte Heilziele entfernt',
|
||||
'已移除集中治疗目标',
|
||||
'已移除集中治療目標',
|
||||
'Objetivos de sanación prioritarios eliminados',
|
||||
'Objetivos de sanación prioritarios eliminados',
|
||||
'Цели приоритетного лечения удалены');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_cleared', 100);
|
||||
|
||||
-- focus_heal_add_remove_syntax
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1750,
|
||||
'focus_heal_add_remove_syntax',
|
||||
'Please specify a + for add or - to remove a target',
|
||||
0, 0,
|
||||
'대상을 추가하려면 +, 제거하려면 -를 지정해주세요',
|
||||
'Veuillez spécifier + pour ajouter ou - pour retirer une cible',
|
||||
'Bitte geben Sie + zum Hinzufügen oder - zum Entfernen eines Ziels an',
|
||||
'请指定 + 添加或 - 移除目标',
|
||||
'請指定 + 添加或 - 移除目標',
|
||||
'Por favor especifica + para agregar o - para eliminar un objetivo',
|
||||
'Por favor especifica + para agregar o - para eliminar un objetivo',
|
||||
'Пожалуйста, укажите + для добавления или - для удаления цели');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_add_remove_syntax', 100);
|
||||
|
||||
-- focus_heal_not_in_group
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1751,
|
||||
'focus_heal_not_in_group',
|
||||
'I''m not in a group',
|
||||
0, 0,
|
||||
'저는 파티에 속해있지 않습니다',
|
||||
'Je ne suis pas dans un groupe',
|
||||
'Ich bin in keiner Gruppe',
|
||||
'我不在队伍中',
|
||||
'我不在隊伍中',
|
||||
'No estoy en un grupo',
|
||||
'No estoy en un grupo',
|
||||
'Я не в группе');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_not_in_group', 100);
|
||||
|
||||
-- focus_heal_not_in_group_with: %player_name is replaced with the target player's name
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1752,
|
||||
'focus_heal_not_in_group_with',
|
||||
'I''m not in a group with %player_name',
|
||||
0, 0,
|
||||
'%player_name 와(과) 같은 파티에 없습니다',
|
||||
'Je ne suis pas dans un groupe avec %player_name',
|
||||
'Ich bin nicht in einer Gruppe mit %player_name',
|
||||
'我与 %player_name 不在同一队伍中',
|
||||
'我與 %player_name 不在同一隊伍中',
|
||||
'No estoy en un grupo con %player_name',
|
||||
'No estoy en un grupo con %player_name',
|
||||
'Я не в группе с %player_name');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_not_in_group_with', 100);
|
||||
|
||||
-- focus_heal_added: %player_name is replaced with the added player's name
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1753,
|
||||
'focus_heal_added',
|
||||
'Added %player_name to focus heal targets',
|
||||
0, 0,
|
||||
'%player_name 을(를) 집중 치유 대상에 추가했습니다',
|
||||
'%player_name ajouté aux cibles de soin prioritaire',
|
||||
'%player_name zu den fokussierten Heilzielen hinzugefügt',
|
||||
'已将 %player_name 添加到集中治疗目标',
|
||||
'已將 %player_name 添加到集中治療目標',
|
||||
'%player_name agregado a los objetivos de sanación prioritarios',
|
||||
'%player_name agregado a los objetivos de sanación prioritarios',
|
||||
'%player_name добавлен в цели приоритетного лечения');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_added', 100);
|
||||
|
||||
-- focus_heal_removed: %player_name is replaced with the removed player's name
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1754,
|
||||
'focus_heal_removed',
|
||||
'Removed %player_name from focus heal targets',
|
||||
0, 0,
|
||||
'%player_name 을(를) 집중 치유 대상에서 제거했습니다',
|
||||
'%player_name retiré des cibles de soin prioritaire',
|
||||
'%player_name aus den fokussierten Heilzielen entfernt',
|
||||
'已将 %player_name 从集中治疗目标中移除',
|
||||
'已將 %player_name 從集中治療目標中移除',
|
||||
'%player_name eliminado de los objetivos de sanación prioritarios',
|
||||
'%player_name eliminado de los objetivos de sanación prioritarios',
|
||||
'%player_name удалён из целей приоритетного лечения');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('focus_heal_removed', 100);
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
-- #########################################################
|
||||
-- Playerbots - Add pull command texts
|
||||
-- Localized for all WotLK locales (koKR, frFR, deDE, zhCN,
|
||||
-- zhTW, esES, esMX, ruRU)
|
||||
-- #########################################################
|
||||
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN (
|
||||
'pull_no_target_error',
|
||||
'pull_target_too_far_error',
|
||||
'pull_invalid_target_error',
|
||||
'pull_action_unavailable_error'
|
||||
);
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN (
|
||||
'pull_no_target_error',
|
||||
'pull_target_too_far_error',
|
||||
'pull_invalid_target_error',
|
||||
'pull_action_unavailable_error'
|
||||
);
|
||||
|
||||
-- pull_no_target_error
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1755,
|
||||
'pull_no_target_error',
|
||||
'You have no target',
|
||||
0, 0,
|
||||
'대상이 없습니다',
|
||||
'Vous n''avez pas de cible',
|
||||
'Du hast kein Ziel',
|
||||
'你没有目标',
|
||||
'你沒有目標',
|
||||
'No tienes objetivo',
|
||||
'No tienes objetivo',
|
||||
'У вас нет цели');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pull_no_target_error', 100);
|
||||
|
||||
-- pull_target_too_far_error
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1756,
|
||||
'pull_target_too_far_error',
|
||||
'The target is too far away',
|
||||
0, 0,
|
||||
'대상이 너무 멀리 있습니다',
|
||||
'La cible est trop loin',
|
||||
'Das Ziel ist zu weit entfernt',
|
||||
'目标太远了',
|
||||
'目標太遠了',
|
||||
'El objetivo está demasiado lejos',
|
||||
'El objetivo está demasiado lejos',
|
||||
'Цель слишком далеко');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pull_target_too_far_error', 100);
|
||||
|
||||
-- pull_invalid_target_error
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1757,
|
||||
'pull_invalid_target_error',
|
||||
'The target can''t be pulled',
|
||||
0, 0,
|
||||
'해당 대상은 풀링할 수 없습니다',
|
||||
'La cible ne peut pas être attirée',
|
||||
'Das Ziel kann nicht gepullt werden',
|
||||
'该目标无法被拉怪',
|
||||
'該目標無法被拉怪',
|
||||
'No se puede hacer pull al objetivo',
|
||||
'No se puede hacer pull al objetivo',
|
||||
'Эту цель нельзя пуллить');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pull_invalid_target_error', 100);
|
||||
|
||||
-- pull_action_unavailable_error: %action_name is replaced with the configured pull action
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES (
|
||||
1758,
|
||||
'pull_action_unavailable_error',
|
||||
'Can''t perform pull action ''%action_name''',
|
||||
0, 0,
|
||||
'''%action_name'' 풀 액션을 수행할 수 없습니다',
|
||||
'Impossible d''effectuer l''action d''engagement ''%action_name''',
|
||||
'Die Pull-Aktion ''%action_name'' kann nicht ausgeführt werden',
|
||||
'无法执行拉怪动作“%action_name”',
|
||||
'無法執行拉怪動作「%action_name」',
|
||||
'No se puede realizar la acción de pull ''%action_name''',
|
||||
'No se puede realizar la acción de pull ''%action_name''',
|
||||
'Невозможно выполнить действие пула ''%action_name''');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES ('pull_action_unavailable_error', 100);
|
||||
+7972
File diff suppressed because it is too large
Load Diff
+183
@@ -0,0 +1,183 @@
|
||||
-- #########################################################
|
||||
-- Playerbots - Add /p autogear bis command texts
|
||||
-- Localized for all WotLK locales (koKR, frFR, deDE, zhCN,
|
||||
-- zhTW, esES, esMX, ruRU)
|
||||
-- #########################################################
|
||||
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN (
|
||||
'bis_autogear_unavailable_error',
|
||||
'bis_no_rows_fallback',
|
||||
'bis_command_unavailable_error',
|
||||
'bis_altbot_refused_error',
|
||||
'bis_quality_floor_error',
|
||||
'bis_pvp_refused_error',
|
||||
'bis_invalid_arg_error',
|
||||
'bis_arg_above_limit_error',
|
||||
'bis_no_rows_autogear_msg',
|
||||
'bis_closest_match_msg',
|
||||
'bis_applying_msg',
|
||||
'bis_applied_msg'
|
||||
);
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN (
|
||||
'bis_autogear_unavailable_error',
|
||||
'bis_no_rows_fallback',
|
||||
'bis_command_unavailable_error',
|
||||
'bis_altbot_refused_error',
|
||||
'bis_quality_floor_error',
|
||||
'bis_pvp_refused_error',
|
||||
'bis_invalid_arg_error',
|
||||
'bis_arg_above_limit_error',
|
||||
'bis_no_rows_autogear_msg',
|
||||
'bis_closest_match_msg',
|
||||
'bis_applying_msg',
|
||||
'bis_applied_msg'
|
||||
);
|
||||
|
||||
INSERT INTO `ai_playerbot_texts`
|
||||
(`id`, `name`, `text`, `say_type`, `reply_type`,
|
||||
`text_loc1`, `text_loc2`, `text_loc3`, `text_loc4`,
|
||||
`text_loc5`, `text_loc6`, `text_loc7`, `text_loc8`)
|
||||
VALUES
|
||||
(1767, 'bis_autogear_unavailable_error',
|
||||
'autogear command is not allowed, please check the configuration.', 0, 0,
|
||||
'자동 장비 명령이 허용되지 않습니다. 설정을 확인하세요.',
|
||||
'La commande autogear n''est pas autorisée, veuillez vérifier la configuration.',
|
||||
'Der autogear-Befehl ist nicht erlaubt, bitte überprüfe die Konfiguration.',
|
||||
'自动装备命令未启用,请检查配置。',
|
||||
'自動裝備指令未啟用,請檢查設定。',
|
||||
'El comando autogear no está permitido, por favor revisa la configuración.',
|
||||
'El comando autogear no está permitido, por favor revisa la configuración.',
|
||||
'Команда autogear не разрешена, проверьте конфигурацию.'),
|
||||
|
||||
(1768, 'bis_no_rows_fallback',
|
||||
'No BiS for your tier/spec/level, check cfg, running autogear instead', 0, 0,
|
||||
'해당 등급/전문화/레벨에 BiS 목록이 없습니다. 설정을 확인하세요. 대신 자동 장비를 실행합니다.',
|
||||
'Pas de BiS pour votre tier/spé/niveau, vérifiez la config, exécution d''autogear à la place.',
|
||||
'Kein BiS für deinen Tier/Spec/Level, prüfe die Config, führe stattdessen autogear aus.',
|
||||
'您的等级/天赋/级别没有BiS数据,请检查配置,改为运行autogear。',
|
||||
'你的等級/天賦/級別沒有BiS資料,請檢查設定,改為執行autogear。',
|
||||
'No hay BiS para tu tier/spec/nivel, revisa la configuración, ejecutando autogear en su lugar.',
|
||||
'No hay BiS para tu tier/spec/nivel, revisa la configuración, ejecutando autogear en su lugar.',
|
||||
'Нет BiS для вашего тира/спека/уровня, проверьте конфиг, запускаю autogear.'),
|
||||
|
||||
(1769, 'bis_command_unavailable_error',
|
||||
'bis command is not allowed, please check the configuration.', 0, 0,
|
||||
'bis 명령이 허용되지 않습니다. 설정을 확인하세요.',
|
||||
'La commande bis n''est pas autorisée, veuillez vérifier la configuration.',
|
||||
'Der bis-Befehl ist nicht erlaubt, bitte überprüfe die Konfiguration.',
|
||||
'bis命令未启用,请检查配置。',
|
||||
'bis指令未啟用,請檢查設定。',
|
||||
'El comando bis no está permitido, por favor revisa la configuración.',
|
||||
'El comando bis no está permitido, por favor revisa la configuración.',
|
||||
'Команда bis не разрешена, проверьте конфигурацию.'),
|
||||
|
||||
(1770, 'bis_altbot_refused_error',
|
||||
'You cannot use bis on alt bots.', 0, 0,
|
||||
'부캐 봇에는 bis를 사용할 수 없습니다.',
|
||||
'Vous ne pouvez pas utiliser bis sur des bots alternatifs.',
|
||||
'Du kannst bis nicht auf Zweitbots verwenden.',
|
||||
'你不能在副号机器人上使用bis。',
|
||||
'你不能在副號機器人上使用bis。',
|
||||
'No puedes usar bis en bots alternativos.',
|
||||
'No puedes usar bis en bots alternativos.',
|
||||
'Вы не можете использовать bis на дополнительных ботах.'),
|
||||
|
||||
(1771, 'bis_quality_floor_error',
|
||||
'AutoGearQualityLimit must be 4 for BiS.', 0, 0,
|
||||
'BiS를 사용하려면 AutoGearQualityLimit이 4여야 합니다.',
|
||||
'AutoGearQualityLimit doit être à 4 pour utiliser BiS.',
|
||||
'AutoGearQualityLimit muss für BiS auf 4 stehen.',
|
||||
'BiS要求AutoGearQualityLimit设置为4。',
|
||||
'BiS要求AutoGearQualityLimit設定為4。',
|
||||
'AutoGearQualityLimit debe ser 4 para BiS.',
|
||||
'AutoGearQualityLimit debe ser 4 para BiS.',
|
||||
'AutoGearQualityLimit должен быть 4 для BiS.'),
|
||||
|
||||
(1772, 'bis_pvp_refused_error',
|
||||
'bis is PvE only, bot is configured as PvP.', 0, 0,
|
||||
'bis는 PvE 전용이며, 이 봇은 PvP로 설정되어 있습니다.',
|
||||
'bis est uniquement pour le JcE, ce bot est configuré en JcJ.',
|
||||
'bis ist nur für PvE, dieser Bot ist als PvP konfiguriert.',
|
||||
'bis仅适用于PvE,此机器人配置为PvP。',
|
||||
'bis僅適用於PvE,此機器人設定為PvP。',
|
||||
'bis es solo para PvE, el bot está configurado como PvP.',
|
||||
'bis es solo para PvE, el bot está configurado como PvP.',
|
||||
'bis только для PvE, бот настроен на PvP.'),
|
||||
|
||||
(1773, 'bis_invalid_arg_error',
|
||||
'Invalid BiS ilvl argument ''%param''. Use a positive integer.', 0, 0,
|
||||
'잘못된 BiS 아이템 레벨 인수 ''%param''. 양의 정수를 사용하세요.',
|
||||
'Argument iLvl BiS invalide ''%param''. Utilisez un entier positif.',
|
||||
'Ungültiges BiS-iLvl-Argument ''%param''. Verwende eine positive ganze Zahl.',
|
||||
'无效的BiS物品等级参数“%param”。请使用正整数。',
|
||||
'無效的BiS物品等級參數「%param」。請使用正整數。',
|
||||
'Argumento iLvl BiS inválido ''%param''. Usa un entero positivo.',
|
||||
'Argumento iLvl BiS inválido ''%param''. Usa un entero positivo.',
|
||||
'Неверный аргумент iLvl BiS ''%param''. Используйте положительное целое число.'),
|
||||
|
||||
(1774, 'bis_arg_above_limit_error',
|
||||
'BiS ilvl %requested exceeds AutoGearScoreLimit %limit, refusing', 0, 0,
|
||||
'BiS 아이템 레벨 %requested이(가) AutoGearScoreLimit %limit을(를) 초과합니다. 거부합니다.',
|
||||
'iLvl BiS %requested dépasse AutoGearScoreLimit %limit, refusé.',
|
||||
'BiS-iLvl %requested überschreitet AutoGearScoreLimit %limit, abgelehnt.',
|
||||
'BiS物品等级%requested超过AutoGearScoreLimit %limit,已拒绝。',
|
||||
'BiS物品等級%requested超過AutoGearScoreLimit %limit,已拒絕。',
|
||||
'iLvl BiS %requested supera AutoGearScoreLimit %limit, rechazado.',
|
||||
'iLvl BiS %requested supera AutoGearScoreLimit %limit, rechazado.',
|
||||
'BiS iLvl %requested превышает AutoGearScoreLimit %limit, отказано.'),
|
||||
|
||||
(1775, 'bis_no_rows_autogear_msg',
|
||||
'No BiS at ilvl %ilvl, using Autogear %ilvl instead', 0, 0,
|
||||
'아이템 레벨 %ilvl의 BiS가 없어 대신 Autogear %ilvl을(를) 사용합니다.',
|
||||
'Pas de BiS à l''iLvl %ilvl, utilisation d''Autogear %ilvl à la place.',
|
||||
'Kein BiS auf iLvl %ilvl, verwende stattdessen Autogear %ilvl.',
|
||||
'物品等级%ilvl没有BiS,改用Autogear %ilvl。',
|
||||
'物品等級%ilvl沒有BiS,改用Autogear %ilvl。',
|
||||
'No hay BiS en iLvl %ilvl, usando Autogear %ilvl en su lugar.',
|
||||
'No hay BiS en iLvl %ilvl, usando Autogear %ilvl en su lugar.',
|
||||
'Нет BiS на iLvl %ilvl, использую Autogear %ilvl.'),
|
||||
|
||||
(1776, 'bis_closest_match_msg',
|
||||
'No BiS at ilvl %requested, using closest match at ilvl %resolved', 0, 0,
|
||||
'아이템 레벨 %requested의 BiS가 없어 가장 가까운 아이템 레벨 %resolved을(를) 사용합니다.',
|
||||
'Pas de BiS à l''iLvl %requested, utilisation de la correspondance la plus proche à l''iLvl %resolved.',
|
||||
'Kein BiS auf iLvl %requested, verwende nächstliegende Übereinstimmung auf iLvl %resolved.',
|
||||
'物品等级%requested没有BiS,使用最接近的物品等级%resolved。',
|
||||
'物品等級%requested沒有BiS,使用最接近的物品等級%resolved。',
|
||||
'No hay BiS en iLvl %requested, usando coincidencia más cercana en iLvl %resolved.',
|
||||
'No hay BiS en iLvl %requested, usando coincidencia más cercana en iLvl %resolved.',
|
||||
'Нет BiS на iLvl %requested, использую ближайшее совпадение на iLvl %resolved.'),
|
||||
|
||||
(1777, 'bis_applying_msg', 'Applying BiS gear', 0, 0,
|
||||
'BiS 장비를 적용합니다.',
|
||||
'Application de l''équipement BiS.',
|
||||
'Wende BiS-Ausrüstung an.',
|
||||
'正在装备BiS装备。',
|
||||
'正在裝備BiS裝備。',
|
||||
'Aplicando equipo BiS.',
|
||||
'Aplicando equipo BiS.',
|
||||
'Применяю BiS-снаряжение.'),
|
||||
|
||||
(1778, 'bis_applied_msg', 'BiS applied', 0, 0,
|
||||
'BiS 장비가 적용되었습니다.',
|
||||
'Équipement BiS appliqué.',
|
||||
'BiS-Ausrüstung angewendet.',
|
||||
'BiS装备已应用。',
|
||||
'BiS裝備已套用。',
|
||||
'Equipo BiS aplicado.',
|
||||
'Equipo BiS aplicado.',
|
||||
'BiS-снаряжение применено.');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES
|
||||
('bis_autogear_unavailable_error', 100),
|
||||
('bis_no_rows_fallback', 100),
|
||||
('bis_command_unavailable_error', 100),
|
||||
('bis_altbot_refused_error', 100),
|
||||
('bis_quality_floor_error', 100),
|
||||
('bis_pvp_refused_error', 100),
|
||||
('bis_invalid_arg_error', 100),
|
||||
('bis_arg_above_limit_error', 100),
|
||||
('bis_no_rows_autogear_msg', 100),
|
||||
('bis_closest_match_msg', 100),
|
||||
('bis_applying_msg', 100),
|
||||
('bis_applied_msg', 100);
|
||||
+489
@@ -0,0 +1,489 @@
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN (
|
||||
'quest_accept_debug',
|
||||
'quest_already_have_error',
|
||||
'quest_cant_take_error',
|
||||
'arena_team_already_in_team',
|
||||
'arena_team_thanks_for_invite',
|
||||
'area_trigger_follow_too_far_error',
|
||||
'area_trigger_wait_for_me',
|
||||
'attack_no_target_error',
|
||||
'attack_target_not_in_world_error',
|
||||
'attack_in_flight_error',
|
||||
'attack_pvp_prohibited_error',
|
||||
'attack_target_friendly_error',
|
||||
'attack_target_dead_error',
|
||||
'attack_target_not_in_sight_error',
|
||||
'attack_already_attacking_error',
|
||||
'attack_invalid_target_error',
|
||||
'bank_no_banker_nearby_error',
|
||||
'move_from_group',
|
||||
'running_away',
|
||||
'clean_quest_log_started',
|
||||
'quest_trivial_will_remove',
|
||||
'quest_has_been_removed',
|
||||
'quest_not_trivial_kept',
|
||||
'quest_removed_debug',
|
||||
'quest_removed_with_name',
|
||||
'guild_accept_inviter_not_in_guild',
|
||||
'guild_accept_already_in_guild',
|
||||
'guild_accept_declined',
|
||||
'outfit_usage_add',
|
||||
'outfit_usage_remove',
|
||||
'outfit_usage_equip',
|
||||
'outfit_set_as',
|
||||
'outfit_equipping',
|
||||
'outfit_replace_current',
|
||||
'outfit_resetting',
|
||||
'outfit_updating_current',
|
||||
'outfit_item_removed_from',
|
||||
'outfit_item_added_to',
|
||||
'release_spirit_not_dead_wait',
|
||||
'release_spirit_already_spirit',
|
||||
'release_spirit_releasing',
|
||||
'release_spirit_meet_graveyard',
|
||||
'send_mail_no_mailbox_nearby',
|
||||
'send_mail_one_item_only',
|
||||
'send_mail_cannot_send_money',
|
||||
'send_mail_not_enough_money',
|
||||
'send_mail_sending_to',
|
||||
'send_mail_cannot_send_item',
|
||||
'send_mail_item_not_for_sale',
|
||||
'send_mail_sent_to',
|
||||
'craft_reset',
|
||||
'craft_usage',
|
||||
'craft_cannot_craft',
|
||||
'craft_summary',
|
||||
'set_home_success',
|
||||
'set_home_no_innkeeper_error',
|
||||
'quest_shared',
|
||||
'tame_invalid_id_error',
|
||||
'tame_usage_error',
|
||||
'tame_pet_changed',
|
||||
'tame_pet_changed_initialized',
|
||||
'tame_exotic_requires_beast_mastery',
|
||||
'tame_no_pet_by_name',
|
||||
'tame_no_pet_by_id',
|
||||
'tame_no_pet_by_family',
|
||||
'tame_no_pet_to_rename',
|
||||
'tame_pet_name_length_error',
|
||||
'tame_pet_name_alpha_error',
|
||||
'tame_pet_name_forbidden_error',
|
||||
'tame_pet_renamed',
|
||||
'tame_pet_rename_refresh_hint',
|
||||
'tame_only_hunters_level_10',
|
||||
'tame_creature_template_not_found',
|
||||
'tame_create_pet_failed',
|
||||
'tame_pet_abandoned',
|
||||
'tame_no_hunter_pet_to_abandon',
|
||||
'taxi_ready_next_flight',
|
||||
'taxi_cant_fly_with_you',
|
||||
'taxi_no_flightmaster_nearby',
|
||||
'trade_busy_now',
|
||||
'trade_disabled',
|
||||
'trade_thank_you_player',
|
||||
'trade_selling_disabled',
|
||||
'trade_buying_disabled',
|
||||
'trade_item_not_for_sale',
|
||||
'trade_item_not_needed',
|
||||
'trade_no_items_error',
|
||||
'trade_discount_buy_only',
|
||||
'trade_success_pleasure',
|
||||
'trade_success_fair_trade',
|
||||
'trade_success_thanks',
|
||||
'trade_success_off_with_you',
|
||||
'trade_want_money_for_this',
|
||||
'use_item_none_available',
|
||||
'use_gameobject',
|
||||
'socket_does_not_fit',
|
||||
'use_item_on_target',
|
||||
'use_item',
|
||||
'socketing_item_with_gem',
|
||||
'meeting_stone_in_combat',
|
||||
'meeting_stone_welcome',
|
||||
'meeting_stone_none_nearby',
|
||||
'meeting_stone_none_near_you',
|
||||
'meeting_stone_no_hearthstone_self',
|
||||
'meeting_stone_no_hearthstone_you',
|
||||
'meeting_stone_hearthstone_not_ready_self',
|
||||
'meeting_stone_hearthstone_not_ready_you',
|
||||
'meeting_stone_no_innkeepers_nearby',
|
||||
'meeting_stone_no_innkeepers_near_you',
|
||||
'meeting_stone_cannot_summon_vehicle',
|
||||
'meeting_stone_cannot_summon_master_in_combat',
|
||||
'meeting_stone_cannot_summon_master_dead',
|
||||
'meeting_stone_cannot_summon_bot_dead',
|
||||
'meeting_stone_revived',
|
||||
'meeting_stone_not_enough_space',
|
||||
'new_rpg_quest_accepted',
|
||||
'new_rpg_quest_rewarded',
|
||||
'new_rpg_quest_dropped',
|
||||
'rpg_item_better_for_player',
|
||||
'rpg_start_trade_with_player'
|
||||
);
|
||||
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN (
|
||||
'quest_accept_debug',
|
||||
'quest_already_have_error',
|
||||
'quest_cant_take_error',
|
||||
'arena_team_already_in_team',
|
||||
'arena_team_thanks_for_invite',
|
||||
'area_trigger_follow_too_far_error',
|
||||
'area_trigger_wait_for_me',
|
||||
'attack_no_target_error',
|
||||
'attack_target_not_in_world_error',
|
||||
'attack_in_flight_error',
|
||||
'attack_pvp_prohibited_error',
|
||||
'attack_target_friendly_error',
|
||||
'attack_target_dead_error',
|
||||
'attack_target_not_in_sight_error',
|
||||
'attack_already_attacking_error',
|
||||
'attack_invalid_target_error',
|
||||
'bank_no_banker_nearby_error',
|
||||
'move_from_group',
|
||||
'running_away',
|
||||
'clean_quest_log_started',
|
||||
'quest_trivial_will_remove',
|
||||
'quest_has_been_removed',
|
||||
'quest_not_trivial_kept',
|
||||
'quest_removed_debug',
|
||||
'quest_removed_with_name',
|
||||
'guild_accept_inviter_not_in_guild',
|
||||
'guild_accept_already_in_guild',
|
||||
'guild_accept_declined',
|
||||
'outfit_usage_add',
|
||||
'outfit_usage_remove',
|
||||
'outfit_usage_equip',
|
||||
'outfit_set_as',
|
||||
'outfit_equipping',
|
||||
'outfit_replace_current',
|
||||
'outfit_resetting',
|
||||
'outfit_updating_current',
|
||||
'outfit_item_removed_from',
|
||||
'outfit_item_added_to',
|
||||
'release_spirit_not_dead_wait',
|
||||
'release_spirit_already_spirit',
|
||||
'release_spirit_releasing',
|
||||
'release_spirit_meet_graveyard',
|
||||
'send_mail_no_mailbox_nearby',
|
||||
'send_mail_one_item_only',
|
||||
'send_mail_cannot_send_money',
|
||||
'send_mail_not_enough_money',
|
||||
'send_mail_sending_to',
|
||||
'send_mail_cannot_send_item',
|
||||
'send_mail_item_not_for_sale',
|
||||
'send_mail_sent_to',
|
||||
'craft_reset',
|
||||
'craft_usage',
|
||||
'craft_cannot_craft',
|
||||
'craft_summary',
|
||||
'set_home_success',
|
||||
'set_home_no_innkeeper_error',
|
||||
'quest_shared',
|
||||
'tame_invalid_id_error',
|
||||
'tame_usage_error',
|
||||
'tame_pet_changed',
|
||||
'tame_pet_changed_initialized',
|
||||
'tame_exotic_requires_beast_mastery',
|
||||
'tame_no_pet_by_name',
|
||||
'tame_no_pet_by_id',
|
||||
'tame_no_pet_by_family',
|
||||
'tame_no_pet_to_rename',
|
||||
'tame_pet_name_length_error',
|
||||
'tame_pet_name_alpha_error',
|
||||
'tame_pet_name_forbidden_error',
|
||||
'tame_pet_renamed',
|
||||
'tame_pet_rename_refresh_hint',
|
||||
'tame_only_hunters_level_10',
|
||||
'tame_creature_template_not_found',
|
||||
'tame_create_pet_failed',
|
||||
'tame_pet_abandoned',
|
||||
'tame_no_hunter_pet_to_abandon',
|
||||
'taxi_ready_next_flight',
|
||||
'taxi_cant_fly_with_you',
|
||||
'taxi_no_flightmaster_nearby',
|
||||
'trade_busy_now',
|
||||
'trade_disabled',
|
||||
'trade_thank_you_player',
|
||||
'trade_selling_disabled',
|
||||
'trade_buying_disabled',
|
||||
'trade_item_not_for_sale',
|
||||
'trade_item_not_needed',
|
||||
'trade_no_items_error',
|
||||
'trade_discount_buy_only',
|
||||
'trade_success_pleasure',
|
||||
'trade_success_fair_trade',
|
||||
'trade_success_thanks',
|
||||
'trade_success_off_with_you',
|
||||
'trade_want_money_for_this',
|
||||
'use_item_none_available',
|
||||
'use_gameobject',
|
||||
'socket_does_not_fit',
|
||||
'use_item_on_target',
|
||||
'use_item',
|
||||
'socketing_item_with_gem',
|
||||
'meeting_stone_in_combat',
|
||||
'meeting_stone_welcome',
|
||||
'meeting_stone_none_nearby',
|
||||
'meeting_stone_none_near_you',
|
||||
'meeting_stone_no_hearthstone_self',
|
||||
'meeting_stone_no_hearthstone_you',
|
||||
'meeting_stone_hearthstone_not_ready_self',
|
||||
'meeting_stone_hearthstone_not_ready_you',
|
||||
'meeting_stone_no_innkeepers_nearby',
|
||||
'meeting_stone_no_innkeepers_near_you',
|
||||
'meeting_stone_cannot_summon_vehicle',
|
||||
'meeting_stone_cannot_summon_master_in_combat',
|
||||
'meeting_stone_cannot_summon_master_dead',
|
||||
'meeting_stone_cannot_summon_bot_dead',
|
||||
'meeting_stone_revived',
|
||||
'meeting_stone_not_enough_space',
|
||||
'new_rpg_quest_accepted',
|
||||
'new_rpg_quest_rewarded',
|
||||
'new_rpg_quest_dropped',
|
||||
'rpg_item_better_for_player',
|
||||
'rpg_start_trade_with_player'
|
||||
);
|
||||
|
||||
INSERT INTO ai_playerbot_texts (id, name, text, say_type, reply_type, text_loc1, text_loc2, text_loc3, text_loc4, text_loc5, text_loc6, text_loc7, text_loc8) VALUES
|
||||
(1779, 'quest_accept_debug', 'Quest [%quest] accepted', 0, 0, '퀘스트 [%quest] 수락', 'Quête [%quest] acceptée', 'Quest [%quest] angenommen', '任务 [%quest] 已接受', '任務 [%quest] 已接受', 'Misión [%quest] aceptada', 'Misión [%quest] aceptada', 'Задание [%quest] принято'),
|
||||
(1780, 'quest_already_have_error', 'I have this quest', 0, 0, '이미 이 퀘스트를 가지고 있습니다', 'J''ai déjà cette quête', 'Ich habe diese Quest bereits', '我已经有这个任务了', '我已經有這個任務了', 'Ya tengo esta misión', 'Ya tengo esta misión', 'У меня уже есть это задание'),
|
||||
(1781, 'quest_cant_take_error', 'I can''t take this quest', 0, 0, '이 퀘스트를 받을 수 없습니다', 'Je ne peux pas prendre cette quête', 'Ich kann diese Quest nicht annehmen', '我无法接受这个任务', '我無法接受這個任務', 'No puedo aceptar esta misión', 'No puedo aceptar esta misión', 'Я не могу взять это задание'),
|
||||
(1782, 'arena_team_already_in_team', 'Sorry, I am already in such team', 0, 0, '죄송하지만 이미 그런 팀에 속해 있습니다', 'Désolé, je suis déjà dans une telle équipe', 'Entschuldigung, ich bin bereits in so einem Team', '抱歉,我已经在这样的队伍里了', '抱歉,我已經在這樣的隊伍裡了', 'Lo siento, ya estoy en un equipo así', 'Lo siento, ya estoy en un equipo así', 'Извините, я уже состою в такой команде'),
|
||||
(1783, 'arena_team_thanks_for_invite', 'Thanks for the invite!', 0, 0, '초대해 주셔서 감사합니다!', 'Merci pour l''invitation !', 'Danke für die Einladung!', '谢谢你的邀请!', '謝謝你的邀請!', 'Gracias por la invitación!', 'Gracias por la invitación!', 'Спасибо за приглашение!'),
|
||||
(1784, 'area_trigger_follow_too_far_error', 'I won''t follow: too far away', 0, 0, '너무 멀어서 따라가지 않겠습니다', 'Je ne suivrai pas : c''est trop loin', 'Ich werde nicht folgen: zu weit entfernt', '我不会跟随:距离太远了', '我不會跟隨:距離太遠了', 'No te seguiré: estás demasiado lejos', 'No te seguiré: estás demasiado lejos', 'Я не пойду следом: слишком далеко'),
|
||||
(1785, 'area_trigger_wait_for_me', 'Wait for me', 0, 0, '잠깐만 기다려 주세요', 'Attendez-moi', 'Warte auf mich', '等等我', '等等我', 'Espérame', 'Espérame', 'Подожди меня'),
|
||||
(1786, 'attack_no_target_error', 'I have no target', 0, 0, '대상이 없습니다', 'Je n''ai pas de cible', 'Ich habe kein Ziel', '我没有目标', '我沒有目標', 'No tengo objetivo', 'No tengo objetivo', 'У меня нет цели'),
|
||||
(1787, 'attack_target_not_in_world_error', '%target is no longer in the world.', 0, 0, '%target은(는) 더 이상 월드에 없습니다.', '%target n''est plus dans le monde.', '%target ist nicht mehr in der Welt.', '%target 已不在世界中。', '%target 已不在世界中。', '%target ya no está en el mundo.', '%target ya no está en el mundo.', '%target больше не находится в мире.'),
|
||||
(1788, 'attack_in_flight_error', 'I cannot attack in flight', 0, 0, '비행 중에는 공격할 수 없습니다', 'Je ne peux pas attaquer en vol', 'Ich kann im Flug nicht angreifen', '飞行中无法攻击', '飛行中無法攻擊', 'No puedo atacar en vuelo', 'No puedo atacar en vuelo', 'Я не могу атаковать в полёте'),
|
||||
(1789, 'attack_pvp_prohibited_error', 'I cannot attack other players in PvP prohibited areas.', 0, 0, 'PvP 금지 지역에서는 다른 플레이어를 공격할 수 없습니다.', 'Je ne peux pas attaquer d''autres joueurs dans les zones où le PvP est interdit.', 'Ich kann andere Spieler in PvP-verbotenen Gebieten nicht angreifen.', '我不能在禁止 PvP 的区域攻击其他玩家。', '我不能在禁止 PvP 的區域攻擊其他玩家。', 'No puedo atacar a otros jugadores en zonas donde el JcJ está prohibido.', 'No puedo atacar a otros jugadores en zonas donde el JcJ está prohibido.', 'Я не могу атаковать других игроков в зонах, где PvP запрещено.'),
|
||||
(1790, 'attack_target_friendly_error', '%target is friendly to me.', 0, 0, '%target은(는) 우호적인 대상입니다.', '%target m''est amical.', '%target ist mir gegenüber freundlich.', '%target 对我是友方目标。', '%target 對我是友方目標。', '%target es amistoso conmigo.', '%target es amistoso conmigo.', '%target дружелюбен ко мне.'),
|
||||
(1791, 'attack_target_dead_error', '%target is dead.', 0, 0, '%target은(는) 죽었습니다.', '%target est mort.', '%target ist tot.', '%target 已经死了。', '%target 已經死了。', '%target está muerto.', '%target está muerto.', '%target мёртв.'),
|
||||
(1792, 'attack_target_not_in_sight_error', '%target is not in my sight.', 0, 0, '%target이(가) 시야에 없습니다.', '%target n''est pas dans mon champ de vision.', '%target ist nicht in Sichtweite.', '%target 不在我的视野中。', '%target 不在我的視野中。', '%target no está a mi vista.', '%target no está a mi vista.', '%target вне поля моего зрения.'),
|
||||
(1793, 'attack_already_attacking_error', 'I am already attacking %target.', 0, 0, '이미 %target을(를) 공격하고 있습니다.', 'J''attaque déjà %target.', 'Ich greife %target bereits an.', '我已经在攻击 %target。', '我已經在攻擊 %target。', 'Ya estoy atacando a %target.', 'Ya estoy atacando a %target.', 'Я уже атакую %target.'),
|
||||
(1794, 'attack_invalid_target_error', 'I cannot attack an invalid target.', 0, 0, '유효하지 않은 대상은 공격할 수 없습니다.', 'Je ne peux pas attaquer une cible invalide.', 'Ich kann kein ungültiges Ziel angreifen.', '我不能攻击无效目标。', '我不能攻擊無效目標。', 'No puedo atacar un objetivo no válido.', 'No puedo atacar un objetivo no válido.', 'Я не могу атаковать недопустимую цель.'),
|
||||
(1795, 'bank_no_banker_nearby_error', 'Cannot find banker nearby', 0, 0, '근처에 은행원이 없습니다', 'Impossible de trouver un banquier à proximité', 'Kein Bankier in der Nähe gefunden', '附近找不到银行职员', '附近找不到銀行職員', 'No encuentro un banquero cerca', 'No encuentro un banquero cerca', 'Поблизости нет банкира'),
|
||||
(1796, 'move_from_group', 'Moving away from group', 0, 0, '파티에서 멀어지는 중입니다', 'Je m''éloigne du groupe', 'Ich entferne mich von der Gruppe', '正在远离队伍', '正在遠離隊伍', 'Me estoy alejando del grupo', 'Me estoy alejando del grupo', 'Отхожу от группы'),
|
||||
(1797, 'running_away', 'Running away', 0, 0, '도망치는 중입니다', 'Je m''enfuis', 'Ich laufe weg', '正在逃跑', '正在逃跑', 'Estoy huyendo', 'Estoy huyendo', 'Убегаю'),
|
||||
(1798, 'clean_quest_log_started', 'Clean Quest Log command received, removing grey/trivial quests...', 0, 0, '퀘스트 로그 정리 명령을 받았습니다. 회색/사소한 퀘스트를 제거하는 중입니다...', 'Commande de nettoyage du journal des quêtes reçue, suppression des quêtes grises/triviales...', 'Befehl zum Bereinigen des Questlogs erhalten, graue/triviale Quests werden entfernt...', '已收到清理任务日志命令,正在移除灰色/琐碎任务...', '已收到清理任務日誌命令,正在移除灰色/瑣碎任務...', 'Comando para limpiar el registro de misiones recibido, eliminando misiones grises/triviales...', 'Comando para limpiar el registro de misiones recibido, eliminando misiones grises/triviales...', 'Получена команда очистки журнала заданий, удаляю серые/простые задания...'),
|
||||
(1799, 'quest_trivial_will_remove', 'Quest [%title] will be removed because it is trivial (grey).', 0, 0, '퀘스트 [%title]은(는) 사소한(회색) 퀘스트이므로 제거됩니다.', 'La quête [%title] sera supprimée car elle est triviale (grise).', 'Quest [%title] wird entfernt, weil sie trivial (grau) ist.', '任务 [%title] 将被移除,因为它是琐碎的(灰色)任务。', '任務 [%title] 將被移除,因為它是瑣碎的(灰色)任務。', 'La misión [%title] se eliminará porque es trivial (gris).', 'La misión [%title] se eliminará porque es trivial (gris).', 'Задание [%title] будет удалено, так как оно простое (серое).'),
|
||||
(1800, 'quest_has_been_removed', 'Quest [%title] has been removed.', 0, 0, '퀘스트 [%title]이(가) 제거되었습니다.', 'La quête [%title] a été supprimée.', 'Quest [%title] wurde entfernt.', '任务 [%title] 已被移除。', '任務 [%title] 已被移除。', 'La misión [%title] ha sido eliminada.', 'La misión [%title] ha sido eliminada.', 'Задание [%title] было удалено.'),
|
||||
(1801, 'quest_not_trivial_kept', 'Quest [%title] is not trivial and will be kept.', 0, 0, '퀘스트 [%title]은(는) 사소하지 않으므로 유지됩니다.', 'La quête [%title] n''est pas triviale et sera conservée.', 'Quest [%title] ist nicht trivial und wird behalten.', '任务 [%title] 并不琐碎,将被保留。', '任務 [%title] 並不瑣碎,將被保留。', 'La misión [%title] no es trivial y se conservará.', 'La misión [%title] no es trivial y se conservará.', 'Задание [%title] не является простым и будет сохранено.'),
|
||||
(1802, 'quest_removed_debug', 'Quest [%quest] removed', 0, 0, '퀘스트 [%quest] 제거됨', 'Quête [%quest] supprimée', 'Quest [%quest] entfernt', '任务 [%quest] 已移除', '任務 [%quest] 已移除', 'Misión [%quest] eliminada', 'Misión [%quest] eliminada', 'Задание [%quest] удалено'),
|
||||
(1803, 'quest_removed_with_name', 'Quest removed %quest', 0, 0, '퀘스트 제거됨 %quest', 'Quête supprimée %quest', 'Quest entfernt %quest', '任务已移除 %quest', '任務已移除 %quest', 'Misión eliminada %quest', 'Misión eliminada %quest', 'Задание удалено %quest'),
|
||||
(1804, 'guild_accept_inviter_not_in_guild', 'You are not in a guild!', 0, 0, '당신은 길드에 속해 있지 않습니다!', 'Vous n''êtes pas dans une guilde !', 'Du bist in keiner Gilde!', '你不在公会中!', '你不在公會中!', 'No estás en un gremio!', 'No estás en un gremio!', 'Вы не состоите в гильдии!'),
|
||||
(1805, 'guild_accept_already_in_guild', 'Sorry, I am in a guild already', 0, 0, '죄송하지만 이미 길드에 속해 있습니다', 'Désolé, je suis déjà dans une guilde', 'Entschuldigung, ich bin bereits in einer Gilde', '抱歉,我已经在公会里了', '抱歉,我已經在公會裡了', 'Lo siento, ya estoy en un gremio', 'Lo siento, ya estoy en un gremio', 'Извините, я уже в гильдии'),
|
||||
(1806, 'guild_accept_declined', 'Sorry, I don''t want to join your guild :(', 0, 0, '죄송하지만 당신의 길드에 가입하고 싶지 않습니다 :(', 'Désolé, je ne veux pas rejoindre votre guilde :(', 'Entschuldigung, ich möchte deiner Gilde nicht beitreten :(', '抱歉,我不想加入你的公会 :(', '抱歉,我不想加入你的公會 :(', 'Lo siento, no quiero unirme a tu gremio :(', 'Lo siento, no quiero unirme a tu gremio :(', 'Извините, я не хочу вступать в вашу гильдию :('),
|
||||
(1807, 'outfit_usage_add', 'outfit <name> +[item] to add items', 0, 0, '아이템을 추가하려면 outfit <name> +[item]', 'outfit <name> +[item] pour ajouter des objets', 'outfit <name> +[item], um Gegenstände hinzuzufügen', '使用 outfit <name> +[item] 添加物品', '使用 outfit <name> +[item] 添加物品', 'outfit <name> +[item] para agregar objetos', 'outfit <name> +[item] para agregar objetos', 'outfit <name> +[item], чтобы добавить предметы'),
|
||||
(1808, 'outfit_usage_remove', 'outfit <name> -[item] to remove items', 0, 0, '아이템을 제거하려면 outfit <name> -[item]', 'outfit <name> -[item] pour retirer des objets', 'outfit <name> -[item], um Gegenstände zu entfernen', '使用 outfit <name> -[item] 移除物品', '使用 outfit <name> -[item] 移除物品', 'outfit <name> -[item] para eliminar objetos', 'outfit <name> -[item] para eliminar objetos', 'outfit <name> -[item], чтобы убрать предметы'),
|
||||
(1809, 'outfit_usage_equip', 'outfit <name> equip/replace to equip items', 0, 0, '아이템을 장착하려면 outfit <name> equip/replace', 'outfit <name> equip/replace pour équiper des objets', 'outfit <name> equip/replace, um Gegenstände anzulegen', '使用 outfit <name> equip/replace 装备物品', '使用 outfit <name> equip/replace 裝備物品', 'outfit <name> equip/replace para equipar objetos', 'outfit <name> equip/replace para equipar objetos', 'outfit <name> equip/replace, чтобы экипировать предметы'),
|
||||
(1810, 'outfit_set_as', 'Setting outfit %name as %param', 0, 0, '복장 %name을(를) %param(으)로 설정하는 중입니다', 'Définition de la tenue %name comme %param', 'Setze Outfit %name als %param', '正在将装备方案 %name 设置为 %param', '正在將裝備方案 %name 設定為 %param', 'Estableciendo el atuendo %name como %param', 'Estableciendo el atuendo %name como %param', 'Устанавливаю комплект %name как %param'),
|
||||
(1811, 'outfit_equipping', 'Equipping outfit %name', 0, 0, '복장 %name을(를) 장착하는 중입니다', 'Équipement de la tenue %name', 'Outfit %name wird angelegt', '正在装备方案 %name', '正在裝備方案 %name', 'Equipando el atuendo %name', 'Equipando el atuendo %name', 'Экипирую комплект %name'),
|
||||
(1812, 'outfit_replace_current', 'Replacing current equip with outfit %name', 0, 0, '현재 장비를 복장 %name으로 교체하는 중입니다', 'Remplacement de l''équipement actuel par la tenue %name', 'Aktuelle Ausrüstung wird durch Outfit %name ersetzt', '正在用装备方案 %name 替换当前装备', '正在用裝備方案 %name 替換目前裝備', 'Reemplazando el equipo actual con el atuendo %name', 'Reemplazando el equipo actual con el atuendo %name', 'Заменяю текущую экипировку комплектом %name'),
|
||||
(1813, 'outfit_resetting', 'Resetting outfit %name', 0, 0, '복장 %name을(를) 초기화하는 중입니다', 'Réinitialisation de la tenue %name', 'Outfit %name wird zurückgesetzt', '正在重置装备方案 %name', '正在重置裝備方案 %name', 'Restableciendo el atuendo %name', 'Restableciendo el atuendo %name', 'Сбрасываю комплект %name'),
|
||||
(1814, 'outfit_updating_current', 'Updating with current items outfit %name', 0, 0, '현재 아이템으로 복장 %name을(를) 업데이트하는 중입니다', 'Mise à jour de la tenue %name avec les objets actuels', 'Outfit %name wird mit der aktuellen Ausrüstung aktualisiert', '正在用当前物品更新装备方案 %name', '正在用目前物品更新裝備方案 %name', 'Actualizando el atuendo %name con los objetos actuales', 'Actualizando el atuendo %name con los objetos actuales', 'Обновляю комплект %name текущими предметами'),
|
||||
(1815, 'outfit_item_removed_from', '%item removed from %name', 0, 0, '%name에서 %item이(가) 제거되었습니다', '%item retiré de %name', '%item aus %name entfernt', '已从 %name 中移除 %item', '已從 %name 中移除 %item', '%item eliminado de %name', '%item eliminado de %name', '%item удалён из %name'),
|
||||
(1816, 'outfit_item_added_to', '%item added to %name', 0, 0, '%item이(가) %name에 추가되었습니다', '%item ajouté à %name', '%item zu %name hinzugefügt', '已将 %item 添加到 %name', '已將 %item 添加到 %name', '%item agregado a %name', '%item agregado a %name', '%item добавлен в %name'),
|
||||
(1817, 'release_spirit_not_dead_wait', 'I am not dead, will wait here', 0, 0, '저는 죽지 않았습니다. 여기서 기다리겠습니다', 'Je ne suis pas mort, j''attendrai ici', 'Ich bin nicht tot und werde hier warten', '我还没死,会在这里等', '我還沒死,會在這裡等', 'No estoy muerto, esperaré aquí', 'No estoy muerto, esperaré aquí', 'Я не мёртв, буду ждать здесь'),
|
||||
(1818, 'release_spirit_already_spirit', 'I am already a spirit', 0, 0, '저는 이미 유령입니다', 'Je suis déjà un esprit', 'Ich bin bereits ein Geist', '我已经是灵魂状态了', '我已經是靈魂狀態了', 'Ya soy un espíritu', 'Ya soy un espíritu', 'Я уже дух'),
|
||||
(1819, 'release_spirit_releasing', 'Releasing...', 0, 0, '해방 중...', 'Je libère mon esprit...', 'Geist wird freigesetzt...', '正在释放灵魂...', '正在釋放靈魂...', 'Liberando espíritu...', 'Liberando espíritu...', 'Освобождаю дух...'),
|
||||
(1820, 'release_spirit_meet_graveyard', 'Meet me at the graveyard', 0, 0, '묘지에서 만나요', 'Retrouvez-moi au cimetière', 'Triff mich auf dem Friedhof', '墓地见', '墓地見', 'Encuéntrame en el cementerio', 'Encuéntrame en el cementerio', 'Встречаемся на кладбище'),
|
||||
(1821, 'send_mail_no_mailbox_nearby', 'There is no mailbox nearby', 0, 0, '근처에 우체통이 없습니다', 'Il n''y a pas de boîte aux lettres à proximité', 'Kein Briefkasten in der Nähe', '附近没有邮箱', '附近沒有郵箱', 'No hay un buzón cerca', 'No hay un buzón cerca', 'Поблизости нет почтового ящика'),
|
||||
(1822, 'send_mail_one_item_only', 'You can not request more than one item', 0, 0, '둘 이상의 아이템은 요청할 수 없습니다', 'Vous ne pouvez pas demander plus d''un objet', 'Du kannst nicht mehr als einen Gegenstand anfordern', '你不能请求多于一件物品', '你不能要求超過一件物品', 'No puedes solicitar más de un objeto', 'No puedes solicitar más de un objeto', 'Нельзя запрашивать больше одного предмета'),
|
||||
(1823, 'send_mail_cannot_send_money', 'I cannot send money', 0, 0, '돈은 보낼 수 없습니다', 'Je ne peux pas envoyer d''argent', 'Ich kann kein Geld senden', '我不能寄送钱', '我不能寄送金錢', 'No puedo enviar dinero', 'No puedo enviar dinero', 'Я не могу отправить деньги'),
|
||||
(1824, 'send_mail_not_enough_money', 'I don''t have enough money', 0, 0, '돈이 충분하지 않습니다', 'Je n''ai pas assez d''argent', 'Ich habe nicht genug Geld', '我没有足够的钱', '我沒有足夠的錢', 'No tengo suficiente dinero', 'No tengo suficiente dinero', 'У меня недостаточно денег'),
|
||||
(1825, 'send_mail_sending_to', 'Sending mail to %receiver', 0, 0, '%receiver에게 우편을 보내는 중입니다', 'Envoi du courrier à %receiver', 'Sende Post an %receiver', '正在向 %receiver 发送邮件', '正在向 %receiver 發送郵件', 'Enviando correo a %receiver', 'Enviando correo a %receiver', 'Отправляю почту %receiver'),
|
||||
(1826, 'send_mail_cannot_send_item', 'Cannot send %item', 0, 0, '%item을(를) 보낼 수 없습니다', 'Impossible d''envoyer %item', '%item kann nicht gesendet werden', '无法发送 %item', '無法發送 %item', 'No se puede enviar %item', 'No se puede enviar %item', 'Невозможно отправить %item'),
|
||||
(1827, 'send_mail_item_not_for_sale', '%item: it is not for sale', 0, 0, '%item: 판매 대상이 아닙니다', '%item : ce n''est pas à vendre', '%item: Das steht nicht zum Verkauf', '%item:这不是出售物品', '%item:這不是出售物品', '%item: esto no está en venta', '%item: esto no está en venta', '%item: это не продаётся'),
|
||||
(1828, 'send_mail_sent_to', 'Sent mail to %receiver', 0, 0, '%receiver에게 우편을 보냈습니다', 'Courrier envoyé à %receiver', 'Post an %receiver gesendet', '已向 %receiver 发送邮件', '已向 %receiver 發送郵件', 'Correo enviado a %receiver', 'Correo enviado a %receiver', 'Почта отправлена %receiver'),
|
||||
(1829, 'craft_reset', 'I will not craft anything', 0, 0, '아무것도 제작하지 않겠습니다', 'Je ne fabriquerai rien', 'Ich werde nichts herstellen', '我不会制作任何东西', '我不會製作任何東西', 'No fabricaré nada', 'No fabricaré nada', 'Я ничего не буду создавать'),
|
||||
(1830, 'craft_usage', 'Usage: ''craft [itemId]'' or ''craft reset''', 0, 0, '사용법: ''craft [itemId]'' 또는 ''craft reset''', 'Utilisation : ''craft [itemId]'' ou ''craft reset''', 'Verwendung: ''craft [itemId]'' oder ''craft reset''', '用法:''craft [itemId]'' 或 ''craft reset''', '用法:''craft [itemId]'' 或 ''craft reset''', 'Uso: ''craft [itemId]'' o ''craft reset''', 'Uso: ''craft [itemId]'' o ''craft reset''', 'Использование: ''craft [itemId]'' или ''craft reset'''),
|
||||
(1831, 'craft_cannot_craft', 'I cannot craft this', 0, 0, '이것은 제작할 수 없습니다', 'Je ne peux pas fabriquer ceci', 'Ich kann das nicht herstellen', '我无法制作这个', '我無法製作這個', 'No puedo fabricar esto', 'No puedo fabricar esto', 'Я не могу это создать'),
|
||||
(1832, 'craft_summary', 'I will craft %item using reagents: %reagents (craft fee: %money)', 0, 0, '재료 %reagents을(를) 사용해 %item을(를) 제작하겠습니다 (제작 수수료: %money)', 'Je fabriquerai %item en utilisant les composants : %reagents (frais de fabrication : %money)', 'Ich werde %item mit folgenden Reagenzien herstellen: %reagents (Herstellungsgebühr: %money)', '我将使用材料 %reagents 制作 %item(制作费用:%money)', '我將使用材料 %reagents 製作 %item(製作費用:%money)', 'Fabricaré %item usando los materiales: %reagents (tarifa de fabricación: %money)', 'Fabricaré %item usando los materiales: %reagents (tarifa de fabricación: %money)', 'Я изготовлю %item, используя реагенты: %reagents (плата за изготовление: %money)'),
|
||||
(1833, 'set_home_success', 'This inn is my new home', 0, 0, '이 여관을 새로운 집으로 설정했습니다', 'Cette auberge est ma nouvelle maison', 'Dieses Gasthaus ist mein neues Zuhause', '这家旅店是我的新家', '這間旅店是我的新家', 'Esta posada es mi nuevo hogar', 'Esta posada es mi nuevo hogar', 'Этот трактир теперь мой новый дом'),
|
||||
(1834, 'set_home_no_innkeeper_error', 'Can''t find any innkeeper around', 0, 0, '주변에서 여관주인을 찾을 수 없습니다', 'Impossible de trouver un aubergiste aux alentours', 'Kein Gastwirt in der Nähe gefunden', '附近找不到旅店老板', '附近找不到旅店老闆', 'No encuentro ningún posadero cerca', 'No encuentro ningún posadero cerca', 'Не удалось найти поблизости трактирщика'),
|
||||
(1835, 'quest_shared', 'Quest shared', 0, 0, '퀘스트 공유됨', 'Quête partagée', 'Quest geteilt', '任务已共享', '任務已共享', 'Misión compartida', 'Misión compartida', 'Задание поделено'),
|
||||
(1836, 'tame_invalid_id_error', 'Invalid tame id.', 0, 0, '잘못된 길들이기 ID입니다.', 'Identifiant de dressage invalide.', 'Ungültige Zähm-ID.', '无效的驯服 ID。', '無效的馴服 ID。', 'ID de domesticación no válido.', 'ID de domesticación no válido.', 'Недопустимый ID приручения.'),
|
||||
(1837, 'tame_usage_error', 'Usage: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 0, 0, '사용법: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 'Utilisation : tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 'Verwendung: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', '用法:tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', '用法:tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 'Uso: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 'Uso: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon', 'Использование: tame name <name> | tame id <id> | tame family <family> | tame rename <new name> | tame abandon'),
|
||||
(1838, 'tame_pet_changed', 'Pet changed to %name, ID: %id.', 0, 0, '소환수가 %name, ID: %id(으)로 변경되었습니다.', 'Familier changé en %name, ID : %id.', 'Begleiter geändert zu %name, ID: %id.', '宠物已更改为 %name,ID:%id。', '寵物已更改為 %name,ID:%id。', 'Mascota cambiada a %name, ID: %id.', 'Mascota cambiada a %name, ID: %id.', 'Питомец изменён на %name, ID: %id.'),
|
||||
(1839, 'tame_pet_changed_initialized', 'Pet changed and initialized!', 0, 0, '소환수가 변경되고 초기화되었습니다!', 'Familier changé et initialisé !', 'Begleiter geändert und initialisiert!', '宠物已更改并初始化!', '寵物已更改並初始化!', 'La mascota ha sido cambiada e inicializada!', 'La mascota ha sido cambiada e inicializada!', 'Питомец изменён и инициализирован!'),
|
||||
(1840, 'tame_exotic_requires_beast_mastery', 'I cannot use exotic pets unless I have the Beast Mastery talent.', 0, 0, '야수 지배 특성이 없으면 특수 야수 소환수를 사용할 수 없습니다.', 'Je ne peux pas utiliser de familiers exotiques sans le talent Maîtrise des bêtes.', 'Ich kann ohne das Talent Tierherrschaft keine exotischen Begleiter benutzen.', '如果没有野兽掌握天赋,我无法使用异种宠物。', '如果沒有野獸控制天賦,我無法使用異種寵物。', 'No puedo usar mascotas exóticas a menos que tenga el talento Dominio de bestias.', 'No puedo usar mascotas exóticas a menos que tenga el talento Dominio de bestias.', 'Я не могу использовать экзотических питомцев без таланта Повелитель зверей.'),
|
||||
(1841, 'tame_no_pet_by_name', 'No tameable pet found with name: %name', 0, 0, '이름이 %name인 길들일 수 있는 소환수를 찾을 수 없습니다', 'Aucun familier apprivoisable trouvé avec le nom : %name', 'Kein zähmbares Tier mit dem Namen %name gefunden', '未找到名为 %name 的可驯服宠物', '未找到名為 %name 的可馴服寵物', 'No se encontró ninguna mascota domesticable con el nombre: %name', 'No se encontró ninguna mascota domesticable con el nombre: %name', 'Не найден приручаемый питомец с именем: %name'),
|
||||
(1842, 'tame_no_pet_by_id', 'No tameable pet found with id: %id', 0, 0, 'ID가 %id인 길들일 수 있는 소환수를 찾을 수 없습니다', 'Aucun familier apprivoisable trouvé avec l''id : %id', 'Kein zähmbares Tier mit der ID %id gefunden', '未找到 ID 为 %id 的可驯服宠物', '未找到 ID 為 %id 的可馴服寵物', 'No se encontró ninguna mascota domesticable con el id: %id', 'No se encontró ninguna mascota domesticable con el id: %id', 'Не найден приручаемый питомец с id: %id'),
|
||||
(1843, 'tame_no_pet_by_family', 'No tameable pet found with family: %family', 0, 0, '계열이 %family인 길들일 수 있는 소환수를 찾을 수 없습니다', 'Aucun familier apprivoisable trouvé avec la famille : %family', 'Kein zähmbares Tier mit der Familie %family gefunden', '未找到家族为 %family 的可驯服宠物', '未找到家族為 %family 的可馴服寵物', 'No se encontró ninguna mascota domesticable con la familia: %family', 'No se encontró ninguna mascota domesticable con la familia: %family', 'Не найден приручаемый питомец семейства: %family'),
|
||||
(1844, 'tame_no_pet_to_rename', 'You have no pet to rename.', 0, 0, '이름을 바꿀 소환수가 없습니다.', 'Vous n''avez pas de familier à renommer.', 'Du hast kein Tier zum Umbenennen.', '你没有可重命名的宠物。', '你沒有可重新命名的寵物。', 'No tienes ninguna mascota para renombrar.', 'No tienes ninguna mascota para renombrar.', 'У вас нет питомца для переименования.'),
|
||||
(1845, 'tame_pet_name_length_error', 'Pet name must be between 1 and 12 alphabetic characters.', 0, 0, '소환수 이름은 1자에서 12자의 알파벳 문자여야 합니다.', 'Le nom du familier doit contenir entre 1 et 12 caractères alphabétiques.', 'Der Name des Begleiters muss zwischen 1 und 12 alphabetischen Zeichen lang sein.', '宠物名字必须为 1 到 12 个字母字符。', '寵物名字必須為 1 到 12 個字母字元。', 'El nombre de la mascota debe tener entre 1 y 12 caracteres alfabéticos.', 'El nombre de la mascota debe tener entre 1 y 12 caracteres alfabéticos.', 'Имя питомца должно содержать от 1 до 12 буквенных символов.'),
|
||||
(1846, 'tame_pet_name_alpha_error', 'Pet name must only contain alphabetic characters (A-Z, a-z).', 0, 0, '소환수 이름에는 알파벳 문자(A-Z, a-z)만 포함될 수 있습니다.', 'Le nom du familier ne doit contenir que des caractères alphabétiques (A-Z, a-z).', 'Der Name des Begleiters darf nur alphabetische Zeichen (A-Z, a-z) enthalten.', '宠物名字只能包含字母字符(A-Z, a-z)。', '寵物名字只能包含字母字元(A-Z, a-z)。', 'El nombre de la mascota solo puede contener caracteres alfabéticos (A-Z, a-z).', 'El nombre de la mascota solo puede contener caracteres alfabéticos (A-Z, a-z).', 'Имя питомца должно содержать только буквенные символы (A-Z, a-z).'),
|
||||
(1847, 'tame_pet_name_forbidden_error', 'That pet name is forbidden. Please choose another name.', 0, 0, '그 소환수 이름은 사용할 수 없습니다. 다른 이름을 선택해 주세요.', 'Ce nom de familier est interdit. Veuillez en choisir un autre.', 'Dieser Name für den Begleiter ist verboten. Bitte wähle einen anderen Namen.', '该宠物名称被禁止使用。请选择其他名字。', '該寵物名稱被禁止使用。請選擇其他名字。', 'Ese nombre de mascota está prohibido. Por favor, elige otro nombre.', 'Ese nombre de mascota está prohibido. Por favor, elige otro nombre.', 'Это имя для питомца запрещено. Пожалуйста, выберите другое имя.'),
|
||||
(1848, 'tame_pet_renamed', 'Your pet has been renamed to %name!', 0, 0, '당신의 소환수 이름이 %name(으)로 변경되었습니다!', 'Votre familier a été renommé en %name !', 'Dein Begleiter wurde in %name umbenannt!', '你的宠物已重命名为 %name!', '你的寵物已重新命名為 %name!', 'Tu mascota ha sido renombrada a %name!', 'Tu mascota ha sido renombrada a %name!', 'Ваш питомец был переименован в %name!'),
|
||||
(1849, 'tame_pet_rename_refresh_hint', 'If you do not see the new name, please dismiss and recall your pet.', 0, 0, '새 이름이 보이지 않으면 소환수를 해제했다가 다시 소환해 주세요.', 'Si vous ne voyez pas le nouveau nom, veuillez renvoyer puis rappeler votre familier.', 'Wenn du den neuen Namen nicht siehst, schicke deinen Begleiter weg und rufe ihn erneut.', '如果你看不到新名字,请先解散再召回你的宠物。', '如果你看不到新名字,請先解散再召回你的寵物。', 'Si no ves el nuevo nombre, por favor retira y vuelve a invocar a tu mascota.', 'Si no ves el nuevo nombre, por favor retira y vuelve a invocar a tu mascota.', 'Если вы не видите новое имя, отпустите и снова призовите питомца.'),
|
||||
(1850, 'tame_only_hunters_level_10', 'Only level 10+ hunters can have pets.', 0, 0, '10레벨 이상의 사냥꾼만 소환수를 가질 수 있습니다.', 'Seuls les chasseurs de niveau 10+ peuvent avoir des familiers.', 'Nur Jäger ab Stufe 10 können Begleiter haben.', '只有 10 级以上的猎人才能拥有宠物。', '只有 10 級以上的獵人才能擁有寵物。', 'Solo los cazadores de nivel 10 o superior pueden tener mascotas.', 'Solo los cazadores de nivel 10 o superior pueden tener mascotas.', 'Только охотники 10 уровня и выше могут иметь питомцев.'),
|
||||
(1851, 'tame_creature_template_not_found', 'Creature template not found.', 0, 0, '생물 템플릿을 찾을 수 없습니다.', 'Modèle de créature introuvable.', 'Kreaturvorlage nicht gefunden.', '未找到生物模板。', '未找到生物範本。', 'No se encontró la plantilla de criatura.', 'No se encontró la plantilla de criatura.', 'Шаблон существа не найден.'),
|
||||
(1852, 'tame_create_pet_failed', 'Failed to create pet.', 0, 0, '소환수 생성에 실패했습니다.', 'Échec de la création du familier.', 'Erstellen des Begleiters fehlgeschlagen.', '创建宠物失败。', '建立寵物失敗。', 'No se pudo crear la mascota.', 'No se pudo crear la mascota.', 'Не удалось создать питомца.'),
|
||||
(1853, 'tame_pet_abandoned', 'Your pet has been abandoned.', 0, 0, '당신의 소환수를 버렸습니다.', 'Votre familier a été abandonné.', 'Dein Begleiter wurde freigelassen.', '你的宠物已被放弃。', '你的寵物已被放棄。', 'Tu mascota ha sido abandonada.', 'Tu mascota ha sido abandonada.', 'Ваш питомец был брошен.'),
|
||||
(1854, 'tame_no_hunter_pet_to_abandon', 'You have no hunter pet to abandon.', 0, 0, '버릴 사냥꾼 소환수가 없습니다.', 'Vous n''avez pas de familier de chasseur à abandonner.', 'Du hast kein Jägertier zum Freilassen.', '你没有可放弃的猎人宠物。', '你沒有可放棄的獵人寵物。', 'No tienes ninguna mascota de cazador que abandonar.', 'No tienes ninguna mascota de cazador que abandonar.', 'У вас нет питомца охотника, которого можно бросить.'),
|
||||
(1855, 'taxi_ready_next_flight', 'I am ready for the next flight', 0, 0, '다음 비행을 탈 준비가 되었습니다', 'Je suis prêt pour le prochain vol', 'Ich bin bereit für den nächsten Flug', '我已准备好进行下一次飞行', '我已準備好進行下一次飛行', 'Estoy listo para el siguiente vuelo', 'Estoy listo para el siguiente vuelo', 'Я готов к следующему перелёту'),
|
||||
(1856, 'taxi_cant_fly_with_you', 'I can''t fly with you', 0, 0, '당신과 함께 날 수 없습니다', 'Je ne peux pas voler avec vous', 'Ich kann nicht mit dir fliegen', '我不能和你一起飞', '我不能和你一起飛', 'No puedo volar contigo', 'No puedo volar contigo', 'Я не могу лететь с вами'),
|
||||
(1857, 'taxi_no_flightmaster_nearby', 'Cannot find any flightmaster to talk', 0, 0, '대화할 비행 조련사를 찾을 수 없습니다', 'Impossible de trouver un maître de vol à qui parler', 'Keinen Flugmeister zum Ansprechen gefunden', '找不到可以交谈的飞行管理员', '找不到可以交談的飛行管理員', 'No encuentro ningún maestro de vuelo con quien hablar', 'No encuentro ningún maestro de vuelo con quien hablar', 'Не могу найти распорядителя полётов, с которым можно поговорить'),
|
||||
(1858, 'trade_busy_now', 'I''m kind of busy now', 0, 0, '지금은 좀 바쁩니다', 'Je suis un peu occupé en ce moment', 'Ich bin gerade etwas beschäftigt', '我现在有点忙', '我現在有點忙', 'Ahora estoy un poco ocupado', 'Ahora estoy un poco ocupado', 'Сейчас я немного занят'),
|
||||
(1859, 'trade_disabled', 'Trading is disabled', 0, 0, '거래가 비활성화되어 있습니다', 'L''échange est désactivé', 'Handel ist deaktiviert', '交易已禁用', '交易已停用', 'El comercio está deshabilitado', 'El comercio está deshabilitado', 'Торговля отключена'),
|
||||
(1860, 'trade_thank_you_player', 'Thank you %player', 0, 0, '고마워요 %player', 'Merci %player', 'Danke %player', '谢谢你 %player', '謝謝你 %player', 'Gracias %player', 'Gracias %player', 'Спасибо, %player'),
|
||||
(1861, 'trade_selling_disabled', 'Selling is disabled.', 0, 0, '판매가 비활성화되어 있습니다.', 'La vente est désactivée.', 'Verkaufen ist deaktiviert.', '出售已禁用。', '出售已停用。', 'La venta está deshabilitada.', 'La venta está deshabilitada.', 'Продажа отключена.'),
|
||||
(1862, 'trade_buying_disabled', 'Buying is disabled.', 0, 0, '구매가 비활성화되어 있습니다.', 'L''achat est désactivé.', 'Kaufen ist deaktiviert.', '购买已禁用。', '購買已停用。', 'La compra está deshabilitada.', 'La compra está deshabilitada.', 'Покупка отключена.'),
|
||||
(1863, 'trade_item_not_for_sale', '%item - This is not for sale', 0, 0, '%item - 이것은 판매용이 아닙니다', '%item - Ceci n''est pas à vendre', '%item - Das steht nicht zum Verkauf', '%item - 这不是出售物品', '%item - 這不是出售物品', '%item - Esto no está en venta', '%item - Esto no está en venta', '%item - это не продаётся'),
|
||||
(1864, 'trade_item_not_needed', '%item - I don''t need this', 0, 0, '%item - 저는 이것이 필요 없습니다', '%item - Je n''en ai pas besoin', '%item - Das brauche ich nicht', '%item - 我不需要这个', '%item - 我不需要這個', '%item - No necesito esto', '%item - No necesito esto', '%item - мне это не нужно'),
|
||||
(1865, 'trade_no_items_error', 'There are no items to trade', 0, 0, '거래할 아이템이 없습니다', 'Il n''y a aucun objet à échanger', 'Es gibt keine Gegenstände zum Handeln', '没有可交易的物品', '沒有可交易的物品', 'No hay objetos para comerciar', 'No hay objetos para comerciar', 'Нет предметов для обмена'),
|
||||
(1866, 'trade_discount_buy_only', 'You can use discount to buy items only', 0, 0, '할인은 아이템 구매에만 사용할 수 있습니다', 'Vous ne pouvez utiliser la réduction que pour acheter des objets', 'Rabatte können nur zum Kauf von Gegenständen verwendet werden', '折扣只能用于购买物品', '折扣只能用於購買物品', 'Solo puedes usar el descuento para comprar objetos', 'Solo puedes usar el descuento para comprar objetos', 'Скидку можно использовать только для покупки предметов'),
|
||||
(1867, 'trade_success_pleasure', 'A pleasure doing business with you', 0, 0, '당신과 거래해서 즐거웠습니다', 'Un plaisir de faire affaire avec vous', 'Es war mir ein Vergnügen, mit dir Geschäfte zu machen', '很高兴和你做生意', '很高興和你做生意', 'Un placer hacer negocios contigo', 'Un placer hacer negocios contigo', 'Приятно было иметь с вами дело'),
|
||||
(1868, 'trade_success_fair_trade', 'Fair trade', 0, 0, '공정한 거래입니다', 'Échange équitable', 'Fairer Handel', '公平交易', '公平交易', 'Intercambio justo', 'Intercambio justo', 'Честная сделка'),
|
||||
(1869, 'trade_success_thanks', 'Thanks', 0, 0, '감사합니다', 'Merci', 'Danke', '谢谢', '謝謝', 'Gracias', 'Gracias', 'Спасибо'),
|
||||
(1870, 'trade_success_off_with_you', 'Off with you', 0, 0, '이제 가보세요', 'Allez-vous-en maintenant', 'Nun geh deiner Wege', '走吧你', '走吧你', 'Ahora vete', 'Ahora vete', 'Иди уже'),
|
||||
(1871, 'trade_want_money_for_this', 'I want %money for this', 0, 0, '이것에 대해 %money을(를) 원합니다', 'Je veux %money pour ceci', 'Ich möchte %money dafür', '这个我想要 %money', '這個我想要 %money', 'Quiero %money por esto', 'Quiero %money por esto', 'Я хочу %money за это'),
|
||||
(1872, 'use_item_none_available', 'No items (or game objects) available', 0, 0, '사용할 수 있는 아이템(또는 게임 오브젝트)이 없습니다', 'Aucun objet (ou objet interactif) disponible', 'Keine Gegenstände (oder Spielobjekte) verfügbar', '没有可用的物品(或游戏物体)', '沒有可用的物品(或遊戲物件)', 'No hay objetos (ni objetos del juego) disponibles', 'No hay objetos (ni objetos del juego) disponibles', 'Нет доступных предметов (или игровых объектов)'),
|
||||
(1873, 'use_gameobject', 'Using %gameobject', 0, 0, '%gameobject 사용 중', 'Utilisation de %gameobject', 'Benutze %gameobject', '正在使用 %gameobject', '正在使用 %gameobject', 'Usando %gameobject', 'Usando %gameobject', 'Использую %gameobject'),
|
||||
(1874, 'socket_does_not_fit', 'Socket does not fit', 0, 0, '소켓이 맞지 않습니다', 'La châsse ne correspond pas', 'Sockel passt nicht', '插槽不匹配', '插槽不匹配', 'La ranura no encaja', 'La ranura no encaja', 'Гнездо не подходит'),
|
||||
(1875, 'use_item_on_target', 'Using %item on %target', 0, 0, '%target에게 %item을(를) 사용하는 중', 'Utilisation de %item sur %target', 'Benutze %item auf %target', '正在对 %target 使用 %item', '正在對 %target 使用 %item', 'Usando %item en %target', 'Usando %item en %target', 'Использую %item на %target'),
|
||||
(1876, 'use_item', 'Using %item', 0, 0, '%item 사용 중', 'Utilisation de %item', 'Benutze %item', '正在使用 %item', '正在使用 %item', 'Usando %item', 'Usando %item', 'Использую %item'),
|
||||
(1877, 'socketing_item_with_gem', 'Socketing %item with %gem', 0, 0, '%item에 %gem 보석을 장착하는 중', 'Sertissage de %item avec %gem', 'Sockele %item mit %gem', '正在将 %gem 镶嵌到 %item 上', '正在將 %gem 鑲嵌到 %item 上', 'Engarzando %item con %gem', 'Engarzando %item con %gem', 'Вставляю %gem в %item'),
|
||||
(1878, 'meeting_stone_in_combat', 'I am in combat', 0, 0, '전투 중입니다', 'Je suis en combat', 'Ich bin im Kampf', '我在战斗中', '我在戰鬥中', 'Estoy en combate', 'Estoy en combate', 'Я в бою'),
|
||||
(1879, 'meeting_stone_welcome', 'Welcome!', 0, 0, '환영합니다!', 'Bienvenue !', 'Willkommen!', '欢迎!', '歡迎!', 'Bienvenido!', 'Bienvenido!', 'Добро пожаловать!'),
|
||||
(1880, 'meeting_stone_none_nearby', 'There is no meeting stone nearby', 0, 0, '근처에 집결의 돌이 없습니다', 'Il n''y a pas de pierre de rencontre à proximité', 'Es gibt keinen Beschwörungsstein in der Nähe', '附近没有集合石', '附近沒有集合石', 'No hay ninguna piedra de encuentro cerca', 'No hay ninguna piedra de encuentro cerca', 'Поблизости нет камня встреч'),
|
||||
(1881, 'meeting_stone_none_near_you', 'There is no meeting stone near you', 0, 0, '당신 근처에 집결의 돌이 없습니다', 'Il n''y a pas de pierre de rencontre près de vous', 'Es gibt keinen Beschwörungsstein in deiner Nähe', '你附近没有集合石', '你附近沒有集合石', 'No hay ninguna piedra de encuentro cerca de ti', 'No hay ninguna piedra de encuentro cerca de ti', 'Рядом с вами нет камня встреч'),
|
||||
(1882, 'meeting_stone_no_hearthstone_self', 'I have no hearthstone', 0, 0, '귀환석이 없습니다', 'Je n''ai pas de pierre de foyer', 'Ich habe keinen Ruhestein', '我没有炉石', '我沒有爐石', 'No tengo piedra de hogar', 'No tengo piedra de hogar', 'У меня нет камня возвращения'),
|
||||
(1883, 'meeting_stone_no_hearthstone_you', 'You have no hearthstone', 0, 0, '당신에게 귀환석이 없습니다', 'Vous n''avez pas de pierre de foyer', 'Du hast keinen Ruhestein', '你没有炉石', '你沒有爐石', 'No tienes piedra de hogar', 'No tienes piedra de hogar', 'У вас нет камня возвращения'),
|
||||
(1884, 'meeting_stone_hearthstone_not_ready_self', 'My hearthstone is not ready', 0, 0, '제 귀환석은 아직 준비되지 않았습니다', 'Ma pierre de foyer n''est pas prête', 'Mein Ruhestein ist nicht bereit', '我的炉石还没准备好', '我的爐石還沒準備好', 'Mi piedra de hogar no está lista', 'Mi piedra de hogar no está lista', 'Мой камень возвращения ещё не готов'),
|
||||
(1885, 'meeting_stone_hearthstone_not_ready_you', 'Your hearthstone is not ready', 0, 0, '당신의 귀환석은 아직 준비되지 않았습니다', 'Votre pierre de foyer n''est pas prête', 'Dein Ruhestein ist nicht bereit', '你的炉石还没准备好', '你的爐石還沒準備好', 'Tu piedra de hogar no está lista', 'Tu piedra de hogar no está lista', 'Ваш камень возвращения ещё не готов'),
|
||||
(1886, 'meeting_stone_no_innkeepers_nearby', 'There are no innkeepers nearby', 0, 0, '근처에 여관주인이 없습니다', 'Il n''y a pas d''aubergistes à proximité', 'Es gibt keine Gastwirte in der Nähe', '附近没有旅店老板', '附近沒有旅店老闆', 'No hay posaderos cerca', 'No hay posaderos cerca', 'Поблизости нет трактирщиков'),
|
||||
(1887, 'meeting_stone_no_innkeepers_near_you', 'There are no innkeepers near you', 0, 0, '당신 근처에 여관주인이 없습니다', 'Il n''y a pas d''aubergistes près de vous', 'Es gibt keine Gastwirte in deiner Nähe', '你附近没有旅店老板', '你附近沒有旅店老闆', 'No hay posaderos cerca de ti', 'No hay posaderos cerca de ti', 'Рядом с вами нет трактирщиков'),
|
||||
(1888, 'meeting_stone_cannot_summon_vehicle', 'You cannot summon me while I''m on a vehicle', 0, 0, '제가 탈것/차량에 타고 있는 동안에는 소환할 수 없습니다', 'Vous ne pouvez pas m''invoquer tant que je suis sur un véhicule', 'Du kannst mich nicht beschwören, solange ich auf einem Fahrzeug bin', '当我在载具上时,你不能召唤我', '當我在載具上時,你不能召喚我', 'No puedes invocarme mientras esté en un vehículo', 'No puedes invocarme mientras esté en un vehículo', 'Вы не можете призвать меня, пока я на транспорте'),
|
||||
(1889, 'meeting_stone_cannot_summon_master_in_combat', 'You cannot summon me while you''re in combat', 0, 0, '당신이 전투 중일 때는 저를 소환할 수 없습니다', 'Vous ne pouvez pas m''invoquer pendant que vous êtes en combat', 'Du kannst mich nicht beschwören, solange du im Kampf bist', '当你在战斗中时,不能召唤我', '當你在戰鬥中時,不能召喚我', 'No puedes invocarme mientras estés en combate', 'No puedes invocarme mientras estés en combate', 'Вы не можете призвать меня, пока вы в бою'),
|
||||
(1890, 'meeting_stone_cannot_summon_master_dead', 'You cannot summon me while you''re dead', 0, 0, '당신이 죽어 있는 동안에는 저를 소환할 수 없습니다', 'Vous ne pouvez pas m''invoquer pendant que vous êtes mort', 'Du kannst mich nicht beschwören, solange du tot bist', '当你死亡时,不能召唤我', '當你死亡時,不能召喚我', 'No puedes invocarme mientras estés muerto', 'No puedes invocarme mientras estés muerto', 'Вы не можете призвать меня, пока вы мертвы'),
|
||||
(1891, 'meeting_stone_cannot_summon_bot_dead', 'You cannot summon me while I''m dead, you need to release my spirit first', 0, 0, '제가 죽어 있는 동안에는 저를 소환할 수 없습니다. 먼저 제 영혼을 해방해야 합니다', 'Vous ne pouvez pas m''invoquer tant que je suis mort, vous devez d''abord libérer mon esprit', 'Du kannst mich nicht beschwören, solange ich tot bin; du musst zuerst meinen Geist freisetzen', '当我死亡时,你不能召唤我,你需要先释放我的灵魂', '當我死亡時,你不能召喚我,你需要先釋放我的靈魂', 'No puedes invocarme mientras esté muerto, primero debes liberar mi espíritu', 'No puedes invocarme mientras esté muerto, primero debes liberar mi espíritu', 'Вы не можете призвать меня, пока я мёртв, сначала нужно освободить мой дух'),
|
||||
(1892, 'meeting_stone_revived', 'I live, again!', 0, 0, '다시 살아났습니다!', 'Je vis à nouveau !', 'Ich lebe wieder!', '我又活了!', '我又活了!', 'Vivo de nuevo!', 'Vivo de nuevo!', 'Я снова жив!'),
|
||||
(1893, 'meeting_stone_not_enough_space', 'Not enough place to summon', 0, 0, '소환할 공간이 부족합니다', 'Pas assez de place pour invoquer', 'Nicht genug Platz zum Beschwören', '没有足够的空间进行召唤', '沒有足夠的空間進行召喚', 'No hay suficiente espacio para invocar', 'No hay suficiente espacio para invocar', 'Недостаточно места для призыва'),
|
||||
(1894, 'new_rpg_quest_accepted', 'Quest accepted %quest', 0, 0, '퀘스트 수락 %quest', 'Quête acceptée %quest', 'Quest angenommen %quest', '任务已接受 %quest', '任務已接受 %quest', 'Misión aceptada %quest', 'Misión aceptada %quest', 'Задание принято %quest'),
|
||||
(1895, 'new_rpg_quest_rewarded', 'Quest rewarded %quest', 0, 0, '퀘스트 보상 받음 %quest', 'Quête récompensée %quest', 'Quest abgeschlossen %quest', '任务已奖励 %quest', '任務已獎勵 %quest', 'Misión completada %quest', 'Misión completada %quest', 'Награда за задание получена %quest'),
|
||||
(1896, 'new_rpg_quest_dropped', 'Quest dropped %quest', 0, 0, '퀘스트 포기 %quest', 'Quête abandonnée %quest', 'Quest abgebrochen %quest', '任务已放弃 %quest', '任務已放棄 %quest', 'Misión abandonada %quest', 'Misión abandonada %quest', 'Задание отменено %quest'),
|
||||
(1897, 'rpg_item_better_for_player', 'You can use this %item better than me, %player.', 0, 0, '%player님, 이 %item은(는) 저보다 당신에게 더 잘 맞습니다.', 'Vous pouvez mieux utiliser cet objet %item que moi, %player.', 'Du kannst diesen %item besser gebrauchen als ich, %player.', '%player,这个 %item 比我更适合你使用。', '%player,這個 %item 比我更適合你使用。', 'Tú puedes usar este %item mejor que yo, %player.', 'Tú puedes usar este %item mejor que yo, %player.', '%player, ты можешь использовать %item лучше, чем я.'),
|
||||
(1898, 'rpg_start_trade_with_player', 'Start trade with %player', 0, 0, '%player와(과) 거래를 시작합니다', 'Début de l''échange avec %player', 'Beginne Handel mit %player', '开始与 %player 交易', '開始與 %player 交易', 'Iniciando intercambio con %player', 'Iniciando intercambio con %player', 'Начинаю обмен с %player');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES
|
||||
('quest_accept_debug', 100),
|
||||
('quest_already_have_error', 100),
|
||||
('quest_cant_take_error', 100),
|
||||
('arena_team_already_in_team', 100),
|
||||
('arena_team_thanks_for_invite', 100),
|
||||
('area_trigger_follow_too_far_error', 100),
|
||||
('area_trigger_wait_for_me', 100),
|
||||
('attack_no_target_error', 100),
|
||||
('attack_target_not_in_world_error', 100),
|
||||
('attack_in_flight_error', 100),
|
||||
('attack_pvp_prohibited_error', 100),
|
||||
('attack_target_friendly_error', 100),
|
||||
('attack_target_dead_error', 100),
|
||||
('attack_target_not_in_sight_error', 100),
|
||||
('attack_already_attacking_error', 100),
|
||||
('attack_invalid_target_error', 100),
|
||||
('bank_no_banker_nearby_error', 100),
|
||||
('move_from_group', 100),
|
||||
('running_away', 100),
|
||||
('clean_quest_log_started', 100),
|
||||
('quest_trivial_will_remove', 100),
|
||||
('quest_has_been_removed', 100),
|
||||
('quest_not_trivial_kept', 100),
|
||||
('quest_removed_debug', 100),
|
||||
('quest_removed_with_name', 100),
|
||||
('guild_accept_inviter_not_in_guild', 100),
|
||||
('guild_accept_already_in_guild', 100),
|
||||
('guild_accept_declined', 100),
|
||||
('outfit_usage_add', 100),
|
||||
('outfit_usage_remove', 100),
|
||||
('outfit_usage_equip', 100),
|
||||
('outfit_set_as', 100),
|
||||
('outfit_equipping', 100),
|
||||
('outfit_replace_current', 100),
|
||||
('outfit_resetting', 100),
|
||||
('outfit_updating_current', 100),
|
||||
('outfit_item_removed_from', 100),
|
||||
('outfit_item_added_to', 100),
|
||||
('release_spirit_not_dead_wait', 100),
|
||||
('release_spirit_already_spirit', 100),
|
||||
('release_spirit_releasing', 100),
|
||||
('release_spirit_meet_graveyard', 100),
|
||||
('send_mail_no_mailbox_nearby', 100),
|
||||
('send_mail_one_item_only', 100),
|
||||
('send_mail_cannot_send_money', 100),
|
||||
('send_mail_not_enough_money', 100),
|
||||
('send_mail_sending_to', 100),
|
||||
('send_mail_cannot_send_item', 100),
|
||||
('send_mail_item_not_for_sale', 100),
|
||||
('send_mail_sent_to', 100),
|
||||
('craft_reset', 100),
|
||||
('craft_usage', 100),
|
||||
('craft_cannot_craft', 100),
|
||||
('craft_summary', 100),
|
||||
('set_home_success', 100),
|
||||
('set_home_no_innkeeper_error', 100),
|
||||
('quest_shared', 100),
|
||||
('tame_invalid_id_error', 100),
|
||||
('tame_usage_error', 100),
|
||||
('tame_pet_changed', 100),
|
||||
('tame_pet_changed_initialized', 100),
|
||||
('tame_exotic_requires_beast_mastery', 100),
|
||||
('tame_no_pet_by_name', 100),
|
||||
('tame_no_pet_by_id', 100),
|
||||
('tame_no_pet_by_family', 100),
|
||||
('tame_no_pet_to_rename', 100),
|
||||
('tame_pet_name_length_error', 100),
|
||||
('tame_pet_name_alpha_error', 100),
|
||||
('tame_pet_name_forbidden_error', 100),
|
||||
('tame_pet_renamed', 100),
|
||||
('tame_pet_rename_refresh_hint', 100),
|
||||
('tame_only_hunters_level_10', 100),
|
||||
('tame_creature_template_not_found', 100),
|
||||
('tame_create_pet_failed', 100),
|
||||
('tame_pet_abandoned', 100),
|
||||
('tame_no_hunter_pet_to_abandon', 100),
|
||||
('taxi_ready_next_flight', 100),
|
||||
('taxi_cant_fly_with_you', 100),
|
||||
('taxi_no_flightmaster_nearby', 100),
|
||||
('trade_busy_now', 100),
|
||||
('trade_disabled', 100),
|
||||
('trade_thank_you_player', 100),
|
||||
('trade_selling_disabled', 100),
|
||||
('trade_buying_disabled', 100),
|
||||
('trade_item_not_for_sale', 100),
|
||||
('trade_item_not_needed', 100),
|
||||
('trade_no_items_error', 100),
|
||||
('trade_discount_buy_only', 100),
|
||||
('trade_success_pleasure', 100),
|
||||
('trade_success_fair_trade', 100),
|
||||
('trade_success_thanks', 100),
|
||||
('trade_success_off_with_you', 100),
|
||||
('trade_want_money_for_this', 100),
|
||||
('use_item_none_available', 100),
|
||||
('use_gameobject', 100),
|
||||
('socket_does_not_fit', 100),
|
||||
('use_item_on_target', 100),
|
||||
('use_item', 100),
|
||||
('socketing_item_with_gem', 100),
|
||||
('meeting_stone_in_combat', 100),
|
||||
('meeting_stone_welcome', 100),
|
||||
('meeting_stone_none_nearby', 100),
|
||||
('meeting_stone_none_near_you', 100),
|
||||
('meeting_stone_no_hearthstone_self', 100),
|
||||
('meeting_stone_no_hearthstone_you', 100),
|
||||
('meeting_stone_hearthstone_not_ready_self', 100),
|
||||
('meeting_stone_hearthstone_not_ready_you', 100),
|
||||
('meeting_stone_no_innkeepers_nearby', 100),
|
||||
('meeting_stone_no_innkeepers_near_you', 100),
|
||||
('meeting_stone_cannot_summon_vehicle', 100),
|
||||
('meeting_stone_cannot_summon_master_in_combat', 100),
|
||||
('meeting_stone_cannot_summon_master_dead', 100),
|
||||
('meeting_stone_cannot_summon_bot_dead', 100),
|
||||
('meeting_stone_revived', 100),
|
||||
('meeting_stone_not_enough_space', 100),
|
||||
('new_rpg_quest_accepted', 100),
|
||||
('new_rpg_quest_rewarded', 100),
|
||||
('new_rpg_quest_dropped', 100),
|
||||
('rpg_item_better_for_player', 100),
|
||||
('rpg_start_trade_with_player', 100);
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
DELETE FROM ai_playerbot_texts WHERE name IN (
|
||||
'send_mail_disabled'
|
||||
);
|
||||
|
||||
DELETE FROM ai_playerbot_texts_chance WHERE name IN (
|
||||
'send_mail_disabled'
|
||||
);
|
||||
|
||||
INSERT INTO ai_playerbot_texts (id, name, text, say_type, reply_type, text_loc1, text_loc2, text_loc3, text_loc4, text_loc5, text_loc6, text_loc7, text_loc8) VALUES
|
||||
(1899, 'send_mail_disabled', 'I cannot send mail', 0, 0, '우편을 보낼 수 없습니다', 'Je ne peux pas envoyer de courrier', 'Ich kann keine Post senden', '我不能寄送邮件', '我不能寄送郵件', 'No puedo enviar correo', 'No puedo enviar correo', 'Я не могу отправить почту');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance (name, probability) VALUES
|
||||
('send_mail_disabled', 100);
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
DELETE FROM ai_playerbot_texts_chance
|
||||
WHERE name IN (
|
||||
'rp_missing_reagent_greater_blessing',
|
||||
'rp_missing_reagent_gift_of_the_wild',
|
||||
'rp_missing_reagent_arcane_brilliance',
|
||||
'rp_missing_reagent_generic',
|
||||
'missing_group_buff_reagent'
|
||||
);
|
||||
|
||||
DELETE FROM ai_playerbot_texts
|
||||
WHERE name IN (
|
||||
'rp_missing_reagent_greater_blessing',
|
||||
'rp_missing_reagent_gift_of_the_wild',
|
||||
'rp_missing_reagent_arcane_brilliance',
|
||||
'rp_missing_reagent_generic',
|
||||
'missing_group_buff_reagent'
|
||||
);
|
||||
|
||||
INSERT INTO ai_playerbot_texts
|
||||
(id, name, text, say_type, reply_type, text_loc1, text_loc2, text_loc3, text_loc4, text_loc5, text_loc6, text_loc7, text_loc8)
|
||||
VALUES
|
||||
(1900, 'missing_group_buff_reagent',
|
||||
'I am out of reagents for %group_spell and am casting %base_spell instead.',
|
||||
0, 0, '', '', '', '', '', '', '', '');
|
||||
|
||||
INSERT INTO ai_playerbot_texts_chance
|
||||
(name, probability)
|
||||
VALUES
|
||||
('missing_group_buff_reagent', 100);
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
-- Flush all caches after RandomItemMgr changes. Tables will be repopulated with
|
||||
-- the correct entries on the next start.
|
||||
TRUNCATE TABLE `playerbots_equip_cache`;
|
||||
TRUNCATE TABLE `playerbots_rnditem_cache`;
|
||||
TRUNCATE TABLE `playerbots_rarity_cache`;
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 125 KiB |
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACTIONCONTEXT_H
|
||||
#define _PLAYERBOT_ACTIONCONTEXT_H
|
||||
#ifndef PLAYERBOTS_ACTIONCONTEXT_H
|
||||
#define PLAYERBOTS_ACTIONCONTEXT_H
|
||||
|
||||
#include "AddLootAction.h"
|
||||
#include "AttackAction.h"
|
||||
@@ -45,6 +46,7 @@
|
||||
#include "NonCombatActions.h"
|
||||
#include "OutfitAction.h"
|
||||
#include "PositionAction.h"
|
||||
#include "PullActions.h"
|
||||
#include "DropQuestAction.h"
|
||||
#include "RandomBotUpdateAction.h"
|
||||
#include "ReachTargetActions.h"
|
||||
@@ -63,8 +65,10 @@
|
||||
#include "WorldBuffAction.h"
|
||||
#include "XpGainAction.h"
|
||||
#include "NewRpgAction.h"
|
||||
#include "NewRpgOutdoorPvP.h"
|
||||
#include "FishingAction.h"
|
||||
#include "CancelChannelAction.h"
|
||||
#include "WaitForAttackAction.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
@@ -103,6 +107,13 @@ public:
|
||||
creators["shoot"] = &ActionContext::shoot;
|
||||
creators["lifeblood"] = &ActionContext::lifeblood;
|
||||
creators["arcane torrent"] = &ActionContext::arcane_torrent;
|
||||
creators["pull my target"] = &ActionContext::pull_my_target;
|
||||
creators["pull rti target"] = &ActionContext::pull_rti_target;
|
||||
creators["pull start"] = &ActionContext::pull_start;
|
||||
creators["pull action"] = &ActionContext::pull_action;
|
||||
creators["pull end"] = &ActionContext::pull_end;
|
||||
creators["return to pull position"] = &ActionContext::return_to_pull_position;
|
||||
creators["reach pull"] = &ActionContext::reach_pull;
|
||||
creators["end pull"] = &ActionContext::end_pull;
|
||||
creators["healthstone"] = &ActionContext::healthstone;
|
||||
creators["healing potion"] = &ActionContext::healing_potion;
|
||||
@@ -125,6 +136,7 @@ public:
|
||||
creators["runaway"] = &ActionContext::runaway;
|
||||
creators["stay"] = &ActionContext::stay;
|
||||
creators["sit"] = &ActionContext::sit;
|
||||
creators["aggressive target"] = &ActionContext::aggressive_target;
|
||||
creators["attack anything"] = &ActionContext::attack_anything;
|
||||
creators["attack least hp target"] = &ActionContext::attack_least_hp_target;
|
||||
creators["attack enemy player"] = &ActionContext::attack_enemy_player;
|
||||
@@ -162,6 +174,10 @@ public:
|
||||
creators["war stomp"] = &ActionContext::war_stomp;
|
||||
creators["blood fury"] = &ActionContext::blood_fury;
|
||||
creators["berserking"] = &ActionContext::berserking;
|
||||
creators["every man for himself"] = &ActionContext::every_man_for_himself;
|
||||
creators["will of the forsaken"] = &ActionContext::will_of_the_forsaken;
|
||||
creators["stoneform"] = &ActionContext::stoneform;
|
||||
creators["escape artist"] = &ActionContext::escape_artist;
|
||||
creators["use trinket"] = &ActionContext::use_trinket;
|
||||
creators["auto talents"] = &ActionContext::auto_talents;
|
||||
creators["auto share quest"] = &ActionContext::auto_share_quest;
|
||||
@@ -261,6 +277,8 @@ public:
|
||||
creators["new rpg wander npc"] = &ActionContext::new_rpg_wander_npc;
|
||||
creators["new rpg do quest"] = &ActionContext::new_rpg_do_quest;
|
||||
creators["new rpg travel flight"] = &ActionContext::new_rpg_travel_flight;
|
||||
creators["new rpg outdoor pvp"] = &ActionContext::new_rpg_outdoor_pvp;
|
||||
creators["wait for attack keep safe distance"] = &ActionContext::wait_for_attack_keep_safe_distance;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -306,6 +324,13 @@ private:
|
||||
static Action* gift_of_the_naaru(PlayerbotAI* botAI) { return new CastGiftOfTheNaaruAction(botAI); }
|
||||
static Action* lifeblood(PlayerbotAI* botAI) { return new CastLifeBloodAction(botAI); }
|
||||
static Action* arcane_torrent(PlayerbotAI* botAI) { return new CastArcaneTorrentAction(botAI); }
|
||||
static Action* pull_my_target(PlayerbotAI* botAI) { return new PullMyTargetAction(botAI); }
|
||||
static Action* pull_rti_target(PlayerbotAI* botAI) { return new PullRtiTargetAction(botAI); }
|
||||
static Action* pull_start(PlayerbotAI* botAI) { return new PullStartAction(botAI); }
|
||||
static Action* pull_action(PlayerbotAI* botAI) { return new PullAction(botAI); }
|
||||
static Action* pull_end(PlayerbotAI* botAI) { return new PullEndAction(botAI); }
|
||||
static Action* return_to_pull_position(PlayerbotAI* botAI) { return new ReturnToPullPositionAction(botAI); }
|
||||
static Action* reach_pull(PlayerbotAI* botAI) { return new ReachPullAction(botAI); }
|
||||
static Action* mana_tap(PlayerbotAI* botAI) { return new CastManaTapAction(botAI); }
|
||||
static Action* end_pull(PlayerbotAI* botAI) { return new ChangeCombatStrategyAction(botAI, "-pull"); }
|
||||
static Action* cancel_channel(PlayerbotAI* botAI) { return new CancelChannelAction(botAI); }
|
||||
@@ -315,6 +340,7 @@ private:
|
||||
static Action* suggest_what_to_do(PlayerbotAI* botAI) { return new SuggestWhatToDoAction(botAI); }
|
||||
static Action* suggest_trade(PlayerbotAI* botAI) { return new SuggestTradeAction(botAI); }
|
||||
static Action* suggest_dungeon(PlayerbotAI* botAI) { return new SuggestDungeonAction(botAI); }
|
||||
static Action* aggressive_target(PlayerbotAI* botAI) { return new AggressiveTargetAction(botAI); }
|
||||
static Action* attack_anything(PlayerbotAI* botAI) { return new AttackAnythingAction(botAI); }
|
||||
static Action* attack_least_hp_target(PlayerbotAI* botAI) { return new AttackLeastHpTargetAction(botAI); }
|
||||
static Action* attack_enemy_player(PlayerbotAI* botAI) { return new AttackEnemyPlayerAction(botAI); }
|
||||
@@ -355,6 +381,10 @@ private:
|
||||
static Action* war_stomp(PlayerbotAI* botAI) { return new CastWarStompAction(botAI); }
|
||||
static Action* blood_fury(PlayerbotAI* botAI) { return new CastBloodFuryAction(botAI); }
|
||||
static Action* berserking(PlayerbotAI* botAI) { return new CastBerserkingAction(botAI); }
|
||||
static Action* every_man_for_himself(PlayerbotAI* botAI) { return new CastEveryManForHimselfAction(botAI); }
|
||||
static Action* will_of_the_forsaken(PlayerbotAI* botAI) { return new CastWillOfTheForsakenAction(botAI); }
|
||||
static Action* stoneform(PlayerbotAI* botAI) { return new CastStoneformAction(botAI); }
|
||||
static Action* escape_artist(PlayerbotAI* botAI) { return new CastEscapeArtistAction(botAI); }
|
||||
static Action* use_trinket(PlayerbotAI* botAI) { return new UseTrinketAction(botAI); }
|
||||
static Action* auto_talents(PlayerbotAI* botAI) { return new AutoSetTalentsAction(botAI); }
|
||||
static Action* auto_share_quest(PlayerbotAI* ai) { return new AutoShareQuestAction(ai); }
|
||||
@@ -454,6 +484,8 @@ private:
|
||||
static Action* new_rpg_wander_npc(PlayerbotAI* ai) { return new NewRpgWanderNpcAction(ai); }
|
||||
static Action* new_rpg_do_quest(PlayerbotAI* ai) { return new NewRpgDoQuestAction(ai); }
|
||||
static Action* new_rpg_travel_flight(PlayerbotAI* ai) { return new NewRpgTravelFlightAction(ai); }
|
||||
static Action* new_rpg_outdoor_pvp(PlayerbotAI* ai) { return new NewRpgOutdoorPvpAction(ai); }
|
||||
static Action* wait_for_attack_keep_safe_distance(PlayerbotAI* ai) { return new WaitForAttackKeepSafeDistanceAction(ai); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AcceptBattlegroundInvitationAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACCEPTBATTLEGROUNDINVITATIONACTION_H
|
||||
#define _PLAYERBOT_ACCEPTBATTLEGROUNDINVITATIONACTION_H
|
||||
#ifndef PLAYERBOTS_ACCEPTBATTLEGROUNDINVITATIONACTION_H
|
||||
#define PLAYERBOTS_ACCEPTBATTLEGROUNDINVITATIONACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AcceptDuelAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACCEPTDUELACTION_H
|
||||
#define _PLAYERBOT_ACCEPTDUELACTION_H
|
||||
#ifndef PLAYERBOTS_ACCEPTDUELACTION_H
|
||||
#define PLAYERBOTS_ACCEPTDUELACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AcceptInvitationAction.h"
|
||||
@@ -9,6 +10,7 @@
|
||||
#include "ObjectAccessor.h"
|
||||
#include "PlayerbotAIConfig.h"
|
||||
#include "PlayerbotSecurity.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
#include "WorldPacket.h"
|
||||
|
||||
@@ -55,7 +57,7 @@ bool AcceptInvitationAction::Execute(Event event)
|
||||
botAI->ChangeStrategy("+follow,-lfg,-bg", BOT_STATE_NON_COMBAT);
|
||||
botAI->Reset();
|
||||
|
||||
botAI->TellMaster("Здравствуйте.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault("hello", "Hello", {}));
|
||||
|
||||
if (sPlayerbotAIConfig.summonWhenGroup && bot->GetDistance(inviter) > sPlayerbotAIConfig.sightDistance)
|
||||
{
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACCEPTINVITATIONACTION_H
|
||||
#define _PLAYERBOT_ACCEPTINVITATIONACTION_H
|
||||
#ifndef PLAYERBOTS_ACCEPTINVITATIONACTION_H
|
||||
#define PLAYERBOTS_ACCEPTINVITATIONACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "UseMeetingStoneAction.h"
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AcceptQuestAction.h"
|
||||
|
||||
#include "Event.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool AcceptAllQuestsAction::ProcessQuest(Quest const* quest, Object* questGiver)
|
||||
@@ -18,7 +20,11 @@ bool AcceptAllQuestsAction::ProcessQuest(Quest const* quest, Object* questGiver)
|
||||
if (botAI->HasStrategy("debug quest", BotState::BOT_STATE_NON_COMBAT) || botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
LOG_INFO("playerbots", "{} => Quest [{}] accepted", bot->GetName(), quest->GetTitle());
|
||||
bot->Say("Задание [" + text_quest + "] accepted", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_accept_debug",
|
||||
"Quest [%quest] accepted",
|
||||
{{"%quest", text_quest}});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -113,7 +119,8 @@ bool AcceptQuestShareAction::Execute(Event event)
|
||||
if (bot->HasQuest(quest))
|
||||
{
|
||||
bot->SetDivider(ObjectGuid::Empty);
|
||||
botAI->TellError("У меня уже есть это задание");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_already_have_error", "I have this quest", {}));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -121,7 +128,8 @@ bool AcceptQuestShareAction::Execute(Event event)
|
||||
{
|
||||
// can't take quest
|
||||
bot->SetDivider(ObjectGuid::Empty);
|
||||
botAI->TellError("Я не могу взять это задание");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_cant_take_error", "I can't take this quest", {}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -149,7 +157,8 @@ bool AcceptQuestShareAction::Execute(Event event)
|
||||
bot->CastSpell(bot, qInfo->GetSrcSpell(), true);
|
||||
}
|
||||
|
||||
botAI->TellMaster("Задание принято.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_accept", "Quest accepted", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACCEPTQUESTACTION_H
|
||||
#define _PLAYERBOT_ACCEPTQUESTACTION_H
|
||||
#ifndef PLAYERBOTS_ACCEPTQUESTACTION_H
|
||||
#define PLAYERBOTS_ACCEPTQUESTACTION_H
|
||||
|
||||
#include "QuestAction.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AcceptResurrectAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ACCEPTRESURRECTACTION_H
|
||||
#define _PLAYERBOT_ACCEPTRESURRECTACTION_H
|
||||
#ifndef PLAYERBOTS_ACCEPTRESURRECTACTION_H
|
||||
#define PLAYERBOTS_ACCEPTRESURRECTACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AddLootAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ADDLOOTACTION_H
|
||||
#define _PLAYERBOT_ADDLOOTACTION_H
|
||||
#ifndef PLAYERBOTS_ADDLOOTACTION_H
|
||||
#define PLAYERBOTS_ADDLOOTACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AreaTriggerAction.h"
|
||||
|
||||
#include "Event.h"
|
||||
#include "LastMovementValue.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
#include "Transport.h"
|
||||
|
||||
@@ -36,7 +38,8 @@ bool ReachAreaTriggerAction::Execute(Event event)
|
||||
|
||||
if (bot->GetMapId() != at->map)
|
||||
{
|
||||
botAI->TellError("Я не последую за вами: вы слишком далеко");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"area_trigger_follow_too_far_error", "I won't follow: too far away", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -51,7 +54,8 @@ bool ReachAreaTriggerAction::Execute(Event event)
|
||||
|
||||
float distance = bot->GetDistance(at->x, at->y, at->z);
|
||||
float delay = 1000.0f * distance / bot->GetSpeed(MOVE_RUN) + sPlayerbotAIConfig.reactDelay;
|
||||
botAI->TellError("Подождите меня");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"area_trigger_wait_for_me", "Wait for me", {}));
|
||||
botAI->SetNextCheckDelay(delay);
|
||||
context->GetValue<LastMovement&>("last area trigger")->Get().lastAreaTrigger = triggerId;
|
||||
|
||||
@@ -76,6 +80,6 @@ bool AreaTriggerAction::Execute(Event /*event*/)
|
||||
p.rpos(0);
|
||||
bot->GetSession()->HandleAreaTriggerOpcode(p);
|
||||
|
||||
botAI->TellMaster("Здравствуйте.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault("hello", "Hello", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_AREATRIGGERACTION_H
|
||||
#define _PLAYERBOT_AREATRIGGERACTION_H
|
||||
#ifndef PLAYERBOTS_AREATRIGGERACTION_H
|
||||
#define PLAYERBOTS_AREATRIGGERACTION_H
|
||||
|
||||
#include "MovementActions.h"
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ArenaTeamActions.h"
|
||||
|
||||
#include "ArenaTeamMgr.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool ArenaTeamAcceptAction::Execute(Event event)
|
||||
@@ -31,7 +33,9 @@ bool ArenaTeamAcceptAction::Execute(Event event)
|
||||
if (bot->GetArenaTeamId(at->GetSlot()))
|
||||
{
|
||||
// bot is already in an arena team
|
||||
bot->Say("У меня уже есть такая команда", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"arena_team_already_in_team", "Sorry, I am already in such team", {});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
accept = false;
|
||||
}
|
||||
|
||||
@@ -39,7 +43,9 @@ bool ArenaTeamAcceptAction::Execute(Event event)
|
||||
{
|
||||
WorldPacket data(CMSG_ARENA_TEAM_ACCEPT);
|
||||
bot->GetSession()->HandleArenaTeamAcceptOpcode(data);
|
||||
bot->Say("Спасибо за приглашение!", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"arena_team_thanks_for_invite", "Thanks for the invite!", {});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
LOG_INFO("playerbots", "Bot {} <{}> accepts Arena Team invite", bot->GetGUID().ToString().c_str(),
|
||||
bot->GetName().c_str());
|
||||
return true;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ARENATEAMACTION_H
|
||||
#define _PLAYERBOT_ARENATEAMACTION_H
|
||||
#ifndef PLAYERBOTS_ARENATEAMACTIONS_H
|
||||
#define PLAYERBOTS_ARENATEAMACTIONS_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AttackAction.h"
|
||||
@@ -10,10 +11,12 @@
|
||||
#include "LastMovementValue.h"
|
||||
#include "LootObjectStack.h"
|
||||
#include "PlayerbotAI.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
#include "ServerFacade.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "Unit.h"
|
||||
#include "WaitForAttackStrategy.h"
|
||||
|
||||
bool AttackAction::Execute(Event /*event*/)
|
||||
{
|
||||
@@ -37,7 +40,8 @@ bool AttackMyTargetAction::Execute(Event /*event*/)
|
||||
if (!guid)
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("У вас нет цели");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"pull_no_target_error", "You have no target", {}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -52,26 +56,11 @@ bool AttackMyTargetAction::Execute(Event /*event*/)
|
||||
|
||||
bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
{
|
||||
Unit* oldTarget = context->GetValue<Unit*>("current target")->Get();
|
||||
bool shouldMelee = bot->IsWithinMeleeRange(target) || botAI->IsMelee(bot);
|
||||
|
||||
bool sameTarget = oldTarget == target && bot->GetVictim() == target;
|
||||
bool inCombat = botAI->GetState() == BOT_STATE_COMBAT;
|
||||
bool sameAttackMode = bot->HasUnitState(UNIT_STATE_MELEE_ATTACKING) == shouldMelee;
|
||||
|
||||
if (bot->GetMotionMaster()->GetCurrentMovementGeneratorType() == FLIGHT_MOTION_TYPE ||
|
||||
bot->HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("Я не могу атаковать в полёте");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!target)
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("У меня нет цели");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_no_target_error", "I have no target", {}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -79,7 +68,20 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
if (!target->IsInWorld())
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError(std::string(target->GetName()) + " is no longer in the world.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_target_not_in_world_error",
|
||||
"%target is no longer in the world.",
|
||||
{{"%target", target->GetName()}}));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bot->GetMotionMaster()->GetCurrentMovementGeneratorType() == FLIGHT_MOTION_TYPE ||
|
||||
bot->HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_in_flight_error", "I cannot attack in flight", {}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -91,7 +93,10 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
sPlayerbotAIConfig.IsPvpProhibited(target->GetZoneId(), target->GetAreaId())))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("Я не могу атаковать игроков в зонах, где запрещено PvP.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_pvp_prohibited_error",
|
||||
"I cannot attack other players in PvP prohibited areas.",
|
||||
{}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -99,7 +104,10 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
if (bot->IsFriendlyTo(target))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError(std::string(target->GetName()) + " is friendly to me.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_target_friendly_error",
|
||||
"%target is friendly to me.",
|
||||
{{"%target", target->GetName()}}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -107,7 +115,10 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
if (target->isDead())
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError(std::string(target->GetName()) + " is dead.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_target_dead_error",
|
||||
"%target is dead.",
|
||||
{{"%target", target->GetName()}}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -115,15 +126,33 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
if (!bot->IsWithinLOSInMap(target))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError(std::string(target->GetName()) + " is not in my sight.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_target_not_in_sight_error",
|
||||
"%target is not in my sight.",
|
||||
{{"%target", target->GetName()}}));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Infantry attacks are not allowed from vehicles drivers.
|
||||
// Check is needed to stop some auto-attack situations.
|
||||
if (botAI->IsInVehicle() && !botAI->IsInVehicle(false, false, true))
|
||||
return false;
|
||||
|
||||
Unit* oldTarget = context->GetValue<Unit*>("current target")->Get();
|
||||
bool shouldMelee = bot->IsWithinMeleeRange(target) || botAI->IsMelee(bot);
|
||||
|
||||
bool sameTarget = oldTarget == target && bot->GetVictim() == target;
|
||||
bool inCombat = botAI->GetState() == BOT_STATE_COMBAT;
|
||||
bool sameAttackMode = bot->HasUnitState(UNIT_STATE_MELEE_ATTACKING) == shouldMelee;
|
||||
|
||||
if (sameTarget && inCombat && sameAttackMode)
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("Я уже атакую: " + std::string(target->GetName()) + ".");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_already_attacking_error",
|
||||
"I am already attacking %target.",
|
||||
{{"%target", target->GetName()}}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -131,7 +160,8 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
if (!bot->IsValidAttackTarget(target))
|
||||
{
|
||||
if (verbose)
|
||||
botAI->TellError("Я не могу атаковать недопустимую цель.");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attack_invalid_target_error", "I cannot attack an invalid target.", {}));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -145,8 +175,7 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
ObjectGuid guid = target->GetGUID();
|
||||
bot->SetSelection(target->GetGUID());
|
||||
|
||||
context->GetValue<Unit*>("old target")->Set(oldTarget);
|
||||
|
||||
context->GetValue<Unit*>("old target")->Set(oldTarget);
|
||||
context->GetValue<Unit*>("current target")->Set(target);
|
||||
context->GetValue<LootObjectStack*>("available loot")->Get()->Add(guid);
|
||||
|
||||
@@ -164,7 +193,8 @@ bool AttackAction::Attack(Unit* target, bool /*with_pet*/ /*true*/)
|
||||
|
||||
botAI->ChangeEngine(BOT_STATE_COMBAT);
|
||||
|
||||
bot->Attack(target, shouldMelee);
|
||||
if (!WaitForAttackStrategy::ShouldWait(botAI))
|
||||
bot->Attack(target, shouldMelee);
|
||||
/* prevent pet dead immediately in group */
|
||||
// if (bot->GetMap()->IsDungeon() && bot->GetGroup() && !target->IsInCombat())
|
||||
// {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_ATTACKACTION_H
|
||||
#define _PLAYERBOT_ATTACKACTION_H
|
||||
#ifndef PLAYERBOTS_ATTACKACTION_H
|
||||
#define PLAYERBOTS_ATTACKACTION_H
|
||||
|
||||
#include "MovementActions.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "AutoMaintenanceOnLevelupAction.h"
|
||||
|
||||
#include "SpellMgr.h"
|
||||
@@ -12,8 +18,8 @@ bool AutoMaintenanceOnLevelupAction::Execute(Event /*event*/)
|
||||
{
|
||||
AutoPickTalents();
|
||||
AutoLearnSpell();
|
||||
AutoUpgradeEquip();
|
||||
AutoTeleportForLevel();
|
||||
AutoUpgradeEquip();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -21,13 +27,11 @@ bool AutoMaintenanceOnLevelupAction::Execute(Event /*event*/)
|
||||
void AutoMaintenanceOnLevelupAction::AutoTeleportForLevel()
|
||||
{
|
||||
if (!sPlayerbotAIConfig.autoTeleportForLevel || !sRandomPlayerbotMgr.IsRandomBot(bot))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (botAI->HasRealPlayerMaster())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
sRandomPlayerbotMgr.RandomTeleportForLevel(bot);
|
||||
return;
|
||||
}
|
||||
@@ -73,7 +77,7 @@ void AutoMaintenanceOnLevelupAction::LearnSpells(std::ostringstream* out)
|
||||
LearnQuestSpells(out);
|
||||
}
|
||||
|
||||
void AutoMaintenanceOnLevelupAction::LearnTrainerSpells(std::ostringstream* out)
|
||||
void AutoMaintenanceOnLevelupAction::LearnTrainerSpells(std::ostringstream* /*out*/)
|
||||
{
|
||||
PlayerbotFactory factory(bot, bot->GetLevel());
|
||||
factory.InitSkills();
|
||||
@@ -89,21 +93,17 @@ void AutoMaintenanceOnLevelupAction::LearnQuestSpells(std::ostringstream* out)
|
||||
{
|
||||
Quest const* quest = i->second;
|
||||
|
||||
// only process class-specific quests to learn class-related spells, cuz
|
||||
// we don't want all these bunch of entries to be handled!
|
||||
if (!quest->GetRequiredClasses())
|
||||
if (!quest->GetRequiredClasses() || quest->IsRepeatable() || quest->GetMinLevel() < 10 ||
|
||||
quest->GetMinLevel() > bot->GetLevel())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// skip quests that are repeatable, too low level, or above bots' level
|
||||
if (quest->IsRepeatable() || quest->GetMinLevel() < 10 || quest->GetMinLevel() > bot->GetLevel())
|
||||
continue;
|
||||
|
||||
// skip if bot doesnt satisfy class, race, or skill requirements
|
||||
if (!bot->SatisfyQuestClass(quest, false) || !bot->SatisfyQuestRace(quest, false) ||
|
||||
!bot->SatisfyQuestSkill(quest, false))
|
||||
{
|
||||
continue;
|
||||
|
||||
// use the same logic and impl from Player::learnQuestRewardedSpells
|
||||
}
|
||||
|
||||
int32 spellId = quest->GetRewSpellCast();
|
||||
if (!spellId)
|
||||
@@ -113,31 +113,26 @@ void AutoMaintenanceOnLevelupAction::LearnQuestSpells(std::ostringstream* out)
|
||||
if (!spellInfo)
|
||||
continue;
|
||||
|
||||
// xinef: find effect with learn spell and check if we have this spell
|
||||
bool found = false;
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
{
|
||||
if (spellInfo->Effects[i].Effect == SPELL_EFFECT_LEARN_SPELL && spellInfo->Effects[i].TriggerSpell &&
|
||||
!bot->HasSpell(spellInfo->Effects[i].TriggerSpell))
|
||||
{
|
||||
// pusywizard: don't re-add profession specialties!
|
||||
if (SpellInfo const* triggeredInfo = sSpellMgr->GetSpellInfo(spellInfo->Effects[i].TriggerSpell))
|
||||
if (triggeredInfo->Effects[0].Effect == SPELL_EFFECT_TRADE_SKILL)
|
||||
break; // pussywizard: break and not cast the spell (found is false)
|
||||
break;
|
||||
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// xinef: we know the spell, continue
|
||||
if (!found)
|
||||
continue;
|
||||
|
||||
bot->CastSpell(bot, spellId, true);
|
||||
|
||||
// Check if RewardDisplaySpell is set to output the proper spell learned
|
||||
// after processing quests. Output the original RewardSpell otherwise.
|
||||
uint32 rewSpellId = quest->GetRewSpell();
|
||||
if (rewSpellId)
|
||||
{
|
||||
@@ -167,12 +162,11 @@ std::string const AutoMaintenanceOnLevelupAction::FormatSpell(SpellInfo const* s
|
||||
|
||||
void AutoMaintenanceOnLevelupAction::AutoUpgradeEquip()
|
||||
{
|
||||
if (!sPlayerbotAIConfig.autoUpgradeEquip || !sRandomPlayerbotMgr.IsRandomBot(bot))
|
||||
if (!sRandomPlayerbotMgr.IsRandomBot(bot))
|
||||
return;
|
||||
|
||||
PlayerbotFactory factory(bot, bot->GetLevel());
|
||||
|
||||
// Clean up old consumables before adding new ones
|
||||
factory.CleanupConsumables();
|
||||
|
||||
factory.InitAmmo();
|
||||
@@ -181,9 +175,6 @@ void AutoMaintenanceOnLevelupAction::AutoUpgradeEquip()
|
||||
factory.InitConsumables();
|
||||
factory.InitPotions();
|
||||
|
||||
if (!sPlayerbotAIConfig.equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig.equipmentPersistenceLevel)
|
||||
{
|
||||
if (sPlayerbotAIConfig.incrementalGearInit)
|
||||
factory.InitEquipment(true);
|
||||
}
|
||||
if (sPlayerbotAIConfig.autoUpgradeEquip)
|
||||
factory.InitEquipment(true);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_AUTOTELEPORTFORLEVELACTION_H
|
||||
#define _PLAYERBOT_AUTOTELEPORTFORLEVELACTION_H
|
||||
#ifndef PLAYERBOTS_AUTOMAINTENANCEONLEVELUPACTION_H
|
||||
#define PLAYERBOTS_AUTOMAINTENANCEONLEVELUPACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "BankAction.h"
|
||||
|
||||
#include "Event.h"
|
||||
#include "ItemCountValue.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool BankAction::Execute(Event event)
|
||||
@@ -23,11 +25,12 @@ bool BankAction::Execute(Event event)
|
||||
return ExecuteBank(text, npc);
|
||||
}
|
||||
|
||||
botAI->TellError("Поблизости нет банкира");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"bank_no_banker_nearby_error", "Cannot find banker nearby", {}));
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BankAction::ExecuteBank(std::string const text, Unit* bank)
|
||||
bool BankAction::ExecuteBank(std::string const text, Unit* /*bank*/)
|
||||
{
|
||||
if (text.empty() || text == "?")
|
||||
{
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BANKACTION_H
|
||||
#define _PLAYERBOT_BANKACTION_H
|
||||
#ifndef PLAYERBOTS_BANKACTION_H
|
||||
#define PLAYERBOTS_BANKACTION_H
|
||||
|
||||
#include "InventoryAction.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "BattleGroundJoinAction.h"
|
||||
@@ -24,8 +25,6 @@ bool BGJoinAction::Execute(Event /*event*/)
|
||||
|
||||
BattlegroundQueueTypeId queueTypeId = (BattlegroundQueueTypeId)bgList[urand(0, bgList.size() - 1)];
|
||||
BattlegroundTypeId bgTypeId = BattlegroundMgr::BGTemplateId(queueTypeId);
|
||||
BattlegroundBracketId bracketId;
|
||||
bool isArena = false;
|
||||
bool isRated = false;
|
||||
|
||||
Battleground* bg = sBattlegroundMgr->GetBattlegroundTemplate(bgTypeId);
|
||||
@@ -37,12 +36,8 @@ bool BGJoinAction::Execute(Event /*event*/)
|
||||
if (!pvpDiff)
|
||||
return false;
|
||||
|
||||
bracketId = pvpDiff->GetBracketId();
|
||||
|
||||
if (ArenaType type = ArenaType(BattlegroundMgr::BGArenaType(queueTypeId)))
|
||||
{
|
||||
isArena = true;
|
||||
|
||||
std::vector<uint32>::iterator i = find(ratedList.begin(), ratedList.end(), queueTypeId);
|
||||
if (i != ratedList.end())
|
||||
isRated = true;
|
||||
@@ -349,7 +344,7 @@ bool BGJoinAction::isUseful()
|
||||
return false;
|
||||
|
||||
// check Deserter debuff
|
||||
if (!bot->CanJoinToBattleground())
|
||||
if (bot->IsDeserter())
|
||||
return false;
|
||||
|
||||
// check if has free queue slots (pointless as already making sure not in queue)
|
||||
@@ -408,8 +403,6 @@ bool BGJoinAction::JoinQueue(uint32 type)
|
||||
|
||||
bracketId = pvpDiff->GetBracketId();
|
||||
|
||||
uint32 BracketSize = bg->GetMaxPlayersPerTeam() * 2;
|
||||
uint32 TeamSize = bg->GetMaxPlayersPerTeam();
|
||||
TeamId teamId = bot->GetTeamId();
|
||||
|
||||
// check if already in queue
|
||||
@@ -486,8 +479,6 @@ bool BGJoinAction::JoinQueue(uint32 type)
|
||||
if (isArena)
|
||||
{
|
||||
isArena = true;
|
||||
BracketSize = type * 2;
|
||||
TeamSize = type;
|
||||
isRated = botAI->GetAiObjectContext()->GetValue<uint32>("arena type")->Get();
|
||||
|
||||
if (joinAsGroup)
|
||||
@@ -544,21 +535,18 @@ bool BGJoinAction::JoinQueue(uint32 type)
|
||||
|
||||
botAI->GetAiObjectContext()->GetValue<uint32>("bg type")->Set(0);
|
||||
|
||||
WorldPacket* packet = nullptr;
|
||||
if (!isArena)
|
||||
{
|
||||
WorldPacket* packet = new WorldPacket(CMSG_BATTLEMASTER_JOIN, 20);
|
||||
packet = new WorldPacket(CMSG_BATTLEMASTER_JOIN, 20);
|
||||
*packet << bot->GetGUID() << bgTypeId_ << instanceId << joinAsGroup;
|
||||
/// FIX race condition
|
||||
// bot->GetSession()->HandleBattlemasterJoinOpcode(packet);
|
||||
bot->GetSession()->QueuePacket(packet);
|
||||
}
|
||||
else
|
||||
{
|
||||
WorldPacket arena_packet(CMSG_BATTLEMASTER_JOIN_ARENA, 20);
|
||||
arena_packet << unit->GetGUID() << arenaslot << asGroup << uint8(isRated);
|
||||
bot->GetSession()->HandleBattlemasterJoinArena(arena_packet);
|
||||
packet = new WorldPacket(CMSG_BATTLEMASTER_JOIN_ARENA, 20);
|
||||
*packet << unit->GetGUID() << arenaslot << asGroup << uint8(isRated);
|
||||
}
|
||||
|
||||
bot->GetSession()->QueuePacket(packet);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BATTLEGROUNDJOINACTION_H
|
||||
#define _PLAYERBOT_BATTLEGROUNDJOINACTION_H
|
||||
#ifndef PLAYERBOTS_BATTLEGROUNDJOINACTION_H
|
||||
#define PLAYERBOTS_BATTLEGROUNDJOINACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "DBCEnums.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "BattleGroundTactics.h"
|
||||
@@ -1299,7 +1300,7 @@ std::string const BGTactics::HandleConsoleCommandPrivate(WorldSession* session,
|
||||
Player* player = session->GetPlayer();
|
||||
if (!player)
|
||||
return "Error - session player not found";
|
||||
if (player->GetSession()->GetSecurity() < SEC_GAMEMASTER)
|
||||
if (!player->CanBeGameMaster())
|
||||
return "Command can only be used by a GM";
|
||||
Battleground* bg = player->GetBattleground();
|
||||
if (!bg)
|
||||
@@ -1368,7 +1369,7 @@ std::string const BGTactics::HandleConsoleCommandPrivate(WorldSession* session,
|
||||
uint32 max = vPaths->size() - 1;
|
||||
if (num >= 0) // num specified or found
|
||||
{
|
||||
if (num > max)
|
||||
if (uint32(num) > max)
|
||||
return fmt::format("Path {} of range of 0 - {}", num, max);
|
||||
min = num;
|
||||
max = num;
|
||||
@@ -2177,7 +2178,7 @@ bool BGTactics::selectObjective(bool reset)
|
||||
|
||||
uint8 defendersProhab = 3; // Default balanced
|
||||
|
||||
switch (strategy)
|
||||
switch (static_cast<uint8>(strategy))
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
@@ -2497,7 +2498,6 @@ bool BGTactics::selectObjective(bool reset)
|
||||
EYBotStrategy strategyHorde = static_cast<EYBotStrategy>(GetBotStrategyForTeam(bg, TEAM_HORDE));
|
||||
EYBotStrategy strategyAlliance = static_cast<EYBotStrategy>(GetBotStrategyForTeam(bg, TEAM_ALLIANCE));
|
||||
EYBotStrategy strategy = (team == TEAM_ALLIANCE) ? strategyAlliance : strategyHorde;
|
||||
EYBotStrategy enemyStrategy = (team == TEAM_ALLIANCE) ? strategyHorde : strategyAlliance;
|
||||
|
||||
auto IsOwned = [&](uint32 nodeId) -> bool
|
||||
{ return eyeOfTheStormBG->GetCapturePointInfo(nodeId)._ownerTeamId == team; };
|
||||
@@ -3231,7 +3231,6 @@ bool BGTactics::selectObjectiveWp(std::vector<BattleBotPath*> const& vPaths)
|
||||
if (bgType == BATTLEGROUND_RB)
|
||||
bgType = bg->GetBgTypeID(true);
|
||||
|
||||
PositionMap& posMap = context->GetValue<PositionMap&>("position")->Get();
|
||||
PositionInfo pos = context->GetValue<PositionMap&>("position")->Get()["bg objective"];
|
||||
if (!pos.isSet())
|
||||
return false;
|
||||
@@ -3326,7 +3325,7 @@ bool BGTactics::selectObjectiveWp(std::vector<BattleBotPath*> const& vPaths)
|
||||
|
||||
// don't pick path where bot is already closest to the paths closest point to target (it means path cant lead it
|
||||
// anywhere) don't pick path where closest point is too far away
|
||||
if (closestPointIndex == (reverse ? 0 : path->size() - 1) || closestPointDistToBot > botDistanceLimit)
|
||||
if (closestPointIndex == int(reverse ? 0 : path->size() - 1) || closestPointDistToBot > botDistanceLimit)
|
||||
continue;
|
||||
|
||||
// creates a score based on dist-to-bot and dist-to-destination, where lower is better, and dist-to-bot is more
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BATTLEGROUNDTACTICSACTION_H
|
||||
#define _PLAYERBOT_BATTLEGROUNDTACTICSACTION_H
|
||||
#ifndef PLAYERBOTS_BATTLEGROUNDTACTICS_H
|
||||
#define PLAYERBOTS_BATTLEGROUNDTACTICS_H
|
||||
|
||||
#include "BattlegroundAV.h"
|
||||
#include "MovementActions.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <HunterBuffStrategies.h>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BOSSAURAACTION_H
|
||||
#define _PLAYERBOT_BOSSAURAACTION_H
|
||||
#ifndef PLAYERBOTS_BOSSAURAACTIONS_H
|
||||
#define PLAYERBOTS_BOSSAURAACTIONS_H
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "BuffAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BUFFACTION_H
|
||||
#define _PLAYERBOT_BUFFACTION_H
|
||||
#ifndef PLAYERBOTS_BUFFACTION_H
|
||||
#define PLAYERBOTS_BUFFACTION_H
|
||||
|
||||
#include "InventoryAction.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "BuyAction.h"
|
||||
@@ -213,13 +214,7 @@ bool BuyAction::Execute(Event event)
|
||||
}
|
||||
}
|
||||
|
||||
if (!vendored)
|
||||
{
|
||||
botAI->TellError("Поблизости нет торговцев");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return vendored;
|
||||
}
|
||||
|
||||
bool BuyAction::BuyItem(VendorItemData const* tItems, ObjectGuid vendorguid, ItemTemplate const* proto)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_BUYACTION_H
|
||||
#define _PLAYERBOT_BUYACTION_H
|
||||
#ifndef PLAYERBOTS_BUYACTION_H
|
||||
#define PLAYERBOTS_BUYACTION_H
|
||||
|
||||
#include "InventoryAction.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CancelChannelAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CANCELCHANNELACTION_H
|
||||
#define _PLAYERBOT_CANCELCHANNELACTION_H
|
||||
#ifndef PLAYERBOTS_CANCELCHANNELACTION_H
|
||||
#define PLAYERBOTS_CANCELCHANNELACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CastCustomSpellAction.h"
|
||||
@@ -143,14 +144,17 @@ bool CastCustomSpellAction::Execute(Event event)
|
||||
std::ostringstream spellName;
|
||||
spellName << ChatHelper::FormatSpell(spellInfo) << " on ";
|
||||
|
||||
bool const hasItemTarget = itemTarget &&
|
||||
(spellInfo->Targets & TARGET_FLAG_ITEM || spellInfo->Targets & TARGET_FLAG_GAMEOBJECT_ITEM);
|
||||
|
||||
if (bot->GetTrader())
|
||||
spellName << "trade item";
|
||||
else if (itemTarget)
|
||||
else if (hasItemTarget)
|
||||
spellName << chat->FormatItem(itemTarget->GetTemplate());
|
||||
else if (target == bot)
|
||||
spellName << "self";
|
||||
else
|
||||
else if (target != bot)
|
||||
spellName << target->GetName();
|
||||
else
|
||||
spellName << "self";
|
||||
|
||||
if (!bot->GetTrader() && !botAI->CanCastSpell(spell, target, true, itemTarget))
|
||||
{
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CASTCUSTOMSPELLACTION_H
|
||||
#define _PLAYERBOT_CASTCUSTOMSPELLACTION_H
|
||||
#ifndef PLAYERBOTS_CASTCUSTOMSPELLACTION_H
|
||||
#define PLAYERBOTS_CASTCUSTOMSPELLACTION_H
|
||||
|
||||
#include "ListSpellsAction.h"
|
||||
|
||||
@@ -21,7 +22,7 @@ public:
|
||||
}
|
||||
|
||||
bool Execute(Event event) override;
|
||||
virtual std::string const castString(WorldObject* target) { return "cast"; }
|
||||
virtual std::string const castString(WorldObject* /*target*/) { return "cast"; }
|
||||
|
||||
protected:
|
||||
bool ncCast = false;
|
||||
@@ -49,7 +50,7 @@ public:
|
||||
|
||||
bool isUseful() override { return false; }
|
||||
virtual bool AcceptSpell(SpellInfo const* spellInfo);
|
||||
virtual uint32 GetSpellPriority(SpellInfo const* spellInfo) { return 1; }
|
||||
virtual uint32 GetSpellPriority(SpellInfo const* /*spellInfo*/) { return 1; }
|
||||
virtual bool castSpell(uint32 spellId, WorldObject* wo);
|
||||
bool Execute(Event event) override;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChangeChatAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHANGECHATACTION_H
|
||||
#define _PLAYERBOT_CHANGECHATACTION_H
|
||||
#ifndef PLAYERBOTS_CHANGECHATACTION_H
|
||||
#define PLAYERBOTS_CHANGECHATACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChangeStrategyAction.h"
|
||||
@@ -9,28 +10,36 @@
|
||||
#include "PlayerbotRepository.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
// Helper function for prefixes used by combat and non-combat strategy commands.
|
||||
static void HandleStrategyCommon(PlayerbotAI* botAI, std::string const& text, BotState state)
|
||||
{
|
||||
std::vector<std::string> splitted = split(text, ',');
|
||||
for (std::vector<std::string>::iterator i = splitted.begin(); i != splitted.end(); i++)
|
||||
{
|
||||
const char* name = i->c_str();
|
||||
switch (name[0])
|
||||
{
|
||||
case '+':
|
||||
case '-':
|
||||
case '~':
|
||||
PlayerbotRepository::instance().Save(botAI);
|
||||
break;
|
||||
case '!':
|
||||
botAI->SelectiveResetStrategies(state);
|
||||
PlayerbotRepository::instance().Save(botAI);
|
||||
break;
|
||||
case '?':
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool ChangeCombatStrategyAction::Execute(Event event)
|
||||
{
|
||||
std::string const text = event.getParam();
|
||||
botAI->ChangeStrategy(text.empty() ? getName() : text, BOT_STATE_COMBAT);
|
||||
if (event.GetSource() == "co")
|
||||
{
|
||||
std::vector<std::string> splitted = split(text, ',');
|
||||
for (std::vector<std::string>::iterator i = splitted.begin(); i != splitted.end(); i++)
|
||||
{
|
||||
const char* name = i->c_str();
|
||||
switch (name[0])
|
||||
{
|
||||
case '+':
|
||||
case '-':
|
||||
case '~':
|
||||
PlayerbotRepository::instance().Save(botAI);
|
||||
break;
|
||||
case '?':
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
HandleStrategyCommon(botAI, text, BOT_STATE_COMBAT);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -41,34 +50,18 @@ bool ChangeNonCombatStrategyAction::Execute(Event event)
|
||||
|
||||
uint32 account = bot->GetSession()->GetAccountId();
|
||||
if (sPlayerbotAIConfig.IsInRandomAccountList(account) && botAI->GetMaster() &&
|
||||
botAI->GetMaster()->GetSession()->GetSecurity() < SEC_GAMEMASTER)
|
||||
!botAI->GetMaster()->CanBeGameMaster())
|
||||
{
|
||||
if (text.find("loot") != std::string::npos || text.find("gather") != std::string::npos)
|
||||
if (text.find("loot") != std::string::npos)
|
||||
{
|
||||
botAI->TellError("Можно изменять любую стратегию, кроме loot и gather");
|
||||
botAI->TellError("You can change any strategy except loot");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
botAI->ChangeStrategy(text, BOT_STATE_NON_COMBAT);
|
||||
if (event.GetSource() == "nc")
|
||||
{
|
||||
std::vector<std::string> splitted = split(text, ',');
|
||||
for (std::vector<std::string>::iterator i = splitted.begin(); i != splitted.end(); i++)
|
||||
{
|
||||
const char* name = i->c_str();
|
||||
switch (name[0])
|
||||
{
|
||||
case '+':
|
||||
case '-':
|
||||
case '~':
|
||||
PlayerbotRepository::instance().Save(botAI);
|
||||
break;
|
||||
case '?':
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
HandleStrategyCommon(botAI, text, BOT_STATE_NON_COMBAT);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHANGESTRATEGYACTION_H
|
||||
#define _PLAYERBOT_CHANGESTRATEGYACTION_H
|
||||
#ifndef PLAYERBOTS_CHANGESTRATEGYACTION_H
|
||||
#define PLAYERBOTS_CHANGESTRATEGYACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChangeTalentsAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHANGETALENTSACTION_H
|
||||
#define _PLAYERBOT_CHANGETALENTSACTION_H
|
||||
#ifndef PLAYERBOTS_CHANGETALENTSACTION_H
|
||||
#define PLAYERBOTS_CHANGETALENTSACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "Talentspec.h"
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChatShortcutActions.h"
|
||||
|
||||
#include "Event.h"
|
||||
#include "Formations.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
#include "PositionValue.h"
|
||||
|
||||
@@ -68,13 +70,11 @@ bool FollowChatShortcutAction::Execute(Event /*event*/)
|
||||
std::string const target = formation->GetTargetName();
|
||||
bool moved = false;
|
||||
if (!target.empty())
|
||||
{
|
||||
moved = Follow(AI_VALUE(Unit*, target));
|
||||
}
|
||||
else
|
||||
{
|
||||
WorldLocation loc = formation->GetLocation();
|
||||
if (Formation::IsNullLocation(loc) || loc.GetMapId() == -1)
|
||||
if (Formation::IsNullLocation(loc) || loc.GetMapId() == MAPID_INVALID)
|
||||
return false;
|
||||
|
||||
MovementPriority priority = botAI->GetState() == BOT_STATE_COMBAT ? MovementPriority::MOVEMENT_COMBAT : MovementPriority::MOVEMENT_NORMAL;
|
||||
@@ -82,14 +82,13 @@ bool FollowChatShortcutAction::Execute(Event /*event*/)
|
||||
true, priority);
|
||||
}
|
||||
|
||||
if (Pet* pet = bot->GetPet())
|
||||
{
|
||||
if (bot->GetPet())
|
||||
botAI->PetFollow();
|
||||
}
|
||||
|
||||
if (moved)
|
||||
{
|
||||
botAI->TellMaster("Следую за целью.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"following", "Following", {}));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -112,7 +111,8 @@ bool FollowChatShortcutAction::Execute(Event /*event*/)
|
||||
}
|
||||
*/
|
||||
|
||||
botAI->TellMaster("Следую за целью.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"following", "Following", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,8 @@ bool StayChatShortcutAction::Execute(Event /*event*/)
|
||||
SetReturnPosition(bot->GetPositionX(), bot->GetPositionY(), bot->GetPositionZ());
|
||||
SetStayPosition(bot->GetPositionX(), bot->GetPositionY(), bot->GetPositionZ());
|
||||
|
||||
botAI->TellMaster("Остаюсь на месте.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"staying", "Staying", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -144,7 +145,8 @@ bool MoveFromGroupChatShortcutAction::Execute(Event /*event*/)
|
||||
botAI->ChangeStrategy("+move from group", BOT_STATE_NON_COMBAT);
|
||||
botAI->ChangeStrategy("+move from group", BOT_STATE_COMBAT);
|
||||
|
||||
botAI->TellMaster("Отхожу от группы");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"move_from_group", "Moving away from group", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -163,11 +165,13 @@ bool FleeChatShortcutAction::Execute(Event /*event*/)
|
||||
|
||||
if (bot->GetMapId() != master->GetMapId() || bot->GetDistance(master) > sPlayerbotAIConfig.sightDistance)
|
||||
{
|
||||
botAI->TellError("Я не могу отступать вместе с вами — вы слишком далеко");
|
||||
botAI->TellError(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"fleeing_far", "I will not flee with you - too far away", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
botAI->TellMaster("Отступаю.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"fleeing", "Fleeing", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -184,7 +188,8 @@ bool GoawayChatShortcutAction::Execute(Event /*event*/)
|
||||
ResetReturnPosition();
|
||||
ResetStayPosition();
|
||||
|
||||
botAI->TellMaster("Отступаю");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"running_away", "Running away", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -200,7 +205,8 @@ bool GrindChatShortcutAction::Execute(Event /*event*/)
|
||||
ResetReturnPosition();
|
||||
ResetStayPosition();
|
||||
|
||||
botAI->TellMaster("Фармлю.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"grinding", "Grinding", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -220,7 +226,8 @@ bool TankAttackChatShortcutAction::Execute(Event /*event*/)
|
||||
ResetReturnPosition();
|
||||
ResetStayPosition();
|
||||
|
||||
botAI->TellMaster("Атакую.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"attacking", "Attacking", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -241,6 +248,20 @@ bool MaxDpsChatShortcutAction::Execute(Event /*event*/)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NaxxChatShortcutAction::Execute(Event /*event*/)
|
||||
{
|
||||
Player* master = GetMaster();
|
||||
if (!master)
|
||||
return false;
|
||||
|
||||
botAI->Reset();
|
||||
botAI->ChangeStrategy("+naxx", BOT_STATE_NON_COMBAT);
|
||||
botAI->ChangeStrategy("+naxx", BOT_STATE_COMBAT);
|
||||
botAI->TellMasterNoFacing("Add Naxx Strategies!");
|
||||
// bot->Say("Add Naxx Strategies!", LANG_UNIVERSAL);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool BwlChatShortcutAction::Execute(Event /*event*/)
|
||||
{
|
||||
Player* master = GetMaster();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHATSHORTCUTACTION_H
|
||||
#define _PLAYERBOT_CHATSHORTCUTACTION_H
|
||||
#ifndef PLAYERBOTS_CHATSHORTCUTACTIONS_H
|
||||
#define PLAYERBOTS_CHATSHORTCUTACTIONS_H
|
||||
|
||||
#include "MovementActions.h"
|
||||
|
||||
@@ -85,6 +86,13 @@ public:
|
||||
bool Execute(Event event) override;
|
||||
};
|
||||
|
||||
class NaxxChatShortcutAction : public Action
|
||||
{
|
||||
public:
|
||||
NaxxChatShortcutAction(PlayerbotAI* ai) : Action(ai, "naxx chat shortcut") {}
|
||||
virtual bool Execute(Event event);
|
||||
};
|
||||
|
||||
class BwlChatShortcutAction : public Action
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CheatAction.h"
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef PLAYERBOTS_CHEATACTION_H
|
||||
#define PLAYERBOTS_CHEATACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
@@ -21,3 +25,5 @@ private:
|
||||
static std::string const GetCheatName(BotCheatMask cheatMask);
|
||||
void ListCheats();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CheckMailAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHECKMAILACTION_H
|
||||
#define _PLAYERBOT_CHECKMAILACTION_H
|
||||
#ifndef PLAYERBOTS_CHECKMAILACTION_H
|
||||
#define PLAYERBOTS_CHECKMAILACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "DatabaseEnvFwd.h"
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CheckMountStateAction.h"
|
||||
#include "AreaDefines.h"
|
||||
#include "BattleGroundTactics.h"
|
||||
#include "BattlegroundEY.h"
|
||||
#include "BattlegroundWS.h"
|
||||
#include "DBCStores.h"
|
||||
#include "Event.h"
|
||||
#include "PlayerbotAI.h"
|
||||
#include "PlayerbotAIConfig.h"
|
||||
@@ -14,6 +17,9 @@
|
||||
#include "ServerFacade.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
|
||||
static constexpr uint32 SPELL_COLD_WEATHER_FLYING = 54197;
|
||||
static constexpr float PARACHUTE_LAND_THRESHOLD = 15.0f;
|
||||
|
||||
// Define the static map / init bool for caching bot preferred mount data globally
|
||||
std::unordered_map<uint32, PreferredMountCache> CheckMountStateAction::mountCache;
|
||||
bool CheckMountStateAction::preferredMountTableChecked = false;
|
||||
@@ -57,6 +63,21 @@ MountData CollectMountData(const Player* bot)
|
||||
|
||||
bool CheckMountStateAction::Execute(Event /*event*/)
|
||||
{
|
||||
// Forced flight dismount:
|
||||
// Bots get stale flight movement flags after a forced dismount (e.g: Dalaran) because the post landing dismount cleanup
|
||||
// needs MSG_MOVE_FALL_LAND (a client opcode) and client movement packets. The stale flags cause the bot to be stuck with
|
||||
// the parachute, or even keep the bot hovering indefinitely and block MMAP routing.
|
||||
// Note: Without MSG_MOVE_FALL_LAND, HandleFall doesn't trigger, meaning bots don't get fall damage in forced dismounts anyway,
|
||||
// so the parachute usage here is more of an immersion feature.
|
||||
if (bot->HasFeatherFallAura())
|
||||
{
|
||||
float floorZ = bot->GetMapHeight(bot->GetPositionX(), bot->GetPositionY(), bot->GetPositionZ());
|
||||
if (floorZ != INVALID_HEIGHT && floorZ != VMAP_INVALID_HEIGHT_VALUE &&
|
||||
bot->GetPositionZ() - floorZ <= PARACHUTE_LAND_THRESHOLD)
|
||||
bot->RemoveAurasByType(SPELL_AURA_FEATHER_FALL);
|
||||
}
|
||||
ClearStaleFlightFlags();
|
||||
|
||||
// Determine if there are no attackers
|
||||
bool noAttackers = !AI_VALUE2(bool, "combat", "self target") || !AI_VALUE(uint8, "attacker count");
|
||||
bool enemy = AI_VALUE(Unit*, "enemy player target");
|
||||
@@ -94,9 +115,10 @@ bool CheckMountStateAction::Execute(Event /*event*/)
|
||||
}
|
||||
|
||||
bool inBattleground = bot->InBattleground();
|
||||
bool const noRealMaster = (!master || master == bot);
|
||||
|
||||
// If there is a master and bot not in BG, follow master's mount state regardless of group leader
|
||||
if (master && !inBattleground)
|
||||
if (!noRealMaster && !inBattleground)
|
||||
{
|
||||
if (ShouldFollowMasterMountState(master, noAttackers, shouldMount))
|
||||
return Mount();
|
||||
@@ -110,8 +132,8 @@ bool CheckMountStateAction::Execute(Event /*event*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
// If there is no master or bot in BG
|
||||
if ((!master || inBattleground) && !bot->IsMounted() &&
|
||||
// No real master (random bot or self-bot) OR bot in BG
|
||||
if ((noRealMaster || inBattleground) && !bot->IsMounted() &&
|
||||
noAttackers && shouldMount && !bot->IsInCombat())
|
||||
return Mount();
|
||||
|
||||
@@ -199,7 +221,7 @@ bool CheckMountStateAction::Mount()
|
||||
// Get bot mount data
|
||||
MountData mountData = CollectMountData(bot);
|
||||
int32 masterMountType = GetMountType(master);
|
||||
int32 masterSpeed = CalculateMasterMountSpeed(master, mountData);
|
||||
int32 masterSpeed = CalculateMasterMountSpeed(master);
|
||||
|
||||
// Try shapeshift
|
||||
if (TryForms(master, masterMountType, masterSpeed))
|
||||
@@ -228,6 +250,42 @@ void CheckMountStateAction::Dismount()
|
||||
|
||||
WorldPacket emptyPacket;
|
||||
bot->GetSession()->HandleCancelMountAuraOpcode(emptyPacket);
|
||||
|
||||
ClearStaleFlightFlags();
|
||||
}
|
||||
|
||||
void CheckMountStateAction::ClearStaleFlightFlags()
|
||||
{
|
||||
if (bot->HasIncreaseMountedFlightSpeedAura() || bot->HasFlyAura())
|
||||
return;
|
||||
|
||||
if (bot->HasUnitMovementFlag(MOVEMENTFLAG_FLYING | MOVEMENTFLAG_DISABLE_GRAVITY))
|
||||
{
|
||||
bot->RemoveUnitMovementFlag(MOVEMENTFLAG_FLYING | MOVEMENTFLAG_DISABLE_GRAVITY | MOVEMENTFLAG_CAN_FLY);
|
||||
if (!bot->IsRooted())
|
||||
bot->SendMovementFlagUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
void CheckMountStateAction::CompleteDismount(Player* bot)
|
||||
{
|
||||
if (!bot || !bot->IsInWorld())
|
||||
return;
|
||||
|
||||
float const x = bot->GetPositionX();
|
||||
float const y = bot->GetPositionY();
|
||||
float const startZ = bot->GetPositionZ();
|
||||
|
||||
float groundZ = startZ;
|
||||
bot->UpdateAllowedPositionZ(x, y, groundZ);
|
||||
|
||||
bot->GetMotionMaster()->MoveFall();
|
||||
MovementInfo fallInfo = bot->m_movementInfo;
|
||||
// Need to set the start of the fall, otherwise the fall may start from too high of a Z and kill the bot.
|
||||
bot->SetFallInformation(0, startZ);
|
||||
fallInfo.pos.Relocate(x, y, groundZ);
|
||||
bot->HandleFall(fallInfo);
|
||||
bot->RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING | MOVEMENTFLAG_FALLING_FAR);
|
||||
}
|
||||
|
||||
bool CheckMountStateAction::TryForms(Player* master, int32 masterMountType, int32 masterSpeed) const
|
||||
@@ -239,7 +297,7 @@ bool CheckMountStateAction::TryForms(Player* master, int32 masterMountType, int3
|
||||
else if
|
||||
((masterInShapeshiftForm == FORM_TRAVEL && botInShapeshiftForm == FORM_TRAVEL) ||
|
||||
((masterInShapeshiftForm == FORM_FLIGHT || (masterMountType == 1 && masterSpeed == 149)) && botInShapeshiftForm == FORM_FLIGHT) ||
|
||||
((masterInShapeshiftForm == FORM_FLIGHT_EPIC || (masterMountType == 1 && masterSpeed == 279)) && botInShapeshiftForm == FORM_FLIGHT_EPIC))
|
||||
((masterInShapeshiftForm == FORM_FLIGHT_EPIC || (masterMountType == 1 && masterSpeed >= 279)) && botInShapeshiftForm == FORM_FLIGHT_EPIC))
|
||||
return true;
|
||||
|
||||
// Check if master is in Travel Form and bot can do the same
|
||||
@@ -265,7 +323,7 @@ bool CheckMountStateAction::TryForms(Player* master, int32 masterMountType, int3
|
||||
// Check if master is in Swift Flight Form or has an epic flying mount and bot can swift flight form
|
||||
if (botAI->CanCastSpell(SPELL_SWIFT_FLIGHT_FORM, bot, true) &&
|
||||
((masterInShapeshiftForm == FORM_FLIGHT_EPIC && botInShapeshiftForm != FORM_FLIGHT_EPIC) ||
|
||||
(masterMountType == 1 && masterSpeed == 279)))
|
||||
(masterMountType == 1 && masterSpeed >= 279)))
|
||||
{
|
||||
botAI->CastSpell(SPELL_SWIFT_FLIGHT_FORM, bot);
|
||||
|
||||
@@ -370,18 +428,18 @@ bool CheckMountStateAction::TryPreferredMount(Player* master) const
|
||||
|
||||
bool CheckMountStateAction::TryRandomMountFiltered(const std::map<int32, std::vector<uint32>>& spells, int32 masterSpeed) const
|
||||
{
|
||||
for (auto const& pair : spells)
|
||||
for (auto it = spells.rbegin(); it != spells.rend(); ++it)
|
||||
{
|
||||
int32 currentSpeed = pair.first;
|
||||
int32 currentSpeed = it->first;
|
||||
|
||||
if ((masterSpeed > 59 && currentSpeed < 99) || (masterSpeed > 149 && currentSpeed < 279))
|
||||
continue;
|
||||
|
||||
// Pick a random mount from the candidate group.
|
||||
auto const& ids = pair.second;
|
||||
auto const& ids = it->second;
|
||||
if (!ids.empty())
|
||||
{
|
||||
// Required here as otherwise bots won't mount in BG's due to them constant moving
|
||||
// Required here as otherwise bots won't mount in BGs due to them constant moving
|
||||
if (bot->isMoving())
|
||||
bot->StopMoving();
|
||||
|
||||
@@ -422,19 +480,39 @@ bool CheckMountStateAction::ShouldFollowMasterMountState(Player* master, bool no
|
||||
bool isMasterMounted = master->IsMounted() || (masterInShapeshiftForm == FORM_FLIGHT ||
|
||||
masterInShapeshiftForm == FORM_FLIGHT_EPIC ||
|
||||
masterInShapeshiftForm == FORM_TRAVEL);
|
||||
return isMasterMounted && !bot->IsMounted() && noAttackers &&
|
||||
bool isBotMountedOrForm = bot->IsMounted() || botInShapeshiftForm == FORM_FLIGHT ||
|
||||
botInShapeshiftForm == FORM_FLIGHT_EPIC || botInShapeshiftForm == FORM_TRAVEL;
|
||||
return isMasterMounted && !isBotMountedOrForm && noAttackers &&
|
||||
shouldMount && !bot->IsInCombat() && botAI->GetState() != BOT_STATE_COMBAT;
|
||||
}
|
||||
|
||||
bool CheckMountStateAction::ShouldDismountForMaster(Player* master) const
|
||||
{
|
||||
bool isMasterMounted = master->IsMounted() || (masterInShapeshiftForm == FORM_FLIGHT ||
|
||||
masterInShapeshiftForm == FORM_FLIGHT_EPIC ||
|
||||
masterInShapeshiftForm == FORM_TRAVEL);
|
||||
masterInShapeshiftForm == FORM_FLIGHT_EPIC ||
|
||||
masterInShapeshiftForm == FORM_TRAVEL);
|
||||
return !isMasterMounted && bot->IsMounted();
|
||||
}
|
||||
|
||||
int32 CheckMountStateAction::CalculateMasterMountSpeed(Player* master, const MountData& mountData) const
|
||||
static bool BotCanUseFlyingMount(Player const* bot)
|
||||
{
|
||||
if (bot->GetPureSkillValue(SKILL_RIDING) < 225)
|
||||
return false;
|
||||
|
||||
AreaTableEntry const* area = sAreaTableStore.LookupEntry(bot->GetAreaId());
|
||||
if (!area || !area->IsFlyable())
|
||||
return false;
|
||||
if (area->flags & AREA_FLAG_NO_FLY_ZONE)
|
||||
return false;
|
||||
|
||||
uint32 const vmap = GetVirtualMapForMapAndZone(bot->GetMapId(), bot->GetZoneId());
|
||||
if (vmap == MAP_NORTHREND && !bot->HasSpell(SPELL_COLD_WEATHER_FLYING))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int32 CheckMountStateAction::CalculateMasterMountSpeed(Player* master) const
|
||||
{
|
||||
// Check riding skill and level requirements
|
||||
int32 ridingSkill = bot->GetPureSkillValue(SKILL_RIDING);
|
||||
@@ -443,8 +521,10 @@ int32 CheckMountStateAction::CalculateMasterMountSpeed(Player* master, const Mou
|
||||
if (ridingSkill <= 75 && botLevel < static_cast<int32>(sPlayerbotAIConfig.useFastGroundMountAtMinLevel))
|
||||
return 59;
|
||||
|
||||
// If there is a master and bot not in BG, use master's aura effects.
|
||||
if (master && !bot->InBattleground())
|
||||
// check if bot has master and if master is self
|
||||
bool const noRealMaster = (!master || master == bot);
|
||||
|
||||
if (!noRealMaster && !bot->InBattleground())
|
||||
{
|
||||
auto auraEffects = master->GetAuraEffectsByType(SPELL_AURA_MOUNTED);
|
||||
if (!auraEffects.empty())
|
||||
@@ -458,27 +538,27 @@ int32 CheckMountStateAction::CalculateMasterMountSpeed(Player* master, const Mou
|
||||
return 279;
|
||||
else if (masterInShapeshiftForm == FORM_FLIGHT)
|
||||
return 149;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Bots on their own.
|
||||
int32 speed = mountData.maxSpeed;
|
||||
if (bot->InBattleground() && speed > 99)
|
||||
return 99;
|
||||
|
||||
return speed;
|
||||
return 59; // walk pace
|
||||
}
|
||||
|
||||
return 59;
|
||||
// No real master OR battleground: pick speed by skill tier.
|
||||
if (!bot->InBattleground() && BotCanUseFlyingMount(bot))
|
||||
return (ridingSkill >= 300) ? 279 : 149;
|
||||
|
||||
int32 maxGround = (ridingSkill >= 150) ? 99 : 59;
|
||||
if (bot->InBattleground() && maxGround > 99)
|
||||
maxGround = 99;
|
||||
return maxGround;
|
||||
}
|
||||
|
||||
uint32 CheckMountStateAction::GetMountType(Player* master) const
|
||||
{
|
||||
if (!master)
|
||||
return 0;
|
||||
bool const noRealMaster = (!master || master == bot);
|
||||
|
||||
if (noRealMaster)
|
||||
return (!bot->InBattleground() && BotCanUseFlyingMount(bot)) ? 1 : 0;
|
||||
|
||||
auto auraEffects = master->GetAuraEffectsByType(SPELL_AURA_MOUNTED);
|
||||
|
||||
if (!auraEffects.empty())
|
||||
{
|
||||
SpellInfo const* masterSpell = auraEffects.front()->GetSpellInfo();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHECKMOUNTSTATEACTION_H
|
||||
#define _PLAYERBOT_CHECKMOUNTSTATEACTION_H
|
||||
#ifndef PLAYERBOTS_CHECKMOUNTSTATEACTION_H
|
||||
#define PLAYERBOTS_CHECKMOUNTSTATEACTION_H
|
||||
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
@@ -42,6 +43,8 @@ public:
|
||||
bool isPossible() override { return true; }
|
||||
bool Mount();
|
||||
|
||||
static void CompleteDismount(Player* bot);
|
||||
|
||||
private:
|
||||
Player* master;
|
||||
ShapeshiftForm masterInShapeshiftForm;
|
||||
@@ -51,9 +54,10 @@ private:
|
||||
float CalculateDismountDistance() const;
|
||||
float CalculateMountDistance() const;
|
||||
void Dismount();
|
||||
void ClearStaleFlightFlags();
|
||||
bool ShouldFollowMasterMountState(Player* master, bool noAttackers, bool shouldMount) const;
|
||||
bool ShouldDismountForMaster(Player* master) const;
|
||||
int32 CalculateMasterMountSpeed(Player* master, const MountData& mountData) const;
|
||||
int32 CalculateMasterMountSpeed(Player* master) const;
|
||||
bool CheckForSwiftMount() const;
|
||||
std::map<uint32, std::map<int32, std::vector<uint32>>> GetAllMountSpells() const;
|
||||
bool TryForms(Player* master, int32 masterMountType, int32 masterSpeed) const;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CheckValuesAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHECKVALUESACTION_H
|
||||
#define _PLAYERBOT_CHECKVALUESACTION_H
|
||||
#ifndef PLAYERBOTS_CHECKVALUESACTION_H
|
||||
#define PLAYERBOTS_CHECKVALUESACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <random>
|
||||
@@ -112,19 +113,17 @@ float ChooseRpgTargetAction::getMaxRelevance(GuidPosition guidP)
|
||||
|
||||
bool ChooseRpgTargetAction::Execute(Event /*event*/)
|
||||
{
|
||||
//TravelTarget* travelTarget = AI_VALUE(TravelTarget*, "travel target"); //not used, line marked for removal.
|
||||
Player* master = botAI->GetMaster();
|
||||
GuidPosition masterRpgTarget;
|
||||
if (master && master != bot && GET_PLAYERBOT_AI(master) && master->GetMapId() == bot->GetMapId() && !master->IsBeingTeleported())
|
||||
{
|
||||
Player* player = botAI->GetMaster();
|
||||
//GuidPosition masterRpgTarget = PAI_VALUE(GuidPosition, "rpg target"); //not used, line marked for removal.
|
||||
Player* player = master;
|
||||
masterRpgTarget = PAI_VALUE(GuidPosition, "rpg target");
|
||||
}
|
||||
else
|
||||
master = nullptr;
|
||||
|
||||
std::unordered_map<ObjectGuid, uint32> targets;
|
||||
// uint32 num = 0; //not used, line marked for removal.
|
||||
GuidVector possibleTargets = AI_VALUE(GuidVector, "possible rpg targets");
|
||||
GuidVector possibleObjects = AI_VALUE(GuidVector, "nearest game objects no los");
|
||||
GuidVector possiblePlayers = AI_VALUE(GuidVector, "nearest friendly players");
|
||||
@@ -205,6 +204,7 @@ bool ChooseRpgTargetAction::Execute(Event /*event*/)
|
||||
|
||||
SET_AI_VALUE(std::string, "next rpg action", "");
|
||||
|
||||
// Only fires when following a playerbot master.
|
||||
for (auto it = begin(targets); it != end(targets);)
|
||||
{
|
||||
//Remove empty targets.
|
||||
@@ -337,7 +337,7 @@ bool ChooseRpgTargetAction::isFollowValid(Player* bot, WorldPosition pos)
|
||||
if (!botAI->HasActivePlayerMaster() && distance < 50.0f)
|
||||
{
|
||||
Player* player = groupLeader;
|
||||
if (groupLeader && !groupLeader->isMoving() ||
|
||||
if ((groupLeader && !groupLeader->isMoving()) ||
|
||||
PAI_VALUE(WorldPosition, "last long move").distance(pos) < sPlayerbotAIConfig.reactDistance)
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHOOSERPGTARGETACTION_H
|
||||
#define _PLAYERBOT_CHOOSERPGTARGETACTION_H
|
||||
#ifndef PLAYERBOTS_CHOOSERPGTARGETACTION_H
|
||||
#define PLAYERBOTS_CHOOSERPGTARGETACTION_H
|
||||
|
||||
#include "ObjectGuid.h"
|
||||
#include "RpgAction.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChooseTargetActions.h"
|
||||
@@ -30,6 +31,14 @@ bool AttackEnemyFlagCarrierAction::isUseful()
|
||||
PlayerHasFlag::IsCapturingFlag(bot);
|
||||
}
|
||||
|
||||
bool AggressiveTargetAction::isUseful()
|
||||
{
|
||||
if (bot->IsInCombat())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DropTargetAction::Execute(Event /*event*/)
|
||||
{
|
||||
Unit* target = context->GetValue<Unit*>("current target")->Get();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHOOSETARGETACTIONS_H
|
||||
#define _PLAYERBOT_CHOOSETARGETACTIONS_H
|
||||
#ifndef PLAYERBOTS_CHOOSETARGETACTIONS_H
|
||||
#define PLAYERBOTS_CHOOSETARGETACTIONS_H
|
||||
|
||||
#include "AttackAction.h"
|
||||
|
||||
@@ -35,6 +36,15 @@ public:
|
||||
std::string const GetTargetName() override { return "tank target"; }
|
||||
};
|
||||
|
||||
class AggressiveTargetAction : public AttackAction
|
||||
{
|
||||
public:
|
||||
AggressiveTargetAction(PlayerbotAI* botAI) : AttackAction(botAI, "aggressive target") {}
|
||||
|
||||
std::string const GetTargetName() override { return "aggressive target"; }
|
||||
bool isUseful() override;
|
||||
};
|
||||
|
||||
class AttackAnythingAction : public AttackAction
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ChooseTravelTargetAction.h"
|
||||
@@ -232,15 +233,6 @@ void ChooseTravelTargetAction::ReportTravelTarget(TravelTarget* newTarget, Trave
|
||||
QuestTravelDestination* QuestDestination = (QuestTravelDestination*)destination;
|
||||
Quest const* quest = QuestDestination->GetQuestTemplate();
|
||||
WorldPosition botLocation(bot);
|
||||
|
||||
CreatureTemplate const* cInfo = nullptr;
|
||||
GameObjectTemplate const* gInfo = nullptr;
|
||||
|
||||
if (destination->getEntry() > 0)
|
||||
cInfo = sObjectMgr->GetCreatureTemplate(destination->getEntry());
|
||||
else
|
||||
gInfo = sObjectMgr->GetGameObjectTemplate(destination->getEntry() * -1);
|
||||
|
||||
std::string Sub;
|
||||
|
||||
if (newTarget->isGroupCopy())
|
||||
@@ -478,7 +470,7 @@ bool ChooseTravelTargetAction::SetCurrentTarget(TravelTarget* target, TravelTarg
|
||||
return target->isActive();
|
||||
}
|
||||
|
||||
bool ChooseTravelTargetAction::SetQuestTarget(TravelTarget* target, bool onlyCompleted, bool newQuests, bool activeQuests, bool completedQuests)
|
||||
bool ChooseTravelTargetAction::SetQuestTarget(TravelTarget* target, bool /*onlyCompleted*/, bool newQuests, bool activeQuests, bool completedQuests)
|
||||
{
|
||||
std::vector<TravelDestination*> activeDestinations;
|
||||
std::vector<WorldPosition*> activePoints;
|
||||
@@ -823,10 +815,6 @@ char* strstri(char const* haystack, char const* needle);
|
||||
|
||||
TravelDestination* ChooseTravelTargetAction::FindDestination(Player* bot, std::string const name, bool zones, bool npcs, bool quests, bool mobs, bool bosses)
|
||||
{
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||
|
||||
// AiObjectContext* context = botAI->GetAiObjectContext(); //not used, line marked for removal.
|
||||
|
||||
std::vector<TravelDestination*> dests;
|
||||
|
||||
//Quests
|
||||
@@ -941,7 +929,7 @@ bool ChooseTravelTargetAction::needForQuest(Unit* target)
|
||||
int required = questTemplate->RequiredNpcOrGoCount[j];
|
||||
int available = questStatus.CreatureOrGOCount[j];
|
||||
|
||||
if (required && available < required && (target->GetEntry() == entry || justCheck))
|
||||
if (required && available < required && (target->GetEntry() == uint32(entry) || justCheck))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CHOOSETRAVELTARGETACTION_H
|
||||
#define _PLAYERBOT_CHOOSETRAVELTARGETACTION_H
|
||||
#ifndef PLAYERBOTS_CHOOSETRAVELTARGETACTION_H
|
||||
#define PLAYERBOTS_CHOOSETRAVELTARGETACTION_H
|
||||
|
||||
#include "MovementActions.h"
|
||||
#include "TravelMgr.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CombatActions.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_COMBATACTIONS_H
|
||||
#define _PLAYERBOT_COMBATACTIONS_H
|
||||
#ifndef PLAYERBOTS_COMBATACTIONS_H
|
||||
#define PLAYERBOTS_COMBATACTIONS_H
|
||||
|
||||
#include "ChangeStrategyAction.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "CustomStrategyEditAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_CUSTOMSTRATEGYEDITACTION_H
|
||||
#define _PLAYERBOT_CUSTOMSTRATEGYEDITACTION_H
|
||||
#ifndef PLAYERBOTS_CUSTOMSTRATEGYEDITACTION_H
|
||||
#define PLAYERBOTS_CUSTOMSTRATEGYEDITACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "DebugAction.h"
|
||||
@@ -520,8 +521,8 @@ bool DebugAction::Execute(Event event)
|
||||
botPos.setY(botPos.GetPositionY() + (dy - 5) * 5);
|
||||
botPos.setZ(botPos.getHeight());
|
||||
|
||||
Creature* wpCreature = bot->SummonCreature(effect, botPos.GetPositionX(), botPos.GetPositionY(), botPos.GetPositionZ(), 0,
|
||||
TEMPSUMMON_TIMED_DESPAWN, 10000.0f);
|
||||
bot->SummonCreature(effect, botPos.GetPositionX(), botPos.GetPositionY(), botPos.GetPositionZ(), 0,
|
||||
TEMPSUMMON_TIMED_DESPAWN, 10000.0f);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_DEBUGACTION_H
|
||||
#define _PLAYERBOT_DEBUGACTION_H
|
||||
#ifndef PLAYERBOTS_DEBUGACTION_H
|
||||
#define PLAYERBOTS_DEBUGACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "ObjectGuid.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "DelayAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_DELAYACTION_H
|
||||
#define _PLAYERBOT_DELAYACTION_H
|
||||
#ifndef PLAYERBOTS_DELAYACTION_H
|
||||
#define PLAYERBOTS_DELAYACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "DestroyItemAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_DESTROYITEMACTION_H
|
||||
#define _PLAYERBOT_DESTROYITEMACTION_H
|
||||
#ifndef PLAYERBOTS_DESTROYITEMACTION_H
|
||||
#define PLAYERBOTS_DESTROYITEMACTION_H
|
||||
|
||||
#include "InventoryAction.h"
|
||||
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "DropQuestAction.h"
|
||||
|
||||
#include "ChatHelper.h"
|
||||
#include "Event.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool DropQuestAction::Execute(Event event)
|
||||
@@ -51,10 +53,15 @@ bool DropQuestAction::Execute(Event event)
|
||||
const Quest* pQuest = sObjectMgr->GetQuestTemplate(entry);
|
||||
const std::string text_quest = ChatHelper::FormatQuest(pQuest);
|
||||
LOG_INFO("playerbots", "{} => Quest [ {} ] removed", bot->GetName(), pQuest->GetTitle());
|
||||
bot->Say("Задание [ " + text_quest + " ] removed", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_removed_debug",
|
||||
"Quest [%quest] removed",
|
||||
{{"%quest", text_quest}});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
}
|
||||
|
||||
botAI->TellMaster("Задание удалено.");
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_remove", "Quest removed", {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -62,31 +69,19 @@ bool CleanQuestLogAction::Execute(Event event)
|
||||
{
|
||||
Player* requester = event.getOwner() ? event.getOwner() : GetMaster();
|
||||
if (!requester)
|
||||
{
|
||||
botAI->TellMaster("Не удалось определить владельца события");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!sPlayerbotAIConfig.dropObsoleteQuests)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only output this message if "debug rpg" strategy is enabled
|
||||
if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
botAI->TellMaster("Получена команда очистки журнала: удаляю серые и незначительные задания...");
|
||||
}
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"clean_quest_log_started",
|
||||
"Clean Quest Log command received, removing grey/trivial quests...",
|
||||
{}));
|
||||
|
||||
uint8 botLevel = bot->GetLevel(); // Get bot's level
|
||||
uint8 numQuest = 0;
|
||||
for (uint8 slot = 0; slot < MAX_QUEST_LOG_SIZE; ++slot)
|
||||
{
|
||||
if (bot->GetQuestSlotQuestId(slot))
|
||||
{
|
||||
numQuest++;
|
||||
}
|
||||
}
|
||||
|
||||
for (uint8 slot = 0; slot < MAX_QUEST_LOG_SIZE; ++slot)
|
||||
{
|
||||
@@ -101,34 +96,27 @@ bool CleanQuestLogAction::Execute(Event event)
|
||||
// Determine if quest is trivial by comparing levels
|
||||
int32 questLevel = quest->GetQuestLevel();
|
||||
if (questLevel == -1) // For scaling quests, default to bot level
|
||||
{
|
||||
questLevel = botLevel;
|
||||
}
|
||||
|
||||
// Set the level difference for when a quest becomes trivial
|
||||
// This was determined by using the Lua code the client uses
|
||||
int32 trivialLevel = 5;
|
||||
if (botLevel >= 40)
|
||||
{
|
||||
trivialLevel = 8;
|
||||
}
|
||||
else if (botLevel >= 30)
|
||||
{
|
||||
trivialLevel = 7;
|
||||
}
|
||||
else if (botLevel >= 20)
|
||||
{
|
||||
trivialLevel = 6;
|
||||
}
|
||||
|
||||
// Check if the quest is trivial (grey) for the bot
|
||||
if ((botLevel - questLevel) > trivialLevel)
|
||||
{
|
||||
// Output only if "debug rpg" strategy is enabled
|
||||
if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
botAI->TellMaster("Задание [ " + quest->GetTitle() + " ] will be removed because it is trivial (grey).");
|
||||
}
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_trivial_will_remove",
|
||||
"Quest [%title] will be removed because it is trivial (grey).",
|
||||
{{"%title", quest->GetTitle()}}));
|
||||
|
||||
// Remove quest
|
||||
botAI->rpgStatistic.questDropped++;
|
||||
@@ -137,27 +125,31 @@ bool CleanQuestLogAction::Execute(Event event)
|
||||
bot->SetQuestStatus(questId, QUEST_STATUS_NONE);
|
||||
bot->RemoveRewardedQuest(questId);
|
||||
|
||||
numQuest--;
|
||||
|
||||
if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
const std::string text_quest = ChatHelper::FormatQuest(quest);
|
||||
LOG_INFO("playerbots", "{} => Quest [ {} ] removed", bot->GetName(), quest->GetTitle());
|
||||
bot->Say("Задание [ " + text_quest + " ] removed", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_removed_debug",
|
||||
"Quest [%quest] removed",
|
||||
{{"%quest", text_quest}});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
}
|
||||
|
||||
if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
botAI->TellMaster("Задание [ " + quest->GetTitle() + " ] has been removed.");
|
||||
}
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_has_been_removed",
|
||||
"Quest [%title] has been removed.",
|
||||
{{"%title", quest->GetTitle()}}));
|
||||
}
|
||||
else
|
||||
{
|
||||
// Only output if "debug rpg" strategy is enabled
|
||||
if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
|
||||
{
|
||||
botAI->TellMaster("Задание [ " + quest->GetTitle() + " ] is not trivial and will be kept.");
|
||||
}
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_not_trivial_kept",
|
||||
"Quest [%title] is not trivial and will be kept.",
|
||||
{{"%title", quest->GetTitle()}}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,7 +166,6 @@ void CleanQuestLogAction::DropQuestType(uint8& numQuest, uint8 wantNum, bool isG
|
||||
{
|
||||
std::random_device rd;
|
||||
std::mt19937 g(rd());
|
||||
|
||||
std::shuffle(slots.begin(), slots.end(), g);
|
||||
}
|
||||
|
||||
@@ -200,8 +191,10 @@ void CleanQuestLogAction::DropQuestType(uint8& numQuest, uint8 wantNum, bool isG
|
||||
bot->GetLevel() <= bot->GetQuestLevel(quest) + uint32(lowLevelDiff)) // Quest is not gray
|
||||
{
|
||||
if (bot->GetLevel() + 5 > bot->GetQuestLevel(quest)) // Quest is not red
|
||||
{
|
||||
if (!isGreen)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else // Quest is gray
|
||||
{
|
||||
@@ -234,9 +227,16 @@ void CleanQuestLogAction::DropQuestType(uint8& numQuest, uint8 wantNum, bool isG
|
||||
{
|
||||
const std::string text_quest = ChatHelper::FormatQuest(quest);
|
||||
LOG_INFO("playerbots", "{} => Quest [ {} ] removed", bot->GetName(), quest->GetTitle());
|
||||
bot->Say("Задание [ " + text_quest + " ] removed", LANG_UNIVERSAL);
|
||||
std::string text = PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_removed_debug",
|
||||
"Quest [%quest] removed",
|
||||
{{"%quest", text_quest}});
|
||||
bot->Say(text, LANG_UNIVERSAL);
|
||||
}
|
||||
botAI->TellMaster("Задание удалено." + chat->FormatQuest(quest));
|
||||
botAI->TellMaster(PlayerbotTextMgr::instance().GetBotTextOrDefault(
|
||||
"quest_removed_with_name",
|
||||
"Quest removed %quest",
|
||||
{{"%quest", chat->FormatQuest(quest)}}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_DROPQUESTACTION_H
|
||||
#define _PLAYERBOT_DROPQUESTACTION_H
|
||||
#ifndef PLAYERBOTS_DROPQUESTACTION_H
|
||||
#define PLAYERBOTS_DROPQUESTACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "EmoteAction.h"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_EMOTEACTION_H
|
||||
#define _PLAYERBOT_EMOTEACTION_H
|
||||
#ifndef PLAYERBOTS_EMOTEACTION_H
|
||||
#define PLAYERBOTS_EMOTEACTION_H
|
||||
|
||||
#include <map>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
* This file is part of the mod-playerbots module for AzerothCore. See AUTHORS file for Copyright
|
||||
* information; released under GNU GPL v2 license, redistribute/modify under version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "EquipAction.h"
|
||||
@@ -85,8 +86,8 @@ void EquipAction::EquipItem(Item* item)
|
||||
if (itemProto->Class == ITEM_CLASS_CONTAINER)
|
||||
{
|
||||
// Attempt to equip as a bag
|
||||
Bag* pBag = reinterpret_cast<Bag*>(item);
|
||||
uint8 newBagSlot = GetSmallestBagSlot();
|
||||
|
||||
if (newBagSlot > 0)
|
||||
{
|
||||
uint16 src = ((bagIndex << 8) | slot);
|
||||
@@ -154,9 +155,11 @@ void EquipAction::EquipItem(Item* item)
|
||||
calculator.SetOverflowPenalty(false);
|
||||
|
||||
// Calculate item scores once and store them
|
||||
float newItemScore = calculator.CalculateItem(itemId);
|
||||
float mainHandScore = mainHandItem ? calculator.CalculateItem(mainHandItem->GetTemplate()->ItemId) : 0.0f;
|
||||
float offHandScore = offHandItem ? calculator.CalculateItem(offHandItem->GetTemplate()->ItemId) : 0.0f;
|
||||
float newItemScore = calculator.CalculateItem(itemId, item->GetItemRandomPropertyId());
|
||||
float mainHandScore = mainHandItem
|
||||
? calculator.CalculateItem(mainHandItem->GetTemplate()->ItemId, mainHandItem->GetItemRandomPropertyId()) : 0.0f;
|
||||
float offHandScore = offHandItem
|
||||
? calculator.CalculateItem(offHandItem->GetTemplate()->ItemId, offHandItem->GetItemRandomPropertyId()) : 0.0f;
|
||||
|
||||
// Determine where this weapon can go
|
||||
bool canGoMain = (invType == INVTYPE_WEAPON ||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user