Commit Graph

128 Commits

Author SHA1 Message Date
Spp
a791df6415 Core/Dungeon Finder: Fix crash in Join
(trying to delete a const iterator)

Closes issue 5083

--HG--
branch : trunk
2010-12-10 14:58:45 +01:00
Spp
be73926ab3 Core/Dungeon Finder: Fix incorrect Lfg state after multiple actions.
- Clear state after get out DF system
- Fix player not getting reward after finish a random dungeon
- Remove OnDisband Hook, it's already handled by OnRemoveMember

--HG--
branch : trunk
2010-12-09 19:13:11 +01:00
Spp
4914ca575b Core/Dungeon Finder: Fix a crash in Join
After a random dungeon is expanded to the corresponding dungeons and checked compatible dungeons of players joining. We have no dungeons and no lockmap.

This may only happen when a random dungeon is expanded to no dungeon. And this may be impossible to happen

Closes issue 5066

--HG--
branch : trunk
2010-12-09 14:25:48 +01:00
Spp
4537ba2766 Core/Dungeon Finder: Fix a possible crash in rolechecks when not success
--HG--
branch : trunk
2010-12-09 13:49:04 +01:00
Spp
b434273ed8 Core/Dungeon Finder: Some optimizations
- Reduce core dependencies with LFGMgr
- Remove reduntant calculations in RoleCheck code
- Remove no longer needed functions
- Fix some packet data (Missing 0 when arrays were null)
- Add some debug msgs

closes issue 5042

--HG--
branch : trunk
2010-12-08 21:29:43 +01:00
Spp
fbf525218b Core/Dungeon Finder: revert r14440b0b82 and fix it properly.
That msg was just for debugging purposed and its not needed anymore

--HG--
branch : trunk
2010-12-06 17:23:52 +01:00
Spp
2581c2f70f Core/Dungeon Finder: Fix console spam msg in Leave
--HG--
branch : trunk
2010-12-06 16:48:23 +01:00
Spp
090fb3572f Core: Fix non-PCH build
--HG--
branch : trunk
2010-12-06 02:35:28 +01:00
Spp
dfa1e9532b Core/Dungeon Finder: Use different queues for each team
--HG--
branch : trunk
2010-12-05 17:50:32 +01:00
Spp
e621f5fe98 Core/Dungeon Finder: Code cleanup and minor optimizations
- Extend LfgState to keep control of the state of group and players using LFG
- Move scripts to its own class and initialize only if Dungeon finder is enabled
- Updated comments to doxygen format
- Use constructor initialization list
- All variables are declared in the inner most scope
- Fix some mem leaks
- Remove no longer needed code (Cleaner)
- Normalize handler function names

--HG--
branch : trunk
2010-12-05 17:50:26 +01:00
Spp
916c0f98df Core/Dungeon Finder: Fix members of premade group not being teleported to dungeon after a proposal success
--HG--
branch : trunk
2010-11-28 14:11:22 +01:00
Spp
c2791232c3 Core/Dungeon Finder: After a proposal success only teleport new players
--HG--
branch : trunk
2010-11-28 00:43:21 +01:00
Spp
74ddff0c4e Core/Dungeon Finder: Fix role check algorithm (Some valid combinations were
being marked as invalid)

--HG--
branch : trunk
2010-11-27 22:41:49 +01:00
Spp
c628685d59 Core/Dungeon Finder: Fix a crash in Join
Closes issue 4939

--HG--
branch : trunk
2010-11-26 17:16:21 +01:00
Spp
4ace88e909 Core/Dungeon Finder: Properly remove players from queue (or readd) after a proposal failed
--HG--
branch : trunk
2010-11-26 04:44:57 +01:00
Spp
bbe955c5ab Core/Dungeon Finder: Multiple changes in Join function
- Reformat some code to make it easier to read
- Safe leave and rejoin queue when already queued and trying to rejoin to different dungeons (it was giving error earlier)
- Do not allow to select another dungeon while im the middle of a Lfg dungeon not completed (any dungeon selected is changed by current dungeon)
- Fix error that prevented groups to join another dungeon after completing the current lfg dungeon
Core/Dungeon Finder: Remove references to player from SendLfgUpdateParty and SendLfgUpdatePlayer handlers

