Skip to content

Commit

Permalink
Merge remote branch 'plbot/master'
Browse files Browse the repository at this point in the history
Conflicts:
	README.PLAYERBOT
	mangos_botguy.sql
	src/game/CharacterHandler.cpp
	src/game/Chat.cpp
	src/game/Chat.h
	src/game/ChatHandler.cpp
	src/game/Creature.h
	src/game/GossipDef.h
	src/game/Group.cpp
	src/game/Makefile.am
	src/game/NPCHandler.cpp
	src/game/Player.cpp
	src/game/Player.h
	src/game/QuestHandler.cpp
	src/game/World.cpp
	src/game/WorldSession.cpp
	src/game/playerbot/PlayerbotClassAI.cpp
	src/mangosd/mangosd.conf.dist.in
	win/VC100/game.vcxproj
	win/VC100/game.vcxproj.filters
	win/VC90/game.vcproj

Signed-off-by: unknown <Clément@.(none)>
  • Loading branch information
unknown authored and unknown committed Dec 20, 2010
2 parents 5f30d2c + 30adc69 commit 397cc2a
Show file tree
Hide file tree
Showing 48 changed files with 12,060 additions and 1,298 deletions.
268 changes: 0 additions & 268 deletions README.AntiCheat

This file was deleted.

11 changes: 9 additions & 2 deletions README.PLAYERBOT
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Commands:
/t BOTNAME stay
/t BOTNAME assist (you'll need to be attacking something and the bot only does melee atm)
/t BOTNAME spells (replies with all spells known to bot)
/t BOTNAME cast <SPELLID>
/t BOTNAME cast <SPELL SUBSTRING>
/t BOTNAME cast <SPELLID | (part of) SPELLNAME | SPELLLINK>
/t BOTNAME use <ITEM LINK>
/t BOTNAME equip <ITEM LINK>
/t BOTNAME reset (will reset states, orders and loot list)
Expand All @@ -32,6 +31,14 @@ Commands:
/t BOTNAME survey (bot shows all available gameobjects, within a local perimeter around the bot)
/t BOTNAME find <GAMEOBJECT LINK> (bot will travel to the gameobject location and then wait)
/t BOTNAME get <GAMEOBJECT LINK> (bot will fetch the selected gameobject and then return to the player)
/t BOTNAME quests (List bot's current quests)
/t BOTNAME drop <QUESTLINK> (Drop a quest)
/t BOTNAME orders (Shows bot's combat orders)
/t BOTNAME pet spells (Shows spells known to bot's pet. Autocast spells will be shown in green)
/t BOTNAME pet cast <SPELLID | (part of) SPELLNAME | SPELLLINK>
/t BOTNAME pet toggle <SPELLID | (part of) SPELLNAME | SPELLLINK> (Toggle autocast for a given spell)
/t BOTNAME pet state (Shows current react mode of bot's pet)
/t BOTNAME pet react <(a)ggressive | (d)efensive | (p)assive> (Set bot's pet reaction mode)

Shortcuts:
c = cast
Expand Down
4 changes: 2 additions & 2 deletions TODO.PLAYERBOT
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Combat order TANK
Combat order HEAL

///---Temporary item enchantments---///
Rogue : Poison
[DONE] Rogue : Poison
Warrior : Sharpening Stone, Rune of Warding, Rune of Shielding.

//---After fear bot's lose target---///
Expand All @@ -26,4 +26,4 @@ Needs some fix.
Rogue : some abilitys require Rogue to be stealthed and behind target.

///---Implement locale independet way of getting spellIDs---///
Hardcode lowest rank spellID, use function to get highest rank
[DONE] Hardcode lowest rank spellID, use function to get highest rank
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ AC_CONFIG_FILES([
src/shared/Database/Makefile
src/shared/SystemConfig.h
src/game/Makefile
src/game/playerbot/Makefile
src/game/playerbot/config.h
src/game/playerbot/playerbot.conf.dist
src/game/vmap/Makefile
src/realmd/Makefile
src/realmd/realmd.conf.dist
Expand Down
4 changes: 2 additions & 2 deletions src/game/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
Expand All @@ -17,7 +17,7 @@
## Process this file with automake to produce Makefile.in

## Sub-directories to parse
SUBDIRS = vmap AuctionHouseBot
SUBDIRS = PlayerBot vmap AuctionHouseBot

## CPP flags for includes, defines, etc.
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/vmap -I$(srcdir)/../realmd -I$(srcdir)/../../dep/include/g3dlite -DSYSCONFDIR=\"$(sysconfdir)/\"
Expand Down
2 changes: 1 addition & 1 deletion src/game/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ void Map::Remove(Player *player, bool remove)
SendRemoveTransports(player);
UpdateObjectVisibility(player,cell,p);

player->ResetMap();
// player->ResetMap();
if( remove )
DeleteFromWorld(player);
}
Expand Down
8 changes: 6 additions & 2 deletions src/game/Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class Spell;
class Item;

// Playerbot mod
class PlayerbotAI;
class PlayerbotMgr;
#include "playerbot/PlayerbotMgr.h"
#include "playerbot/PlayerbotAI.h"

typedef std::deque<Mail*> PlayerMails;

Expand Down Expand Up @@ -1631,6 +1631,10 @@ class MANGOS_DLL_SPEC Player : public Unit
void AddTimedQuest( uint32 quest_id ) { m_timedquests.insert(quest_id); }
void RemoveTimedQuest( uint32 quest_id ) { m_timedquests.erase(quest_id); }

void chompAndTrim(std::string& str);
bool getNextQuestId(const std::string& pString, unsigned int& pStartPos, unsigned int& pId);
bool requiredQuests(const char* pQuestIdString);

/*********************************************************/
/*** LOAD SYSTEM ***/
/*********************************************************/
Expand Down
Loading

0 comments on commit 397cc2a

Please sign in to comment.