アットウィキロゴ

サモン強化

サモンを強化しよう!!

ここではステータスはすべて二倍にしています。

「npc_summon」というテーブルを作成し、その数値を使ってステータスを変更しています。
drop table npc_summon;
CREATE TABLE `npc_summon` (
`id` decimal(11,0) NOT NULL default '0',
`idTemplate` int(11) NOT NULL default '0',
`name` varchar(200) default NULL,
`serverSideName` int(1) default '0',
`title` varchar(45) default '',
`serverSideTitle` int(1) default '0',
`class` varchar(200) default NULL,
`collision_radius` decimal(5,2) default NULL,
`collision_height` decimal(5,2) default NULL,
`level` decimal(2,0) default NULL,
`sex` varchar(6) default NULL,
`type` varchar(20) default NULL,
`attackrange` int(11) default NULL,
`hp` decimal(8,0) default NULL,
`mp` decimal(6,0) default NULL,
`hpreg` decimal(8,2) default NULL,
`mpreg` decimal(5,2) default NULL,
`str` decimal(7,0) default NULL,
`con` decimal(7,0) default NULL,
`dex` decimal(7,0) default NULL,
`int` decimal(7,0) default NULL,
`wit` decimal(7,0) default NULL,
`men` decimal(7,0) default NULL,
`exp` decimal(9,0) default NULL,
`sp` decimal(8,0) default NULL,
`patk` decimal(5,0) default NULL,
`pdef` decimal(5,0) default NULL,
`matk` decimal(5,0) default NULL,
`mdef` decimal(5,0) default NULL,
`atkspd` decimal(3,0) default NULL,
`aggro` decimal(6,0) default NULL,
`matkspd` decimal(4,0) default NULL,
`rhand` decimal(5,0) default NULL,
`lhand` decimal(5,0) default NULL,
`armor` decimal(1,0) default NULL,
`walkspd` decimal(3,0) default NULL,
`runspd` decimal(3,0) default NULL,
`faction_id` varchar(40) default NULL,
`faction_range` decimal(4,0) default NULL,
`isUndead` int(11) default '0',
`absorb_level` decimal(2,0) default '0',
`absorb_type` enum('FULL_PARTY','LAST_HIT','PARTY_ONE_RANDOM') NOT NULL default 'LAST_HIT',
`ss` int(4) default '0',
`bss` int(4) default '0',
`ss_rate` int(3) default '0',
`AI` varchar(8) default 'fighter',
`drop_herbs` enum('true','false') NOT NULL default 'false',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `npc_summon` VALUES
('14001', '14001', 'リアニメイテッド マン', '0', '', '0', 'Monster.skeleton', '11.00', '25.00', '46', 'male', 'L2Pet', '40', '2914', '816', '8.69', '2.14', '40', '43', '30', '21', '20', '25', '0', '0', '482', '245', '202', '230', '278', '0', '333', '0', '0', '0', '66', '154', 'NULL', '0', '1', '0', 'LAST_HIT', '0', '0', '0', 'fighter', 'false'),
  • wikiの行数制限の為、記載できませんので省略します。npc.sqlからID:14001からID:14915をここにコピーしてください。
('14915', '14915', 'スペクトラル ロード', '0', '', '0', 'Monster3.spectral_knight', '12.05', '33.05', '85', 'male', 'L2Pet', '40', '7134', '2657', '13.43', '3.09', '40', '43', '30', '21', '20', '25', '0', '0', '3688', '761', '2958', '708', '278', '0', '333', '0', '0', '0', '52', '198', 'NULL', '0', '0', '0', 'LAST_HIT', '0', '0', '0', 'balanced', 'false');
UPDATE npc_summon,npc
set npc.hp = npc_summon.hp * 2
WHERE npc_summon.id = npc.id;
UPDATE npc_summon,npc
set npc.mp = npc_summon.mp * 2
WHERE npc_summon.id = npc.id;
UPDATE npc_summon,npc
set npc.patk = npc_summon.patk * 2
WHERE npc_summon.id = npc.id;
UPDATE npc_summon,npc
set npc.matk = npc_summon.matk * 2
WHERE npc_summon.id = npc.id;
UPDATE npc_summon,npc
set npc.pdef = npc_summon.pdef * 2
WHERE npc_summon.id = npc.id;
UPDATE npc_summon,npc
set npc.mdef = npc_summon.mdef * 2
WHERE npc_summon.id = npc.id;

タグ:

+ タグ編集
  • タグ:
最終更新:2009年02月26日 00:24
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。