--HG--
branch : trunk
2010-11-26 04:43:07 +01:00
Spp
90bf2d93ba Core/Dungeon Finder: Do not allow to join Queue if someone in party is using Battleground/Arena System
Core/Dungeon Finder: Minor code style fix

--HG--
branch : trunk
2010-11-24 15:37:03 +01:00
Spp
825dcbec53 Fix typo in previous commit
--HG--
branch : trunk
2010-11-23 15:57:43 +01:00
Spp
4dcdb396ad Core/Dungeon Finder: Fix role check algorithm (Some valid combinations were being marked as invalid)
--HG--
branch : trunk
2010-11-23 15:01:15 +01:00
Spp
9ec77e0b63 Core/Dungeon Finder: Add missing change from 653b579755 that prevented to join random dungeons
--HG--
branch : trunk
2010-11-22 18:36:08 +01:00
Spp
f9d38be8c1 Core/Dungeon Finder: Fix a crash when trying to join raid browser as a group
--HG--
branch : trunk
2010-11-22 17:00:31 +01:00
Spp
abb4f8f551 Core/Dungeon Finder: Fix visual bug that showed wrong needed roles after joined queue
--HG--
branch : trunk
2010-11-22 14:20:48 +01:00
Spp
a5833f2307 Core/Dungeon Finder: Check lock status of dungeons when joining non-random dungeons (Fixes not checking if raid was closed for the selected difficulty)
Core/Dungeon Finder: Fix some memory leaks when Joining
Core/Dungeon Finder: Do not allow to join dungeon raid browser (Not supported yet)

--HG--
branch : trunk
2010-11-22 13:16:09 +01:00
Spp
a7d262ce03 Core/Dungeon Finder: Do not allow to join if selected dungeons and raids
--HG--
branch : trunk
2010-11-22 12:28:06 +01:00
Spp
a2ef7e18a1 Core/Dungeon Finder: Give rewards only to players that joined selecting random dungeon
--HG--
branch : trunk
2010-11-22 10:19:54 +01:00
Spp
6b6d992d55 Core/Dungeon Finder: Fix 'unknown' player names after group being formed and teleported to dungeon
Original Patch by danik
Closes issue 3846

--HG--
branch : trunk
2010-11-03 14:21:59 +01:00
Spp
1d7100b67f Core/Dungeon Finder: Fix a crash when someone leaves the group while a Rolecheck is active
--HG--
branch : trunk
2010-10-28 17:14:18 +02:00
Spp
3ac979e624 Core/Dungeon Finder: Fix a crash in UpdateProposal (added in 66a8af8214)
Closes issue 4564

--HG--
branch : trunk
2010-10-25 12:21:42 +02:00
Spp
b1d759e79f Core/Dungeon Finder: Fix proposal window now being removed after a proposal success
--HG--
branch : trunk
2010-10-25 11:26:22 +02:00
Spp
18de18e7b9 Core/Dungeon Finder: Prevent a crash in Leave by checking Player or Group exist
--HG--
branch : trunk
2010-10-25 11:26:01 +02:00
Spp
4cd2431cd7 Core/Dungeon Finder: Redo Find algorithm to select one proposal (not all and later pick one)
--HG--
branch : trunk
2010-10-25 07:16:46 +02:00
Spp
131fb1580b Core/Dungeon Finder: Use internal Teleport function when teleporting someone out of the dungeon after a kick (To ensure all spells are being properly removed)
--HG--
branch : trunk
2010-10-19 12:39:24 +02:00
Spp
c2413f2698 Core/Dungeon Finder: Fix players getting stuck after being teleported to dungeon while in a taxi flight
--HG--
branch : trunk
2010-10-19 12:39:03 +02:00
azazel
3bd1ee0665 Fix most of the recently introduced warnings
--HG--
branch : trunk
2010-10-16 13:32:30 +06:00
Spp
aae2f3b48e Core/Dungeon Finder: Partial revert "cfad2a99ac" (remove use of Luck of the draw and Dungeon Deserter Spells)
Note: Will be readed later after some functions remake

