Jump to content
  • 0

Add more Starting items using SQL Tables


KaLeDoR

Question

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

 

Link to comment
Share on other sites

  • 0
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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...