Commit graph

6548 commits

Author SHA1 Message Date
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
virusav
16b244373a [11877] Remove check for quest_template if QuestSort and SkillId match
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-16 18:27:01 +01:00
virusav
14b001ff2a [11876] Fix table layout for creature_linking_template
Also change `spell_pet_auras` and `spell_script_target` default charset to utf8 as expected. Check your SQL Userguide for proper charset convertion, but this should not be required

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-16 17:59:53 +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
DasBlub
488aab562c fix typo in comment 2012-01-02 18:18:46 +01:00
stfx
22dd739fb0 [11874] Fix comment about PlayerUnderwaterState 2011-12-22 12:22:48 +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
Schmoozerd
66167150bd [11872] Fix caster of triggered spell of 44883 - seems to be unique combination
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-21 23:59:44 +01:00
Schmoozerd
4989b48ffd [11871] Reorder caster/target selection for normal case in Aura::TriggerSpell
There is no reason to overwrite behaviour of custom code, also it is easier if caster/ target selection is done early to prevent unexpected changes after custom code
2011-12-21 23:31:50 +01:00
Schmoozerd
2a0a88c1e6 Update src/game/SpellAuras.cpp 2011-12-21 18:58:12 +01:00
breakwater
4324ffd7dd [11870] Implement spells 49555 and 59807
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-21 18:46:14 +01:00
Xfurry
8f95cbab1a [11869] Implement ScriptEffect of spells 49380, 59803
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-21 18:11:01 +01:00
Xfurry
6b8c38884d [11868] Implement DummyEffect of spell 54850. Original patch by Reve
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-21 18:07:24 +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
249fc30abc Edit src/game/SpellAuras.cpp - Fix spell name comment 2011-12-16 20:53:47 +01:00
DaC
92dc57ec85 [11866] Fix battleground kick for inactive players. Close pull request #29
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-16 20:29:11 +01:00
Schmoozerd
f5b94f00b5 [11865] Fix faction check for EventAI command ACTION_T_SET_FACTION to also check for faction template. 2011-12-16 19:12:42 +01:00
Klark20
bcc470ac43 [11864] Fix SCRIPT_COMMAND_SET_FACTION to check for expected Faction Templates and not factions
Please check your scripts! Note: Similar problems exist in other cases as well.

Signed-off-by: Klark20 <Klark20@online.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-16 02:49:15 +01:00
Vinolentus
ad5755f8ef [11863] Fix possible SQL injection for .tele add command. Close pull request #22
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-12 21:41:16 +01:00
Reamer
396ce3b71d [11862] Do not overwrite channel spells with other channel spells. Close pull request #28
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-12 21:20:00 +01:00
stfx
e0d6952ad1 [11861] Prevent removing template bgs from visible bg list
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-12 15:44:05 +01:00
evil-at-wow
53206fbe26 [11860] Do not log item moves in guild bank log. Thanks to stfx for preparing the patch for master
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-12 15:24:59 +01:00
Schmoozerd
7d05ca0b79 [11859] Enable script command MOVE_TO to also change the orientation 2011-12-11 00:17:50 +01:00
Schmoozerd
fe79f593ca [11858] Implement ScriptEffect of spell 43375. Thanks to Klark20 for research
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-09 21:55:11 +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
20e2dddd6c [11856] Add missing comma in mangos.sql. Thanks to miebaik for pointing 2011-12-02 12:22:18 +01:00
mns
d7e8e75a1e [11855] Update forgotten comment in mangosd.conf.dist.in
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-30 21:04:05 +01:00
Schmoozerd
fb64df10bd [11854] Comment structure of script storage 2011-11-30 20:31:01 +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
Xfurry
83e85416f4 [11851] Implement spell effects for Kalecgos
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-29 21:36:22 +01:00
PSZ
f9a259dc44 [11850] Add additional flag SELECT_FLAG_NOT_IN_MELEE_RANGE
this allows to select targets that are not in melee range with SelectAttackingTarget

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-28 16:33:40 +01:00
Sergey
93c419460f Update src/game/SpellEffects.cpp 2011-11-28 09:49:37 +06:00
Alex
3199d72422 check unitTarget pointer 2011-11-28 09:22:23 +06:00
Schmoozerd
e19943b907 [11849] Implement Condition CONDITION_SKILL_BELOW to be able to check if a player has a skill lower than a given value
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-27 19:12:30 +01:00
Schmoozerd
9eb96b7811 [11849] Add missing pointer check for spell 45989.
Thanks to stfx for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-25 22:51:49 +01:00
Schmoozerd
3ae1f25b9b [11848] Change use of ScriptLibrary OnGOUse return value in GO::Use
Now mainly used to allow or prevent DB scripts use
Also some related code cleaned and reordered

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-25 20:29:42 +01:00
TOM_RUS
c814e10481 Updated SMSG_CAST_FAILED with some new information. 2011-11-17 05:23:28 +04:00
Schmoozerd
a427718cab [11847] Fix teleport spells with TargetType (TARGET_TABLE_X_Y_Z_COORDINATES, NO_TARGET)
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-15 19:55:55 +01:00
Schmoozerd
f4d862ac0a [11846] Changes to default target selection
* Add a new function: Unit::IsSecondChoiceTarget to evaluate if a target will be selected
* Cleanup a bit related code
* SelectHostileTarget
 - Only call AI()->AttackStart for new targets
 - Remove exception for top-most taunter
* Fix a few minor bugs related to selectNextVictim

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-12 21:53:31 +01:00
Sergey
b35dea1703 Update src/game/SpellEffects.cpp 2011-11-11 10:33:56 +06:00
Xfurry
8793abd2c4 [11845] Implement ScriptEffects for spells 45141, 45151, 45206 for Brutallus
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-10 21:25:03 +01:00
Xfurry
d034710e38 [11844] Implement spells 45976, 46177, 45989 for M'uru encounter
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-09 16:58:41 +01:00
Schmoozerd
2166621df0 [11843] More improvements to LoadCreatureAddon, Thanks to Shauren and Vladimir for pointing 2011-11-08 18:40:49 +01:00
Schmoozerd
62c4f5e6bf [11842] Add spell difficulty selection for creature*_addon auras
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-07 21:48:45 +01:00
Schmoozerd
35d2d4a316 [11841] Use difficulty selection also for player cast spells, example 65686
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-07 21:48:12 +01:00
Schmoozerd
6b355bd987 [11840] Fix script command modify_npc_flag
Thanks to faq for pointing.
I checked both udb and ytdb, and they don't use this command yet;
If however you use it already check your scripts. (The toggle/add/remove flag must be set in `data_flags`) Sorry for the inconvenience.
Alos added a forgotten break.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-06 16:06:59 +01:00
Schmoozerd
7246e51a13 [11839] Add support to send custom gameobject anim for a few traps
The way to filter by display id is rather ugly, but no better solution is in sight. This should be good enough until better (likely model-data) support can be implemented.
Also it must be changed if more Traps with this behaviour are found.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-05 20:05:59 +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
Schmoozerd
c3c0098361 [11837] Unify update files to sql style convention, thanks to crackm for pointing 2011-11-04 15:25:06 +01:00