Commit graph

1328 commits

Author SHA1 Message Date
Yaki Khadafi
f7cd8ce52a Fix SMSG_UPDATE_OBJECT, SMSG_DESTROY_OBJECT, and some teleport opcodes
Authors: Strawberry, Trinity, me
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:53:44 +00:00
Yaki Khadafi
fad34d4640 Forgot this
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:31 +00:00
Yaki Khadafi
e9bee9b0b0 Update UpdateFields.h. Drop redundant powers and happiness.
thx Strawberry

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:30 +00:00
Salja
4fa8e2c36c Fix CMSG_CHAR_CREATE, CMSG_CHAR_DELETE Thanks Zuse for help.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:25:26 +00:00
Salja
5424aed420 Added Support for DB2 Reader. Thanks to all Authors
NOTE: extractor need fix/update.
      support for VC80/VC90
      cmake need update

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:25:24 +00:00
Salja
a6f3ca6ab0 Some Update for 4.3.4
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:24:52 +00:00
Salja
22bfaa12b0 Mage 400 INTO master/434
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 01:59:51 +00:00
Nay
bb91aa5933 [12080] Use a single method to send SMSG_ACTIVATETAXIREPLY
Signed-off-by: stfx <stfx@hotmail.de>
2012-08-03 19:27:06 +02:00
Machiavelli
21a3ee9267 [12079] Remove some redundant explicit NULL checks for pointers before delete or delete[] calls since this check is done implicitly when deleting
Signed-off-by: stfx <stfx@hotmail.de>
2012-08-03 14:30:18 +02:00
stfx
e81b605caa [12076] Remove redundant casts in Player.cpp 2012-08-02 10:26:11 +02:00
Schmoozerd
835d1c7479 [12069] Cleanup comment style 2012-07-22 14:39:31 +02:00
stfx
3707b04330 [12066] Optimize some parts for ++C 2012-07-21 17:15:11 +02:00
Schmoozerd
e32b9953a1 Cleanup Operator padding 2012-07-20 17:38:23 +02:00
Schmoozerd
98e1efd435 Various Cleanups (game P) 2012-07-19 21:51:30 +02:00
stfx
acffb0de4c [12059] Add grid searcher for OPvP Capture Points
Might be based on work of original OPvP authors

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-19 21:18:41 +02:00
Schmoozerd
6de10526cc [12058] Remove more header includes 2012-07-19 04:15:13 +02:00
Velvet
4e117d1ee8 [12056] Fix a bug of [11825] that causes wrong offhand attack times for players.
Thx to fr1nge for reporting the bug.
Problem spotting and patch by vovk
Additional cleanup by fr1nge

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-18 14:58:11 +02:00
kaelima
fd6c2e1751 [12038] Use bitmask for chat tag.
Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-13 22:39:19 +02:00
stfx
d563c6576d [12037] Use enum for rest state 2012-07-13 22:39:06 +02:00
GS
6e8111261c [12036] Fix Tauren Skin Tone Changeing at barbershop
Patch taken from insider's repo.
Also rename DoSummon function to DoSummonPet function.

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-13 22:03:23 +02:00
Schmoozerd
0e0a765312 [12026] Replace std containers of ObjectGuids with some predefined types
Based on patch by stfx

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-03 18:47:05 +02:00
darkstalker
f777665d48 [12021] Fix some warnings
Thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-25 15:40:27 +02:00
Schmoozerd
414d432d24 [11990] More db-script command changes
* Allow SCRIPT_COMMAND_KILL_CREDIT to give the kill of an involved npc.
  This is marked by datalong (creature-entry) == 0
