mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
Fix for luabind not compiling (jumbers), bunch of api upgrades for lua, changed where spells and items load quests from, removed some old code. etc etc.
This commit is contained in:
-145
@@ -1681,124 +1681,6 @@ void EntityList::QueueClients(Mob* sender, const EQApplicationPacket* app, bool
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
rewrite of all the queue close methods to use the update manager
|
||||
void EntityList::FilterQueueCloseClients(uint8 filter, uint8 required, Mob* sender, const EQApplicationPacket* app, bool ignore_sender, float dist, Mob* SkipThisMob, bool ackreq){
|
||||
if(dist <= 0) {
|
||||
dist = 600;
|
||||
}
|
||||
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket* tmp_app = app->Copy();
|
||||
#else
|
||||
float dist2 = dist * dist; //pow(dist, 2);
|
||||
#endif
|
||||
|
||||
LinkedListIterator<Client*> iterator(client_list);
|
||||
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements()) {
|
||||
|
||||
Client* ent = iterator.GetData();
|
||||
uint8 filterval=ent->GetFilter(filter);
|
||||
if(required==0)
|
||||
required=1;
|
||||
if(filterval==required){
|
||||
if ((!ignore_sender || ent != sender) && (ent != SkipThisMob)
|
||||
) {
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
if(ent->Connected()) {
|
||||
ent->GetUpdateManager()->QueuePacket(tmp_app, ackreq, sender, ent->DistNoRoot(*sender));
|
||||
}
|
||||
#else
|
||||
if(ent->Connected() && (ent->DistNoRoot(*sender) <= dist2 || dist == 0)) {
|
||||
ent->QueuePacket(app, ackreq);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket::PacketUsed(&tmp_app);
|
||||
#endif
|
||||
}
|
||||
|
||||
void EntityList::QueueCloseClients(Mob* sender, const EQApplicationPacket* app, bool ignore_sender, float dist, Mob* SkipThisMob, bool ackreq,uint8 filter) {
|
||||
if (sender == 0) {
|
||||
QueueClients(sender, app, ignore_sender);
|
||||
return;
|
||||
}
|
||||
if(dist <= 0) {
|
||||
dist = 600;
|
||||
}
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket* tmp_app = app->Copy();
|
||||
#else
|
||||
float dist2 = dist * dist; //pow(dist, 2);
|
||||
#endif
|
||||
|
||||
|
||||
LinkedListIterator<Client*> iterator(client_list);
|
||||
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements()) {
|
||||
|
||||
Client* ent = iterator.GetData();
|
||||
|
||||
if ((!ignore_sender || ent != sender) && (ent != SkipThisMob)) {
|
||||
uint8 filter2=ent->GetFilter(filter);
|
||||
if(ent->Connected() &&
|
||||
(filter==0 || (filter2==1 ||
|
||||
(filter2==99 && entity_list.GetGroupByClient(ent)!=0 &&
|
||||
entity_list.GetGroupByClient(ent)->IsGroupMember(sender))
|
||||
|| (filter2==98 && ent==sender)))
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
) {
|
||||
ent->GetUpdateManager()->QueuePacket(tmp_app, ackreq, sender, ent->DistNoRoot(*sender));
|
||||
}
|
||||
#else
|
||||
&& (ent->DistNoRoot(*sender) <= dist2 || dist == 0)) {
|
||||
ent->QueuePacket(app, ackreq, Client::CLIENT_CONNECTED);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket::PacketUsed(&tmp_app);
|
||||
#endif
|
||||
}
|
||||
|
||||
void EntityList::QueueClients(Mob* sender, const EQApplicationPacket* app, bool ignore_sender, bool ackreq) {
|
||||
LinkedListIterator<Client*> iterator(client_list);
|
||||
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket* tmp_app = app->Copy();
|
||||
#endif
|
||||
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements())
|
||||
{
|
||||
Client* ent = iterator.GetData();
|
||||
|
||||
if ((!ignore_sender || ent != sender))
|
||||
{
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
ent->GetUpdateManager()->QueuePacket(tmp_app, ackreq, sender, ent->DistNoRoot(*sender));
|
||||
#else
|
||||
ent->QueuePacket(app, ackreq, Client::CLIENT_CONNECTED);
|
||||
#endif
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket::PacketUsed(&tmp_app);
|
||||
#endif
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
void EntityList::QueueManaged(Mob* sender, const EQApplicationPacket* app, bool ignore_sender, bool ackreq) {
|
||||
LinkedListIterator<Client*> iterator(client_list);
|
||||
|
||||
@@ -1813,33 +1695,6 @@ void EntityList::QueueManaged(Mob* sender, const EQApplicationPacket* app, bool
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
}*/
|
||||
|
||||
void EntityList::QueueManaged(Mob* sender, const EQApplicationPacket* app, bool ignore_sender, bool ackreq) {
|
||||
LinkedListIterator<Client*> iterator(client_list);
|
||||
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket* tmp_app = app->Copy();
|
||||
#endif
|
||||
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements())
|
||||
{
|
||||
Client* ent = iterator.GetData();
|
||||
|
||||
if ((!ignore_sender || ent != sender))
|
||||
{
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
ent->GetUpdateManager()->QueuePacket(tmp_app, ackreq, sender, ent->DistNoRoot(*sender));
|
||||
#else
|
||||
ent->QueuePacket(app, ackreq, Client::CLIENT_CONNECTED);
|
||||
#endif
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
#ifdef PACKET_UPDATE_MANAGER
|
||||
EQApplicationPacket::PacketUsed(&tmp_app);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user