--HG--
branch : trunk
2010-10-09 14:56:51 +02:00
click
613b81f36f REALLY fix the CRLF-crap...
--HG--
branch : trunk
2010-10-07 15:54:07 +02:00
click
f0c4241ea4 Remove the accidental additions of CRLF-crap from the header updates
--HG--
branch : trunk
2010-10-07 15:35:36 +02:00
click
a67d7c9afd Copyright header updates - part 3... (and some whitespace cleanups)
--HG--
branch : trunk
2010-10-07 14:00:52 +02:00
click
df66aee929 Yet more copyright header updates
--HG--
branch : trunk
2010-10-07 13:38:35 +02:00
Spp
c47c1b43cc Core/Dungeon Finder: Move all debug msgs to Debug.
--HG--
branch : trunk
2010-10-06 18:48:39 +02:00
Spp
5606bdd9ab Core/Dungeon Finder: Add log error when no areatrigger found for map and difficulty
--HG--
branch : trunk
2010-10-06 17:31:54 +02:00
Spp
58c535a7cd Core/Dungeon Finder: Move back some debug msgs to Debug level.
--HG--
branch : trunk
2010-10-06 17:26:12 +02:00
Spp
e7817a4a49 Core/Dungeon Finder: After a new player have been found for a existing LFG group, teleport player to any of the players inside dungeon not to the entrance. Also do not teleport players inside dungeon to entrance
--HG--
branch : trunk
2010-10-06 15:52:39 +02:00
Spp
0f09690c5c Core/Dungeon Finder: Fix a typo in 7539ae56e9 that prevented individual players to join queue
Thanks to p.alexej@freenet.de for pointing the typo

--HG--
branch : trunk
2010-10-02 05:40:33 +02:00
_manuel_
6246d79b55 Core/Dungeon Finder: Modified LFGMgr to use DF quests to reward.
* In this way we will store the character's day progress in the db, preventing to lose the information because of a crash/restart/shutdown.

Patch by Gyullo and me, thanks to Spp & linencloth for help.

* The next commit will modify the current Quest System to support DF quests.

--HG--
branch : trunk
2010-09-28 00:19:37 -03:00
Spp
b6ebbd744c Core/Dungeon Finder: Fix some errors in Join
- return Internal error if group/player already in queue (They shouldn't be able to join when already queued)
- Fix crash when trying to delete player selected dungeons (cause was forcing a leave in join to keep consistency) and return a proper lfg error
- Fixes issue 4262

--HG--
branch : trunk
2010-09-30 13:52:29 +02:00
Spp
b4b3eeee10 Core/Dungeon Finder: Do not allow to join LFG if queued to Battleground or Arena
--HG--
branch : trunk
2010-09-28 17:49:30 +02:00
Spp
1afdd143d9 Core/Dungeon Finder: Fix bad use of iterator that made LFG inconsistent and sometimes crash
Closes issue 4009

--HG--
branch : trunk
2010-09-27 23:19:22 +02:00
Spp
ef74eb171d Core/Dungeon Finder: Fix a typo in 2a4986d5a0 that made server crash
Fixes issue 4193

--HG--
branch : trunk
2010-09-26 15:13:21 +02:00
Spp
2718701708 Core/Dungeon Finder: Add support for dungeon cooldown and luck of the draw spells
--HG--
branch : trunk
2010-09-26 14:49:55 +02:00