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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-03-2002, 11:37 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default #scribespells <level>

Code:
}
		else if (strcasecmp(sep.arg[0], "#scribespells")==0 ) {
			if(sep.arg[1][0]==0) {
				Message(0,"FORMAT: #scribespells &lt;level>");
			}
			if((sep.arg[1][0] &lt; 1) || (sep.arg[1][0] > 60))
				Message(0,"ERROR: Enter a level between 1 and 60 inclusive."); 
			else {
				Message(0, "Scribing spells to spellbook");
				cout &lt;&lt; "Scribing spells " &lt;&lt; endl;
				int bookcount =0;
				for (int i = 0; i &lt; SPDAT_RECORDS; i++)
				{
					if (spells[i].classes[(pp.class_ - 1)] &lt;= sep.arg[1][0])
					{
						if(bookcount &lt;=255)
						{
							if(spells[1].name[0]!=' ')
{pp.spell_book[bookcount]=i;
							bookcount++;}
						}
					}else break;
				}
			}
		}
put that in zone's client.cpp in the commands.. like line 1697

very horrible way to do it.. but adding spelllists for every class world take a lot of mem.. on every zone server..can't make files when zone reads, because then each zone does it..
Reply With Quote
 


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 05:07 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3