L2devsadmins

L2jAdmins C4 => Issues => Mensaje iniciado por: hoangnhan en Mayo 13, 2018, 11:51:05 pm

Título: Some issues!
Publicado por: hoangnhan en Mayo 13, 2018, 11:51:05 pm
Table Granboss_data.  at respawn_time col  may be use  bigint because Int too short. When boss died, cant update data.


Código
DROP TABLE IF EXISTS `grandboss_data`;
CREATE TABLE IF NOT EXISTS grandboss_data (
  `boss_id` int NOT NULL DEFAULT 0,
  `loc_x` int NOT NULL DEFAULT 0,
  `loc_y` int NOT NULL DEFAULT 0,
  `loc_z` int NOT NULL DEFAULT 0,
  `heading` int NOT NULL DEFAULT 0,
  `respawn_time` bigint NOT NULL DEFAULT 0,
  `currentHP` int(8) DEFAULT NULL,
  `currentMP` int(8) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY(`boss_id`)
);


 Classmaster :
when use CharTemplateData  html will show example Dwaft_Fighter . Maybe use

Código
if (checkAndChangeClass(player, val))
{
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile("data/html/classmaster/ok.htm");
html.replace("%name%", ClassId.getById(val).getName());
player.sendPacket(html);
}

For show class name so beautifull in html :  Dwarf Fighter. not have "_".
Título: Re:Some issues!
Publicado por: fissban en Mayo 14, 2018, 04:17:45 am
thx

https://sourceforge.net/p/l2jadminsc4/code/1073/