|  |  | 
 
  |  |  |  |  
  |  |  |  |  
  |  |  |  |  
  |  |  |  |  
  |  | 
	
		
   
   
      | Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum) |  
	
	
		
	
	
	| 
			
			 
			
				11-22-2004, 01:39 PM
			
			
			
		 |  
	| 
		
			
			| Demi-God |  | 
					Join Date: Jun 2004 Location: Heaven. 
						Posts: 1,260
					      |  |  
	| 
 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.
 |  
	
		
	
	
	| 
			
			 
			
				11-22-2004, 02:20 PM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: Nov 2004 
						Posts: 3
					      |  |  
	| 
 what is that illegal? |  
	
		
	
	
	| 
			
			 
			
				11-22-2004, 03:58 PM
			
			
			
		 |  
	| 
		
			
			| Demi-God |  | 
					Join Date: Jun 2004 Location: Heaven. 
						Posts: 1,260
					      |  |  
	| 
 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.
 |  
	
		
	
	
	| 
			
			 
			
				11-23-2004, 01:07 AM
			
			
			
		 |  
	| 
		
			
			| Discordant |  | 
					Join Date: Mar 2003 Location: Chambersburg, PA 
						Posts: 469
					      |  |  
	| 
 
	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 |  
	
		
	
	
	| 
			
			 
			
				11-23-2004, 01:09 AM
			
			
			
		 |  
	| 
		
			
			| Demi-God |  | 
					Join Date: Jun 2004 Location: Heaven. 
						Posts: 1,260
					      |  |  
	| 
 
	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.
 |  
	
		
	
	
	| 
			
			 
			
				11-23-2004, 01:11 AM
			
			
			
		 |  
	| 
		
			
			| Discordant |  | 
					Join Date: Mar 2003 Location: Chambersburg, PA 
						Posts: 469
					      |  |  
	| 
 
	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   |  
	
		
	
	
	| 
			
			 
			
				11-23-2004, 09:13 AM
			
			
			
		 |  
	| 
		
			|  | Developer |  | 
					Join Date: Aug 2003 
						Posts: 246
					      |  |  
	| 
 Please: 1) Don't post things that are not your own work.
 2) Don't post 981273918273 lines of source in here.
 |  
	
		
	
	
	| 
			
			 
			
				06-12-2005, 12:16 AM
			
			
			
		 |  
	| 
		
			
			| Sarnak |  | 
					Join Date: Jan 2005 
						Posts: 64
					      |  |  
	| 
				 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- |  
	
		
	
	
	| 
			
			 
			
				06-13-2005, 06:07 PM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: May 2005 
						Posts: 20
					      |  |  
	| 
 // 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;
 }
 |  
	
		
	
	
 
  |  |  |  |  
	| 
			
			 
			
				07-03-2005, 12:52 AM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: May 2005 Location: HK 
						Posts: 3
					      |  |  
	| 
				 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..
 |  
 
  |  |  |  |  
	
		
	
	
	| 
			
			 
			
				07-03-2005, 03:12 AM
			
			
			
		 |  
	| 
		
			
			| Demi-God |  | 
					Join Date: Mar 2004 
						Posts: 1,066
					      |  |  
	| 
 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.
 |  
	
		
	
	
 
  |  |  |  |  
	| 
			
			 
			
				07-03-2005, 03:31 AM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: May 2005 Location: HK 
						Posts: 3
					      |  |  
	| 
				 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..
 |  
 
  |  |  |  |  
	
		
	
	
	| 
			
			 
			
				07-03-2005, 03:12 PM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: May 2005 
						Posts: 20
					      |  |  
	| 
 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? |  
	
		
	
	
 
  |  |  |  |  
	| 
			
			 
			
				07-03-2005, 07:11 PM
			
			
			
		 |  
	| 
		
			
			| Fire Beetle |  | 
					Join Date: May 2005 Location: HK 
						Posts: 3
					      |  |  
	| 
				 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..
 |  
 
  |  |  |  |  
	
		
	
	
	
	
	| 
	|  Posting Rules |  
	| 
		
		You may not post new threads You may not post replies You may not post attachments You may not edit your posts 
 HTML code is Off 
 |  |  |  All times are GMT -4. The time now is 04:18 PM.
 
 |  |  
    |  |  |  |  
    |  |  |  |  
     |  |  |  |  
 |  |