[question]npcbuffer
1 ответов61 просмотровСейчас просматривают: 1
· 12.06.2009, 15:09
Сборка: L2Phoenix 14312
Краткое изложение СУТИ проблемы: При редактировании файла \gameserver\data\scripts\services\NPCBuffer\Buffer.java не запускается ГС
Была идея засунуть в список массовых бафов сразу песни и танцы...
Вот что было изначально
Код
/** Количество бафов в группах */
private static int grpCount1, grpCount2, grpCount3, grpCount4, grpCount5;
// Количество бафов в 1 и второй группах должно быть одинаковое
private static int buffs[][] = { // id, lvl, group
// Chants
{ 1251, 2, 5 }, // Chant of Fury
{ 1252, 3, 5 }, // Chant of Evasion
{ 1253, 3, 5 }, // Chant of Rage
{ 1284, 3, 5 }, // Chant of Revenge
{ 1308, 3, 5 }, // Chant of Predator
{ 1309, 3, 5 }, // Chant of Eagle
{ 1310, 4, 5 }, // Chant of Vampire
{ 1362, 1, 5 }, // Chant of Spirit
{ 1363, 1, 5 }, // Chant of Victory
{ 1390, 3, 5 }, // War Chant
{ 1391, 3, 5 }, // Earth Chant
// Songs
{ 264, 1, 4 }, // Song of Earth
{ 265, 1, 4 }, // Song of Life
{ 266, 1, 4 }, // Song of Water
{ 267, 1, 4 }, // Song of Warding
{ 268, 1, 4 }, // Song of Wind
{ 269, 1, 4 }, // Song of Hunter
{ 270, 1, 4 }, // Song of Invocation
{ 304, 1, 4 }, // Song of Vitality
{ 305, 1, 4 }, // Song of Vengeance
{ 306, 1, 4 }, // Song of Flame Guard
{ 308, 1, 4 }, // Song of Storm Guard
{ 349, 1, 4 }, // Song of Renewal
{ 363, 1, 4 }, // Song of Meditation
{ 364, 1, 4 }, // Song of Champion
// Dances
{ 271, 1, 3 }, // Dance of Warrior
{ 272, 1, 3 }, // Dance of Inspiration
{ 273, 1, 3 }, // Dance of Mystic
{ 274, 1, 3 }, // Dance of Fire
{ 275, 1, 3 }, // Dance of Fury
{ 276, 1, 3 }, // Dance of Concentration
{ 277, 1, 3 }, // Dance of Light
{ 307, 1, 3 }, // Dance of Aqua Guard
{ 309, 1, 3 }, // Dance of Earth Guard
{ 310, 1, 3 }, // Dance of Vampire
{ 311, 1, 3 }, // Dance of Protection
{ 365, 1, 3 }, // Dance of Siren
// Группа для магов 2
{ 7059, 1, 2 }, // Wild Magic
{ 4356, 3, 2 }, // Empower
{ 4355, 3, 2 }, // Acumen
{ 4352, 1, 2 }, // Berserker Spirit
{ 4346, 4, 2 }, // Mental Shield
{ 4351, 6, 2 }, // Concentration
{ 4342, 2, 2 }, // Wind Walk
{ 4347, 6, 2 }, // Bless the Body
{ 4348, 6, 2 }, // Bless the Soul
{ 4344, 3, 2 }, // Shield
{ 7060, 1, 2 }, // Clarity
{ 4350, 4, 2 }, // Resist Shock
// Группа для воинов 1
{ 7057, 1, 1 }, // Greater Might
{ 4345, 3, 1 }, // Might
{ 4344, 3, 1 }, // Shield
{ 4349, 2, 1 }, // Magic Barrier
{ 4342, 2, 1 }, // Wind Walk
{ 4347, 6, 1 }, // Bless the Body
{ 4357, 2, 1 }, // Haste
{ 4359, 3, 1 }, // Focus
{ 4358, 3, 1 }, // Guidance
{ 4360, 3, 1 }, // Death Whisper
{ 4354, 4, 1 }, // Vampiric Rage
{ 4346, 4, 1 } // Mental Shield
};
private static int grpCount1, grpCount2, grpCount3, grpCount4, grpCount5;
// Количество бафов в 1 и второй группах должно быть одинаковое
private static int buffs[][] = { // id, lvl, group
// Chants
{ 1251, 2, 5 }, // Chant of Fury
{ 1252, 3, 5 }, // Chant of Evasion
{ 1253, 3, 5 }, // Chant of Rage
{ 1284, 3, 5 }, // Chant of Revenge
{ 1308, 3, 5 }, // Chant of Predator
{ 1309, 3, 5 }, // Chant of Eagle
{ 1310, 4, 5 }, // Chant of Vampire
{ 1362, 1, 5 }, // Chant of Spirit
{ 1363, 1, 5 }, // Chant of Victory
{ 1390, 3, 5 }, // War Chant
{ 1391, 3, 5 }, // Earth Chant
// Songs
{ 264, 1, 4 }, // Song of Earth
{ 265, 1, 4 }, // Song of Life
{ 266, 1, 4 }, // Song of Water
{ 267, 1, 4 }, // Song of Warding
{ 268, 1, 4 }, // Song of Wind
{ 269, 1, 4 }, // Song of Hunter
{ 270, 1, 4 }, // Song of Invocation
{ 304, 1, 4 }, // Song of Vitality
{ 305, 1, 4 }, // Song of Vengeance
{ 306, 1, 4 }, // Song of Flame Guard
{ 308, 1, 4 }, // Song of Storm Guard
{ 349, 1, 4 }, // Song of Renewal
{ 363, 1, 4 }, // Song of Meditation
{ 364, 1, 4 }, // Song of Champion
// Dances
{ 271, 1, 3 }, // Dance of Warrior
{ 272, 1, 3 }, // Dance of Inspiration
{ 273, 1, 3 }, // Dance of Mystic
{ 274, 1, 3 }, // Dance of Fire
{ 275, 1, 3 }, // Dance of Fury
{ 276, 1, 3 }, // Dance of Concentration
{ 277, 1, 3 }, // Dance of Light
{ 307, 1, 3 }, // Dance of Aqua Guard
{ 309, 1, 3 }, // Dance of Earth Guard
{ 310, 1, 3 }, // Dance of Vampire
{ 311, 1, 3 }, // Dance of Protection
{ 365, 1, 3 }, // Dance of Siren
// Группа для магов 2
{ 7059, 1, 2 }, // Wild Magic
{ 4356, 3, 2 }, // Empower
{ 4355, 3, 2 }, // Acumen
{ 4352, 1, 2 }, // Berserker Spirit
{ 4346, 4, 2 }, // Mental Shield
{ 4351, 6, 2 }, // Concentration
{ 4342, 2, 2 }, // Wind Walk
{ 4347, 6, 2 }, // Bless the Body
{ 4348, 6, 2 }, // Bless the Soul
{ 4344, 3, 2 }, // Shield
{ 7060, 1, 2 }, // Clarity
{ 4350, 4, 2 }, // Resist Shock
// Группа для воинов 1
{ 7057, 1, 1 }, // Greater Might
{ 4345, 3, 1 }, // Might
{ 4344, 3, 1 }, // Shield
{ 4349, 2, 1 }, // Magic Barrier
{ 4342, 2, 1 }, // Wind Walk
{ 4347, 6, 1 }, // Bless the Body
{ 4357, 2, 1 }, // Haste
{ 4359, 3, 1 }, // Focus
{ 4358, 3, 1 }, // Guidance
{ 4360, 3, 1 }, // Death Whisper
{ 4354, 4, 1 }, // Vampiric Rage
{ 4346, 4, 1 } // Mental Shield
};
Вот что сделал я
Код
/** Количество бафов в группах */
private static int grpCount1, grpCount2, grpCount3, grpCount4, grpCount5;
// Количество бафов в 1 и второй группах должно быть одинаковое
private static int buffs[][] = { // id, lvl, group
// Группа для воинов 1
{ 7057, 1, 1 }, // Greater Might
{ 4345, 3, 1 }, // Might
{ 4344, 3, 1 }, // Shield
{ 4349, 2, 1 }, // Magic Barrier
{ 4342, 2, 1 }, // Wind Walk
{ 4347, 6, 1 }, // Bless the Body
{ 4357, 2, 1 }, // Haste
{ 4359, 3, 1 }, // Focus
{ 4358, 3, 1 }, // Guidance
{ 4360, 3, 1 }, // Death Whisper
{ 4354, 4, 1 }, // Vampiric Rage
{ 4346, 4, 1 } // Mental Shield
{ 271, 1, 1 }, // Dance of Warrior
{ 272, 1, 1 }, // Dance of Inspiration
{ 273, 1, 1 }, // Dance of Mystic
{ 274, 1, 1 }, // Dance of Fire
{ 275, 1, 1 }, // Dance of Fury
{ 276, 1, 1 }, // Dance of Concentration
{ 277, 1, 1 }, // Dance of Light
{ 307, 1, 1 }, // Dance of Aqua Guard
{ 309, 1, 1 }, // Dance of Earth Guard
{ 310, 1, 1 }, // Dance of Vampire
{ 311, 1, 1 }, // Dance of Protection
{ 365, 1, 1 }, // Dance of Siren
{ 264, 1, 1 }, // Song of Earth
{ 265, 1, 1 }, // Song of Life
{ 266, 1, 1 }, // Song of Water
{ 267, 1, 1 }, // Song of Warding
{ 268, 1, 1 }, // Song of Wind
{ 269, 1, 1 }, // Song of Hunter
{ 270, 1, 1 }, // Song of Invocation
{ 304, 1, 1 }, // Song of Vitality
{ 305, 1, 1 }, // Song of Vengeance
{ 306, 1, 1 }, // Song of Flame Guard
{ 308, 1, 1 }, // Song of Storm Guard
{ 349, 1, 1 }, // Song of Renewal
{ 363, 1, 1 }, // Song of Meditation
{ 364, 1, 1 }, // Song of Champion
};
private static int grpCount1, grpCount2, grpCount3, grpCount4, grpCount5;
// Количество бафов в 1 и второй группах должно быть одинаковое
private static int buffs[][] = { // id, lvl, group
// Группа для воинов 1
{ 7057, 1, 1 }, // Greater Might
{ 4345, 3, 1 }, // Might
{ 4344, 3, 1 }, // Shield
{ 4349, 2, 1 }, // Magic Barrier
{ 4342, 2, 1 }, // Wind Walk
{ 4347, 6, 1 }, // Bless the Body
{ 4357, 2, 1 }, // Haste
{ 4359, 3, 1 }, // Focus
{ 4358, 3, 1 }, // Guidance
{ 4360, 3, 1 }, // Death Whisper
{ 4354, 4, 1 }, // Vampiric Rage
{ 4346, 4, 1 } // Mental Shield
{ 271, 1, 1 }, // Dance of Warrior
{ 272, 1, 1 }, // Dance of Inspiration
{ 273, 1, 1 }, // Dance of Mystic
{ 274, 1, 1 }, // Dance of Fire
{ 275, 1, 1 }, // Dance of Fury
{ 276, 1, 1 }, // Dance of Concentration
{ 277, 1, 1 }, // Dance of Light
{ 307, 1, 1 }, // Dance of Aqua Guard
{ 309, 1, 1 }, // Dance of Earth Guard
{ 310, 1, 1 }, // Dance of Vampire
{ 311, 1, 1 }, // Dance of Protection
{ 365, 1, 1 }, // Dance of Siren
{ 264, 1, 1 }, // Song of Earth
{ 265, 1, 1 }, // Song of Life
{ 266, 1, 1 }, // Song of Water
{ 267, 1, 1 }, // Song of Warding
{ 268, 1, 1 }, // Song of Wind
{ 269, 1, 1 }, // Song of Hunter
{ 270, 1, 1 }, // Song of Invocation
{ 304, 1, 1 }, // Song of Vitality
{ 305, 1, 1 }, // Song of Vengeance
{ 306, 1, 1 }, // Song of Flame Guard
{ 308, 1, 1 }, // Song of Storm Guard
{ 349, 1, 1 }, // Song of Renewal
{ 363, 1, 1 }, // Song of Meditation
{ 364, 1, 1 }, // Song of Champion
};
Вот что из этого вышло

0
Войдите или зарегистрируйтесь чтобы ответить

