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 03-11-2002, 04:10 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default Idea for starting items

Starting items and spells for characters would be a useful feature for the emulator (I think so at least), although it doesn't take long to #summonitem them, it would be a nice touch.

You could have a struct in the DB like this (more or less):

CREATE TABLE starting_items (
id int(11) unsigned NOT NULL auto_increment,
item_id int(11) NOT NULL default '0',
class int(11) NOT NULL default '0',
race int(11) NOT NULL default '0',
PRIMARY KEY (id,item_id),
) TYPE=MyISAM;

This would be an entry to give Human Warriors a short sword on startup:
INSERT INTO starting_items VALUES(1,9998,1,1);

When a new character is created, the server searches through this table in the DB and any items with a matching class and race are added to their inventory.
It would be easily editable so you could modify it to give your characters high-level items if you wanted, for example.
The race value is needed as well as class, since different races get different starting robes/tunics and occasionally weapons (Iksar at least)
Reply With Quote
  #2  
Old 03-11-2002, 06:04 AM
theCoder
Sarnak
 
Join Date: Jan 2002
Posts: 90
Default

I like that idea! That way characters can start out with a little food, clothing, etc.

I think it would also be nice to have a wildcard value (like 0?) for the race and class, so that if an item is in the starting_items table with a race of 0, all new characters of the given class would get the item. The SQL would look something like

select item_id from starting_items where (class = <actual class> or class=0) and (race = <actual race> or race=0);

That might help keep the table a little easier to manage.
Reply With Quote
  #3  
Old 03-11-2002, 07:09 AM
Hmm
Discordant
 
Join Date: Jan 2002
Posts: 276
Default

also add check for account status. if char being created is a status 200 one it gets different stuff than rest of newbies also start at level 100.
__________________
Hmm...
Reply With Quote
  #4  
Old 03-11-2002, 08:08 AM
Bunga
Sarnak
 
Join Date: Jan 2002
Posts: 58
Default

And please please please make it editable in Eqadmin.
Reply With Quote
  #5  
Old 03-11-2002, 09:05 AM
DaRacne Shaitan
Fire Beetle
 
Join Date: Mar 2002
Posts: 21
Default

Accually I'm working on adding starting items ATM, thanks for the idea I'll use that. I was working on it mainly last night so my brain was off. I totally forgot I need to have a race value, because evil erudians start off in paineel and you need a key starting off there =P
__________________
-DaRacne Shaitan
Reply With Quote
  #6  
Old 03-12-2002, 05:38 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default

Quote:
Originally Posted by DaRacne Shaitan
Accually I'm working on adding starting items ATM, thanks for the idea I'll use that. I was working on it mainly last night so my brain was off. I totally forgot I need to have a race value, because evil erudians start off in paineel and you need a key starting off there =P
Yea but to bad there are no door's yet to even worry about that.
__________________
mByte
Reply With Quote
  #7  
Old 03-12-2002, 05:45 PM
Lyenu X`Arie
Fire Beetle
 
Join Date: Mar 2002
Posts: 0
Default

This is Daracne.. changed my name to my prefered nickname. Anyways well, I was hoping that we could not give them keys and just let them be killed off... but you know =)
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:40 PM.


 

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