Jump to content
  • 0

rlfem123

Question

10 answers to this question

Recommended Posts

  • 0

It got nothing related to chars templates, this info is stored on characters.sql

  `classid` TINYINT UNSIGNED DEFAULT NULL,
  `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,

baseClass being the initial class, and classId the current class (can be subclass). To retrieve class name :

CharTemplateTable.getInstance().getClassNameById(player.getBaseClass()) 

or more simply

player.getTemplate().getClassName()

You can build a simple array on your website with id<>name and retrieve classid the same way you retrieve pvpkills.

Edited by Tryskell
Link to comment
Share on other sites

  • 0

How i can make char_template.sql for acis pack? ...I need for a connect to website

Depends. Do you need all the info in there?

If yes then only manually i guess.

If not then you can right some regex to generate the insert statement.

Link to comment
Share on other sites

  • 0

If you want it only for for heroes,top pvp/pk statistics you can import any char_templates on your database, that will not cause any problems

Any hah but from where i can take such file??

Link to comment
Share on other sites

  • 0

What specific static infos do you want to call ?

 

Easiest would be to reuse already loaded templates maps, and run a single method which build sql strings based on those maps. But you will probably need multiple sql tables to handle all infos (like npcs, which is a merge of something like 5+ sql tables : drops, ai, templates, teachto, minions,...).

Edited by Tryskell
Link to comment
Share on other sites

  • 0

What specific static infos do you want to call ?

 

Easiest would be to reuse already loaded templates maps, and run a single method which build sql strings based on those maps. But you will probably need multiple sql tables to handle all infos (like npcs, which is a merge of something like 5+ sql tables : drops, ai, templates, teachto, minions,...).

i need to connect classes of characters in the website. 

http://postimg.org/image/iwhm2ov8r/

Link to comment
Share on other sites

  • 0

 

It got nothing related to chars templates, this info is stored on characters.sql

  `classid` TINYINT UNSIGNED DEFAULT NULL,
  `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,

baseClass being the initial class, and classId the current class (can be subclass). To retrieve class name :

CharTemplateTable.getInstance().getClassNameById(player.getBaseClass()) 

or more simply

player.getTemplate().getClassName()

You can build a simple array on your website with id<>name and retrieve classid the same way you retrieve pvpkills.

 

Thank you Tryskell 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock