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

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2004, 08:08 AM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default Oow Code(s)

I know its not the hardest stuff in the world but i am trying rofl >.<



At the begining of classes.cpp

Code:
*/
#include "../common/debug.h"
#include "../common/classes.h"

const char* GetEQClassName(int8 class_, int8 level) {
	switch(class_) {
      case WARRIOR: 
	      if (level >= 70)
		return "Vanquisher";
         else if (level >= 65) 
            return "Overlord";   //Baron-Sprite: LEAVE MY CLASSES ALONE. Xabob...NO!!! rofl
         else if (level >= 60) 
            return "Warlord"; 
         else if (level >= 55) 
            return "Myrmidon"; 
         else if (level >= 51) 
            return "Champion"; 
         else 
            return "Warrior"; 
      case CLERIC: 
	      if (level >= 70)
		return "Prelate";
         else if (level >= 65) 
            return "Archon"; 
         else if (level >= 60) 
            return "High Priest"; 
         else if (level >= 55) 
            return "Templar"; 
         else if (level >= 51) 
            return "Vicar"; 
         else 
            return "Cleric"; 
      case PALADIN:           
	      if (level >= 70)
		return "Lord";
	 else if (level >= 65) 
            return "Lord Protector";
         else if (level >= 60) 
            return "Crusader"; 
         else if (level >= 55) 
            return "Knight"; 
         else if (level >= 51) 
            return "Cavalier"; 
         else 
            return "Paladin"; 
      case RANGER: 
	      if (level >= 70)
		return "Plainswalker";
         else if (level >= 65) 
            return "Forest Stalker"; 
         else if (level >= 60) 
            return "Warder"; 
         else if (level >= 55) 
            return "Outrider"; 
         else if (level >= 51) 
            return "Pathfinder"; 
         else 
            return "Ranger"; 
      case SHADOWKNIGHT:          
	      if (level >= 70)
		return "Scourge Knight";
	 else if (level >= 65) 
            return "Dread Lord"; 
         else if (level >= 60) 
            return "Grave Lord"; 
         else if (level >= 55) 
            return "Revenant"; 
         else if (level >= 51) 
            return "Reaver"; 
         else 
            return "Shadowknight"; 
      case DRUID:          
	   if (level >= 70)
		return "Natureguard";
	 else if (level >= 65) 
            return "Storm Warden";
         else if (level >= 60) 
            return "Hierophant"; 
         else if (level >= 55) 
            return "Preserver"; 
         else if (level >= 51) 
            return "Wanderer"; 
         else 
            return "Druid"; 
      case MONK:          
	     if (level >= 70)
		return "Stone Fist";
 	else if (level >= 65) 
            return "Transcendent"; 
         else if (level >= 60) 
            return "Grandmaster"; 
         else if (level >= 55) 
            return "Master"; 
         else if (level >= 51) 
            return "Disciple"; 
         else 
            return "Monk"; 
      case BARD: 	          
	      if (level >= 70)
		return "Performer";
	 else if (level >= 65) 
            return "Maestro"; 
         else if (level >= 60) 
            return "Virtuoso"; 
         else if (level >= 55) 
            return "Troubadour"; 
         else if (level >= 51) 
            return "Minstrel"; 
         else 
            return "Bard"; 
      case ROGUE:            
	      if (level >= 70)
		return "Nemesis";
	 else if (level >= 65) 
            return "Deceiver";
         else if (level >= 60) 
            return "Assassin"; 
         else if (level >= 55) 
            return "Blackguard"; 
         else if (level >= 51) 
            return "Rake"; 
         else 
            return "Rogue"; 
      case SHAMAN:          
              if (level >= 70)
		return "Soothsayer"; 
	 else if (level >= 65) 
            return "Prophet";
         else if (level >= 60) 
            return "Oracle"; 
         else if (level >= 55) 
            return "Luminary"; 
         else if (level >= 51) 
            return "Mystic"; 
         else 
            return "Shaman"; 
      case NECROMANCER: 
 	      if (level >= 70)
		return "Wraith";
         else if (level >= 65) 
            return "Arch Lich"; 
	    if (level >= 70)
		return "Wraith";
         else if (level >= 60) 
            return "Warlock"; 
         else if (level >= 55) 
            return "Defiler"; 
         else if (level >= 51) 
            return "Heretic"; 
         else 
            return "Necromancer"; 
      case WIZARD: 
 		if (level >= 70)
		return "Grand Arcanist"; 
           else if (level >= 65) 
            return "Arcanist";
	   else if (level >= 70)
		return "Grand Arcanist"; 
         else if (level >= 60) 
            return "Sorcerer"; 
         else if (level >= 55) 
            return "Evoker"; 
         else if (level >= 51) 
            return "Channeler"; 
         else 
            return "Wizard"; 
      case MAGICIAN: 
	        if (level >= 70)
		return "Arch Magus";
           else if (level >= 65) 
            return "Arch Convoker";
	      if (level >= 70)
		return "Arch Magus";
         else if (level >= 60) 
            return "Arch Mage"; 
         else if (level >= 55) 
            return "Conjurer"; 
         if (level >= 51) 
            return "Elementalist"; 
         else 
            return "Magician"; 
      case ENCHANTER:
	        if (level >= 70)
		return "Bedazzler"; 
           else if (level >= 65) 
            return "Coercer";	    
         else if (level >= 60) 
            return "Phantasmist"; 
         else if (level >= 55) 
            return "Beguiler"; 
         else if (level >= 51) 
            return "Illusionist"; 
         else 
            return "Enchanter"; 
      case BEASTLORD:
	      if (level >= 70)
		return "Wildblood"; 
         else if (level >= 65) 
            return "Feral Lord";
         else if (level >= 60) 
            return "Savage Lord"; 
         else if (level >= 55) 
            return "Animist"; 
         else if (level >= 51) 
            return "Primalist"; 
         else 
            return "Beastlord"; 
	 case BERSERKER:         
	       if (level >= 70)
		return "Ravager";
	 else  if (level >= 65) 
            return "Fury"; 
         else if (level >= 60) 
            return "Rager"; 
         else if (level >= 55) 
            return "Vehement"; 
         else if (level >= 51) 
            return "Brawler"; 
         else 
            return "Berserker"; 
      case BANKER: 
   	 if (level >= 70)
		return "Master Banker";
         else if (level >= 65) 
            return "Elder Banker";	    
         else if (level >= 60) 
            return "Oldest Banker"; 
         else if (level >= 55) 
            return "Older Banker"; 
         else if (level >= 51) 
            return "Old Banker"; 
         else 
            return "Banker";
Edited: Made a fix
__________________________________________________ ____



Changes max level from 65 to 70 ^_^
Change Lines 283 to 284 in client.ccp

Code:
else if (level < 71) {
		return 255 + 5 * (level - 60);
Anyways i am working on some more atm coming slow but learning
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #2  
Old 09-30-2004, 08:17 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Can you do us a favor and paste the code around lines 283-284? Say, from 250 thru 300?

The way you pasted the code makes it look like you were making a change to the class names. But, you're not -- it's something else, since the return value in that last snippet is numeric. What is it you were trying to change?
__________________
<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
  #3  
Old 09-30-2004, 08:21 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

The first part of his code is the new version of the GetEQClassName function, the second part was lines 283 and 284 in client.cpp

Confused me for a bit too :P
__________________
Lethal Encounter
Reply With Quote
  #4  
Old 09-30-2004, 08:23 AM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

Aye i fixed it lol

New at this stuff give me a brake :P
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #5  
Old 09-30-2004, 08:24 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

k I get it now :lol:
__________________
<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
  #6  
Old 09-30-2004, 09:08 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Small suggestion. I would make the first if statement of each case the level 70 title, then the first else 65, and so on. It would keep things in order. Very nice work, though. I'm glad you've decided to pick up C++. So for example change:

case WARRIOR:
if (level >= 65)
return "Overlord"; //Baron-Sprite: LEAVE MY CLASSES ALONE. Xabob...NO!!! rofl
else if (level >= 70)
return "Vanquisher";
else if (level >= 60)
return "Warlord";
else if (level >= 55)
return "Myrmidon";
else if (level >= 51)
return "Champion";
else
return "Warrior";

to :

case WARRIOR:
if (level >= 70)
return "Vanquisher"; //Baron-Sprite: LEAVE MY CLASSES ALONE. Xabob...NO!!! rofl
else if (level >= 65)
return "Overlord";
else if (level >= 60)
return "Warlord";
else if (level >= 55)
return "Myrmidon";
else if (level >= 51)
return "Champion";
else
return "Warrior";
Reply With Quote
  #7  
Old 10-01-2004, 09:26 AM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

In Client.ccp under zone replace 774 to 899 with
Code:
sint32 Client::LevelRegen()
{
	sint32 hp = 0;
	if (GetLevel() &lt;= 19) {
		if(IsSitting())
			hp+=2;
		else
			hp+=1;
	}
	else if(GetLevel() &lt;= 49) {
		if(IsSitting())
			hp+=3;
		else
			hp+=1;
	}
	else if(GetLevel() == 50) {
		if(IsSitting())
			hp+=4;

		else
			hp+=1;
	}
	else if(GetLevel() &lt;= 51) {
		if(IsSitting())
			hp+=5;
		else
			hp+=2;
	}
	else if(GetLevel() &lt;= 56) {
		if(IsSitting())
			hp+=6;
		else
			hp+=3;
	}
	else if(GetLevel() &lt;= 60) {
		if(IsSitting())
			hp+=11;
		else
			hp+=5;
	}
	else if(GetLevel() &lt;= 62) {
		if(IsSitting())
			hp+=13;
		else
			hp+=6;
	}
	else if(GetLevel() &lt;= 64) {
		if(IsSitting())
			hp+=15;
		else
			hp+=9;
	}
	else if(GetLevel() &lt;= 66) {
		if(IsSitting())
			hp+=17;
		else
			hp+=11;
	}
	else if(GetLevel() &lt;= 69) {
		if(IsSitting())
			hp+=19;
		else
			hp+=13;
	}
	else if(GetLevel() &lt;= 70) {
		if(IsSitting())
			hp+=20;
		else
			hp+=14;
	}
	if(GetRace() == IKSAR || GetRace() == TROLL) {
		if (GetLevel() &lt;= 19) { // 1 4
			if(IsSitting())
				hp+=2;
		}
		else if(GetLevel() &lt;= 49) { // 2 6
			if(IsSitting())
				hp+=3;
			else
				hp+=1;
		}		
		else if(GetLevel() &lt;= 50) { // 4 12
			if(IsSitting())
				hp+=7;
			else
				hp+=2;
		}
		else if(GetLevel() &lt;= 51) { 
			if(IsSitting())
				hp+=12;
			else
				hp+=6;
		}
		else if(GetLevel() &lt;= 56) { 
			if(IsSitting())
				hp+=16;
			else
				hp+=10;
		}
		else if(GetLevel() &lt;= 59) { 
			if(IsSitting())
				hp+=18;
			else
				hp+=12;
		}
		else if(GetLevel() &lt;= 62) { 
			if(IsSitting())
				hp+=22;
			else
				hp+=14;
		}
		else if(GetLevel() &lt;= 64) { 
			if(IsSitting())
				hp+=24;
			else
				hp+=16;
		}
		else if(GetLevel() &lt;= 68) { 
			if(IsSitting())
				hp+=26;
			else
				hp+=19;
		}
		else if(GetLevel() &lt;= 70) { 
			if(IsSitting())
				hp+=28;
			else
				hp+=20;
		}
	}
	if (GetAA(225) >= 1){
		hp += GetAA(225);
	}
	if (GetAA(29) >= 1){
		hp += GetAA(29);
	}
	
	return hp;
}
Fixes the Hp regen
Edit: THERE DAMNIT IT SHOULD WORK NOW!!!!!
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #8  
Old 10-01-2004, 02:09 PM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

Aa exp

Replace line 1372 in client.cpp with
Code:
int8 maxlevel = 71;
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #9  
Old 10-01-2004, 02:14 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Perhaps I'm missing something, but from just looking at the LevelRegen function (without trying to compile), I think:

1) It won't even compile due to too many closing }'s

2) As written, anybody over level 51 will regen as if they were 51.

Let me know if I'm missing something, but double-check your logic in the post-50 level checks.
__________________
<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
  #10  
Old 10-01-2004, 02:39 PM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

Should be fixed i will try compiling all my fixes now to see if there is somthing wack
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #11  
Old 10-01-2004, 03:35 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

There are too many closing brackets after each &lt;= 51.
Reply With Quote
  #12  
Old 10-01-2004, 04:30 PM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

That better?
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

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 11:47 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