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 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
 


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:16 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