Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #31  
Old 11-22-2004, 01:39 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

The LoginServer Source? 0.o
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #32  
Old 11-22-2004, 02:20 PM
1337357
Fire Beetle
 
Join Date: Nov 2004
Posts: 3
Default

what is that illegal?
Reply With Quote
  #33  
Old 11-22-2004, 03:58 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Kind of useless without the eqcrypto.dll, no?

-edit-
Besides, it isn't complete anyway.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #34  
Old 11-23-2004, 01:07 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Quote:
Originally Posted by Cisyouc
Kind of useless without the eqcrypto.dll, no?

-edit-
Besides, it isn't complete anyway.
It's useless either way because they changed the crypto and the protocol lol
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #35  
Old 11-23-2004, 01:09 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by daeken_bb
Quote:
Originally Posted by Cisyouc
Kind of useless without the eqcrypto.dll, no?

-edit-
Besides, it isn't complete anyway.
It's useless either way because they changed the crypto and the protocol lol
True, but doesn't mean you couldn't RUN it (even if you cant log into it)

...not that that would help.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #36  
Old 11-23-2004, 01:11 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Quote:
Originally Posted by Cisyouc
Quote:
Originally Posted by daeken_bb
Quote:
Originally Posted by Cisyouc
Kind of useless without the eqcrypto.dll, no?

-edit-
Besides, it isn't complete anyway.
It's useless either way because they changed the crypto and the protocol lol
True, but doesn't mean you couldn't RUN it (even if you cant log into it)

...not that that would help.
With slight modification (actually, just define MINILOGIN or PUBLIC_LOGIN) you could run it without eqcrypto.dll I'm sure :P

Just completely pointless
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #37  
Old 11-23-2004, 09:13 AM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

Please:
1) Don't post things that are not your own work.
2) Don't post 981273918273 lines of source in here.
Reply With Quote
  #38  
Old 06-12-2005, 12:16 AM
SuedeWorthey
Sarnak
 
Join Date: Jan 2005
Posts: 64
Default Jr. Dev Code

I have been working on some of the 0.6.1 DR1 Bugs, and I am interested in becoming a Jr. Dev...
http://www.eqemulator.net/forums/showthread.php?t=18731

Take a look and tell me what you think so far.
Thanks,
-Suede-
Reply With Quote
  #39  
Old 06-13-2005, 06:07 PM
arigo
Fire Beetle
 
Join Date: May 2005
Posts: 20
Default

// You have to run the program before deciding
// Remember, a promise is a promise
#include <iostream>
using namespace std;

int main()
{
cout << "I would like the privilege to see the dev board for educational purposes. "
<< endl << "However, I do not want the gay junior dev title."
<< endl << endl << "You will allow me to see the board right?"
<< endl << "(Y)es/(N)o:";
char willnottakenoforanswer = 'n';

cin >> willnottakenoforanswer;

while ((willnottakenoforanswer!='y') && (willnottakenoforanswer!='Y'))
{ cout << "Wrong answer, please try again." << endl;
cin >> willnottakenoforanswer;
}
cout << "That was the right choice.";
return 0;
}
Reply With Quote
  #40  
Old 07-03-2005, 12:52 AM
ffchung
Fire Beetle
 
Join Date: May 2005
Location: HK
Posts: 3
Default Jr Dev Code

Want to try dev eqemu code . and how can I update code if needed.
just show at here ? .

// Can item be equipped?

bool ItemCommonInst::IsEquipable(int16 race, int16 class_) const
{
if (!m_item)
return false;

bool israce = false;
bool isclass = false;

if (m_item->Slots == 0) {
return false;
}

uint32 classes_ = m_item->Common.Classes;
uint32 races_ = m_item->Common.Races;
int32 race_ = 0;
#ifndef PACKETCOLLECTOR
race_ = GetArrayRace(race);
#endif
// @merth: can this be optimized? i.e., will (race & common->Races) suffice?
if( ((1<<(class_-1)) & classes_) > 0 )
{
isclass = true;
}
if( ((1<<(race-1)) & races_) > 0 )
{
isclass = true;
}
/*
for (int cur_class = 1; cur_class<=15; cur_class++) {
if (classes_ % 2 == 1) {
if (cur_class == class_) {
isclass = true;
}
}
classes_ >>= 1;
}

for (unsigned int cur_race = 1; cur_race <= 15; cur_race++) {

if (races_ % 2 == 1) {
if (cur_race == race_) {
israce = true;
}
}
races_ >>= 1;
}
*/
return (israce && isclass);
}