* Remove immediate execution of commands. This will prevent infinite loops when db-scripts trigger db-scripts which are executed immediately
* Add check for SCRIPT_COMMAND_PLAY_SOUND
* Add check to catch an invalid command

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:09:12 +02:00
virusav
c17fdc3093 [11979] Remove ReqSourceItems when rewarding or abandoning a quest
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-25 14:44:23 +02:00
stfx
f3f3349661 [11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Schmoozerd
7fd1f64319 [11971] Add wrapper HasAttribute to check if a spell has an attribute
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-21 02:02:34 +02:00
Schmoozerd
8c29893310 [11964] Implement new conditions system
Tree-like design idea by Faramir118, thanks for that!

* Add `conditions` table to store conditions.
* REPLACE current handling of conditions for the *_loot_template tables
  Convert the old conditions in *_loot_template to the new system by SQL-Queries
* ADD support for new conditions to gossip_menu and gossip_menu_option.
  If for these tables no condition_id (new system) is provided, the old conditions will still be used
* Add a small helper python script to contrib/convertConditions, see README there for details
* Add new command to reload the `conditions` table (.reload conditions)
* Add two Meta-Condition types CONDITION_AND (-1) and CONDITION_OR (-2) which are used as:
  value1 (as condition_entry) AND / OR value2 (as condition_entry)

  With these meta-conditions it is possible to create tree like and very complicated combined conditions (like HasAura && (HasItem || HasQuest))

NOTE about conversion:
For easier convertion all the old table data is still preserved, but will be removed eventually (within a circle of the moon approximately)
The python script will not create an optimal initial fill of the `conditions` table. You might want to tweak it manually or suggest some optimized algorithm :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-15 23:06:00 +02:00
cyberium
35e991d70e [11898] Prevent resetting instances while offline players are in it
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-31 22:42:43 +01:00
Schmoozerd
6aab5c1022 [11892] Really fix [11890]. This basicly reverts commit 11890
Remove the actually not required faction check in Player::GetNPCIfCanInteractWith - this is done by IsHostileTo a line before
Improve the Player-login AtWar selection to also consider forced reactions

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-31 00:16:21 +01:00
Schmoozerd
3e552fc739 [11890] Fix Player::GetNPCIfCanInteractWith to consider forced reactions
This will fix ie quest 9410 A Spirit Guide

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-27 00:20:14 +01:00
darkstalker
461be74c3a [11878] Add group looting rules for gameobjects (chests)
Patch based on original work by Wowka321

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-16 22:54:08 +01:00
Schmoozerd
8068dcf6dd [11875] Update Copyright notice to year 2012
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
Klark20
a8e3c9ac4d [11873] Enable gossip_menu_option scripts for all gossip options
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-22 12:12:09 +01:00
NeatElves
18679dbab1 [11867] Implement GOSSIP_OPTION_MAILBOX
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-21 14:21:55 +01:00
Schmoozerd
adfa88d236 [11857] Fix sent level in trainer spell list - this fixes problems especially with druid trainers
* This allows to really  overwrite required level for spells
* Adds proper checks when buying
* Fixes default level requirement

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-05 22:58:24 +01:00
Schmoozerd
601805b57e [11853] Add new flag_extra NO_TALKTO_CREDIT
This flag is intended to make the process of removing the automatismn gossip.click -> quest-credit easier.
This flag will be removed when the converting is complete

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-30 20:31:00 +01:00
Schmoozerd
4c82458874 [11852] Add support for db scripts assigned to gossip menus 2011-11-30 20:30:52 +01:00
kaelima
e55a14b96d [11838] Small code cleanup in Player::UpdateWeaponSkill
Thanks to stfx for providing the patch.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-04 15:53:08 +01:00
Laise
6b1d74fd4b [11834] remove unneeded initialization, thx silverice 2011-10-20 10:01:26 +02:00
Vinolentus
7affa3580e remove trailing whitespace after 11831 2011-10-18 14:51:18 +04:00
pabzea
3aca58520b [11832] better check for twohand vs main&offhand case gearscore
Signed-off-by: Laise <fenrisse@gmail.com>
2011-10-18 09:01:29 +02:00
C:/Program Files (x86)/git/dev/rsa
70a8a350d7 [11831] Implement player gear score calculation
Signed-off-by: Laise <fenrisse@gmail.com>
2011-10-17 16:13:37 +02:00
SilverIce
70a6a1ce76 [11825] Implement creature offhand attack. based on patch from maxxx2021
also drop some archaic Unit's code
2011-10-16 00:01:06 +03:00
PSZ
1606bb2e45 [11822] Add more functionality to CONDITION_QUESTTAKEN
Add options 1/ 2 in second argument to check if a quest is INCOMPLETE/ COMPLETE, default will behave like currently

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-10-14 18:05:30 +02:00
SilverIce
df0715284f [11819] move SetActiveObjectState to WorldObject level 2011-10-13 20:08:49 +03:00
stfx
5b0c0c9fa4 [11814] Use the same variable to store the message for AFK and DND
Also make code in this area easier to read

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-10-07 17:22:27 +02:00
stfx
e89d5db5e3 [11813] Receiving whispers while being dnd
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-10-07 14:26:42 +02:00
Vinolentus
a9e435c078 [11797] Do not remove item on unrelated auraholder remove
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-18 02:17:20 +02:00
Vinolentus
3c073c283f [11789] Remove ApplySpellMod body from header. We can explicitly instantiate possible variants.
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-05 21:01:04 +02:00
Vinolentus
dc932024ab [11784] Fix restoring of phase mask when turning gm off
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-04 02:24:03 +02:00