Jump to content
  • 0

Add more Starting items using SQL Tables


Question

Posted

Hi guys i try to add more starting items for every characters. i created  the tables in sql but i cant find which source file .java i need to edit . I use frozen pack   ,Any ideas? i tried charactercreate.java and chartemplate.java already

4 answers to this question

Recommended Posts

  • 0
Posted

You need into "char_templates.sql" add new rows like itemX for additional more starting items than 5 existing.

 

At this moment uses 5 columns:

  `items1` int(4) NOT NULL default '0',
  `items2` int(4) NOT NULL default '0',
  `items3` int(4) NOT NULL default '0',
  `items4` int(4) NOT NULL default '0',
  `items5` int(10) NOT NULL default '0',

 

Just add more rows (e.g. "item6", "item7", etc) and after you can manage what the char template will use more items. 

 

Inside CharTemplateTable.java you need to change this line

for (int x = 1; x < 6; x++)

to

for (int x = 1; x < ITEMS_COUNT_PLUS_ONE; x++)

 

  • 0
Posted
2 hours ago, Rootware said:

You need into "char_templates.sql" add new rows like itemX for additional more starting items than 5 existing.

 

At this moment uses 5 columns:


  `items1` int(4) NOT NULL default '0',
  `items2` int(4) NOT NULL default '0',
  `items3` int(4) NOT NULL default '0',
  `items4` int(4) NOT NULL default '0',
  `items5` int(10) NOT NULL default '0',

 

Just add more rows (e.g. "item6", "item7", etc) and after you can manage what the char template will use more items. 

 

Inside CharTemplateTable.java you need to change this line


for (int x = 1; x < 6; x++)

to


for (int x = 1; x < ITEMS_COUNT_PLUS_ONE; x++)

 

Wow thank you mate i was looking for this. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..