Commit graph

1259 commits

Author SHA1 Message Date
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
Laise
68eb5f118c [11767] fix spell mod sending 2 2011-08-05 08:53:22 +03:00
VladimirMangos
0220101f7e [11759] Fixed money reward for max level and repeatable quests
* Remove excluding normal repeatable quests not first cases for money/xp
   rewards. This is not confirmed functionality and possible related wrong
   repeating flag set for "first" repeating quest versions. Whern exist
   normal quest and second repeating quest with same details.
 * At max level positive RewOrReqMoney already included in RewMoneyMaxLevel
   and then not need rewarded\
 * When RewOrReqMoney > RewMoneyMaxLevel then RewMoneyMaxLevel values
   ignored and always used RewOrReqMoney as money reward.

Thanks to Lynx3d for original problem research.
2011-07-28 18:49:56 +04:00
Laise
ab062be208 [11752] fix spell mod sending 2011-07-25 07:23:44 +03:00
Laise
e178c79d51 [11748] Replace SpellModifier struct by direct aura access (this should fix charge drops of 36032) also revert [11740] 2011-07-20 15:41:39 +03:00
VladimirMangos
3e0cacbdaf [11743] Fixed auction crash in case missing localization for only some items
Source crash in missing locale strings array size check before access
to it in locale structure.

Also move repeating code for access to wide used localization string arrays to ObjectMgr functions.
2011-07-19 02:34:16 +04:00
rowman
222612fa51 [11740] Restore spellmod charges used by fail spell cast
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also

 * Prevent more one charge use for same spell cast
 * Cleanup enum SpellState from unused cases
 * Propertly remove spellmod charges at spell finish in case pet/totem caster
2011-07-16 10:14:03 +04:00
Laise
0254ad6bf9 [11738] make armor bonuses from certain items be unaffected by base armor mods 2011-07-14 12:13:13 +03:00
SilverIce
94133107c7 [11727] Interrupt spline movement at teleporting
this fixes the position desync issue caused by teleport packets
2011-07-09 19:23:53 +03:00
SilverIce
9d566398ad [11720] Implement spline movement subsystem
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

 1. Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
 2. Precission increased. There are no more position desync issues since client's position calculation formulas used.
 3. Now possible to move by paths with multiple points, send whole path to client.
2011-07-08 17:25:13 +03:00
VladimirMangos
f4be64ff48 [11715] Remove World::setConfigPos for uint32 and move check to all uint32 config values.
As part changes move to int32 list as expected by values:
 * CONFIG_INT32_QUEST_HIGH_LEVEL_HIDE_DIFF
 * CONFIG_INT32_QUEST_LOW_LEVEL_HIDE_DIFF

Please report if mangosd will report unexpected error (< 0) for some signed config option.
I check manually but maybe miss some...

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-07 03:47:34 +04:00
VladimirMangos
cc11366d6b [11702] Alsways attempt generate randomProperty for item in at create if value not pre-selected.
This resolve all existed cases when we miss assign random property id.

Also move random property/suffix check from item creating to server load time.
2011-06-30 19:19:02 +04:00
VladimirMangos
04a469f393 [11670] Implement in proper way ITEM_SPELLTRIGGER_ON_STORE (5)
Item spells with this trigger mode expected casted at item add
to inventory/equip slots (exclude bank), and spell auras (if any)
applied while item in like slots. Item expected destroyed at aura
remove by some reason.

Implementation note: because 2 step way item moves from slot to slot
related auras not removed at internal RemoveItem call and removed only
at directly item destroy/remove from player function calles, or at StoreItem
(if item added to not appropriate slot). So need in future careful with new
RemoveItem call cases.
2011-06-24 22:55:58 +04:00
VladimirMangos
3bea0ec357 [11657] Daily/weekly quests must still reward expirience/max level money at repeating. 2011-06-19 22:11:45 +04:00
mumion
328a62f18f [11656] For not first repeating quest avoid reward money as xp replacement.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-19 21:51:32 +04:00
VladimirMangos
45292a9d56 [11650] Group members see same group member ghosts.
Also drop battleground case that just same check in fact.

Original patch and research provided by Den.
2011-06-19 04:00:51 +04:00
Den
f1fcefce4f [11648] Breath/fatigue/fire damage timers tick each 2 sec. 2011-06-19 02:46:09 +04:00
cmaranec
2d7768a5ab [11646] Implement support item converting at expire
Example: items 44623->44625->44627 convertion chain

* New table `item_enchantment_template` store original->final item pairs
  Original item must have duration setup.
* Small change in GetItemConvert for consistence (now 0 returned if no convert pair instead original entry id)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-18 21:15:20 +04:00
VladimirMangos
a97370a7f0 [11645] Fixed work EffectSummonChangeItem, for example, for item. 17223
Also
* Move item comvert code from spell effect to new function.
* Some code style cleanups.
2011-06-18 21:09:42 +04:00
SeTM
9300842b04 [11643] Restore skill/level checks at traning non-prof spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-18 17:11:11 +04:00