Last edited by ffchung; 07-03-2005 at 03:07 PM..
Reply With Quote
  #41  
Old 07-03-2005, 03:12 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Please explain what the above does

There's a line enclosed in #ifdef PACKETCOLLECTOR... there's a whole block just commented out. Did you even make any changes or did you just copy and paste a block from the code verbatim?
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #42  
Old 07-03-2005, 03:31 AM
ffchung
Fire Beetle
 
Join Date: May 2005
Location: HK
Posts: 3
Default Code Explain

That is code in eqemu
commom\item.cpp

I have optimize the code. And I think there was a bug that BERSERKER always return false.

Function : ItemCommonInst::IsEquipable

Code:
bool ItemCommonInst::IsEquipable(int16 race, int16 class_) const
{
	if (!m_item)
		return false;
	
	bool israce = false;
	bool isclass = false;
	
	if (m_item->Slots == 0) {
		return false;
	}
	
	uint32 classes_ = m_item->Common.Classes;
	uint32 races_ = m_item->Common.Races;
	int32 race_ = 0;
	#ifndef PACKETCOLLECTOR
	race_ = GetArrayRace(race);
	#endif
	
	// Changed by ffchung
             // new code start
	if( ((1<<(class_-1)) & classes_) > 0 )
	{
		isclass = true;
	}
	if( ((1<<(race-1)) & races_) > 0 )
	{
		isclass = true;
	}
             // new code end

             // old code start
	/*
	// @merth: can this be optimized?  i.e., will (race & common->Races) suffice?
	for (int cur_class = 1; cur_class<=15; cur_class++) {
		if (classes_ % 2 == 1) {
    		if (cur_class == class_) {
    			isclass = true;
			}
		}
		classes_ >>= 1;
	}
	
	for (unsigned int cur_race = 1; cur_race <= 15; cur_race++) {
		
		if (races_ % 2 == 1) {
    		if (cur_race == race_) {
    			israce = true;
   			}
		}
		races_ >>= 1;
	}
	*/
             // old code end

	return (israce && isclass);
}

Last edited by ffchung; 07-03-2005 at 03:08 PM..
Reply With Quote
  #43  
Old 07-03-2005, 03:12 PM
arigo
Fire Beetle
 
Join Date: May 2005
Posts: 20
Default

I don't understand why we have to prove anything about ourselves to gain acess to the board. It's not as if there are any rewards to being a dev to begin with. I want access to the board for information that it might have. Maybe I'll do something useful, and maybe I won't. What do you have to lose?
Reply With Quote
  #44  
Old 07-03-2005, 07:11 PM
ffchung
Fire Beetle
 
Join Date: May 2005
Location: HK
Posts: 3
Default Code Update

That is code in eqemu
commom\item.cpp

I have optimize the code. And I think there was a bug that BERSERKER always return false.

I am not sure what
Function : ItemCommonInst::IsEquipable


Code:
Code:
bool ItemCommonInst::IsEquipable(int16 race, int16 class_) const
{
	if (!m_item)
		return false;

	if (m_item->Slots == 0) {
		return false;
	}
	
	uint32 classes_ = m_item->Common.Classes;
	uint32 races_ = m_item->Common.Races;

	// ************************************
	// ffchung : 
	// I dont know what it realy want to
	// As I see it want to convent the the race value
	// but why only use when PacketCollector 
	// else race_ only will keep at zero . 
	// then it will never return true
	// so I am not to use it at this time.
	// but keep the code here for later use.
	// ************************************

             int32 race_ = 0;
	#ifndef PACKETCOLLECTOR
	race_ = GetArrayRace(race);
	#endif
          	
	// ************************************

	retrun ( ((1<<(class_-1)) & classes_) && ((1<<(race-1)) & races_) )
}

Last edited by ffchung; 07-04-2005 at 03:16 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:42 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3