Subv2112
bbfb21022f
Fixed compile, thanks Lopin for pointing out
2011-12-28 07:10:59 -05:00
Subv2112
d7266c3cae
Core/SAI: Added also SMART_TARGET_OWNER_OR_SUMMONER to SMART_ACTION_MOVE_TO_POS.
...
Codestyle
Signed-off-by: Subv2112 <[email protected] >
2011-12-27 20:37:42 -05:00
Subv2112
645a10d76f
Core/SAI: Added support for SMART_TARGET_CREATURE_RANGE, SMART_TARGET_CREATURE_GUID, SMART_TARGET_CREATURE_DISTANCE, SMART_TARGET_GAMEOBJECT_RANGE, SMART_TARGET_GAMEOBJECT_GUID, SMART_TARGET_GAMEOBJECT_DISTANCE, SMART_TARGET_CLOSEST_CREATURE and SMART_TARGET_CLOSEST_GAMEOBJECT in SMART_ACTION_MOVE_TO_POS
...
Signed-off-by: Subv2112 <[email protected] >
2011-12-27 20:25:50 -05:00
Subv2112
c145c67331
Core/SAI: Enabled SMART_TARGET_STORED
...
Signed-off-by: Subv2112 <[email protected] >
2011-12-27 20:23:55 -05:00
Machiavelli
6c03bf9535
Core/Misc: Some random meaningless Engrish to English conversion in a method name because Discovered is too lazy to do it himself.
2011-12-19 22:06:29 +01:00
Spp
d59c5e627f
Fix warnings
2011-12-15 11:12:15 +01:00
Machiavelli
aefbc5701c
Core/SAI: Remove an improper value in case switch.. no idea when/how/why that got there, but it's conflicting with recent changes.
2011-12-11 19:04:21 +01:00
Machiavelli
1b2c413933
Core/SAI: Preliminary implementation of SMART_EVENT_GAME_EVENT_START and SMART_EVENT_GAME_EVENT_END {param1: game_event.entry}
2011-12-11 16:23:43 +01:00
kaelima
b10477a166
Core/SmartAI: Fixed crashes when using timed actionlist for gameobjects.
2011-12-10 13:44:06 +01:00
Machiavelli
f5b3553bb3
Core/SAI: Typo in second param of SMART_ACTION_SEND_GOSSIP_MENU. This is npc_text_id, not gossip_option_id. Wiki needs to be updated accordingly.
...
Thanks to Prodigy for pointing out.
2011-12-06 12:37:05 +01:00
kaelima
a919265623
Core/DB: Fix character creation in Player::SaveToDB.
...
And some misc comments/whitespaces
2011-11-26 01:53:44 +01:00
Shauren
638693e78f
Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.)
2011-11-23 17:55:16 +01:00
kaelima
17e1f8a0d5
Core/SmartAI: Remove the requirement for only players to trigger SMART_ACTION_SOUND.
...
Closes #517
2011-11-13 06:40:14 +01:00
kaelima
bfdceaf07e
Core/SmartAI: Initialized player pointer before use
...
Should fix #3757
2011-10-31 13:35:06 +01:00
kaelima
3d4d147196
Core/SmartAI:
...
- Drop useless actions SMART_ACTION_ENTER_VEHICLE, SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.
(Vehicles are aura-driven, just remove or add the proper aura to achieve the same as these actions did)
- Fixed possible crash in SMART_ACTION_SEND_GOSSIP_MENU
- Areatriggers should not be triggered by dead players
2011-10-31 02:01:17 +01:00
Nay
0b51b4ef0a
Core/SAI: SMART_ACTION_TALK, if our action target is a player, use its guid as whisperGuid (used in whispers and in text $vars)
2011-10-30 14:26:49 +00:00
Nay
f17879d423
Core/SAI: Add input validation (params) to certain target types and update target comments
2011-10-30 13:12:39 +00:00
kaelima
f958fdf246
Core/SmartAI: Add actions SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.
...
Fix maxdist for SMART_TARGET_CLOSEST_PLAYER.
2011-10-25 23:50:00 +01:00
kaelima
6ca1487c48
Core/SmartAI: Fix target type SMART_TARGET_CLOSEST_PLAYER
2011-10-25 21:43:24 +01:00
kaelima
199bcf1a88
Core/SmartAI: Allow SMART_ACTION_FOLLOW to take 0 values for dist and angle - will set them to their "default" following values.
2011-10-25 19:08:21 +01:00
kaelima
f2000f3fb5
Core/Misc: Some minor cleanups
...
Fixed SQL added in prev commit.
2011-10-24 23:33:17 +01:00
kaelima
3a3af64f68
Core/SmartAI:
...
- Fixed some issues with SMART_ACTION_SET_FLY (#1073 )
- Fixed allowing 0 as input for SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST (#2680 )
- Some cleanup
2011-10-24 23:21:34 +01:00
Shocker
ce034bd544
Core/SmartAI: Delay spell cast events (SMART_ACTION_CAST) when another spell is already being casted.
...
Idea by ET
2011-10-23 21:34:50 +03:00
Nay
fec3db6e5d
Core/SAI: Fix event phases when phase > 2
...
Again, phase ids != phase masks
2011-10-23 17:50:31 +01:00
Nay
5f58965fad
Tiny typo on previous commit.
2011-10-23 13:01:04 +01:00
Geekotron
c2125ece3b
Core/SAI: Add SMART_ACTION_SEND_GOSSIP_MENU.
...
It allows the scripter to change the gossip (and gossip menu option) of a creature with SAI
Param1 = `gossip_menu`.`entry`
Param2 = `gossip_menu_option`.`id`
2011-10-23 12:59:08 +01:00
kaelima
be0b2fcf97
Core/Grid:
...
- Simplified CellArea calculation (Original author: SilverIce)
- Removed unused code in Cell class (Original author: SilverIce)
- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage
c29ff41001
Rename some classes in grid system.
...
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
megamage
c8251bc619
Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out.
2011-10-13 17:01:55 -04:00
megamage
d156e066cf
Rename "SetPosition" to "UpdatePosition".
...
Replace CreatureRelocation in scripts with new Creature::SetPosition.
2011-10-10 17:08:01 -04:00
Bootz
5b4c7783c2
REPO: Code-style clean-ups
...
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go
~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
Bootz
81c0a3a847
REPO: code-style clean-up
...
* Fixed pPlayer->player
* Fixed pCreature->creature
~DevNote: codestyle for Player should be (*player), not *plr or *p...
same goes for Creatures (*creature)... more cleaning needed.
We've way too many codestyles happening here.
2011-10-07 11:08:09 -05:00
Bootz
f1ccb83dc0
REPO: Code-style change
...
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Rat
e23fe1845f
Core/SmartAI: Updated SMART_ACTION_RESPAWN_TARGET, should work for GOs as intented. Param1 is to set GO respawn time.
2011-10-07 14:12:09 +02:00
Shauren
2ff1c28c4c
Scripts/Icecrown Citadel
...
* The Lich King
2011-10-05 20:48:34 +02:00
Shauren
8a3ced48c1
Core/Scripts: Limited possible phase number for EventMap to prevent overflows
2011-10-05 16:43:43 +02:00
Nay
8373e6c32e
Core/Creature: Do not attack non-combat pets.
...
Fixes an issue where non-combat pets were aggroing other creatures
2011-10-01 16:57:10 +01:00
Nay
0f7d9e4837
Core/SAI: Fix an issue where SAI was ignoring civilian and passive unit flags
...
Closes #2526
Disclaimer: This was not thoroughly tested; report any issue caused by this change.
2011-10-01 16:29:23 +01:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b
Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*"
2011-09-29 09:32:55 +02:00
Machiavelli
18665d19b4
Core/Scripts: Add an additional parameter to DoZoneInCombat to define the max range to find a target in to engage (instead of hard coded 50 yards).
2011-09-28 11:49:25 +02:00
Machiavelli
88d30aaa65
Merge pull request #3174 from Souler/pull
...
Scripts/Ulduar: Make Ignis enter evade mode if pulled out from his fight area.
2011-09-28 01:32:33 -07:00
Shocker
6dc09248fd
Merge pull request #3162 from megamage/master
...
Fix incorrect logic in PetAI. Solve #3155 .
2011-09-26 06:44:33 -07:00
Shauren
b07cc3751f
Core/Scripts: Added NULL checks to new target selectors, threat references aren't guaranteed to be valid always, also added (default true) player typeid check to NonTankTargetSelector
2011-09-24 23:30:11 +02:00
Shauren
da0229da8f
Core/Scripts: Implemented 2 new target selectors, one specialized for spells, checking auras, range and attributes; and the other is a very simple non-tank selection what is sufficient for most cases
2011-09-24 19:40:57 +02:00
Souler
99c63e86ae
Scripts/Ulduar: Make XT-002 and Ignis enter evade mode if pulled out from their fight areas.
...
Also implement a default case for EnterEvadeIfOutOfCombatArea.
2011-09-22 22:14:52 +02:00
megamage
738f94eed3
Fix incorrect logic in PetAI. Solve #3155 .
2011-09-21 12:53:29 -04:00
Rat
0ab9dd3f9f
Core/SmartAI: Re-apply accidentally removed crash fix, whoops
2011-09-20 17:56:47 +02:00
Rat
41ad855bdf
Core/SmartAI: fixed SMART_ACTION_SOUND, note: target(s) must be player(s)
...
Signed-off-by: Rat <[email protected] >
2011-09-20 17:46:40 +02:00
Shauren
80800def40
Core/Scripts: Reverted part of 7afb179185, fixes selecting random target starting at given position
...
Closes #3127
2011-09-20 09:03:12 +02:00