📄 l1merchantinstance.java
字号:
if (amuletLevel >= 3) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet3";
}
} else if (player.getKarmaLevel() == -4) {
if (amuletLevel >= 4) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet4";
}
} else if (player.getKarmaLevel() == -5) {
if (amuletLevel >= 5) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet5";
}
} else if (player.getKarmaLevel() == -6) {
if (amuletLevel >= 6) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet6";
}
} else if (player.getKarmaLevel() == -7) {
if (amuletLevel >= 7) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet7";
}
} else if (player.getKarmaLevel() == -8) {
if (amuletLevel >= 8) {
htmlid = "uamuletd";
} else {
htmlid = "uamulet8";
}
} else {
htmlid = "uamulet0";
}
} else if (npcid == 80056) { // 業の管理者
if (player.getKarma() <= -10000000) {
htmlid = "infamous11";
} else {
htmlid = "infamous12";
}
} else if (npcid == 80064) { // バルログの執政官
if (player.getKarmaLevel() < 1) {
htmlid = "meet003";
} else {
htmlid = "meet001";
}
} else if (npcid == 80066) { // 揺らめく者
if (player.getKarma() >= 10000000) {
htmlid = "betray01";
} else {
htmlid = "betray02";
}
} else if (npcid == 80071) { // バルログの補佐官
int earringLevel = 0;
if (player.getInventory().checkItem(21020)) { // 踊躍のイアリング
earringLevel = 1;
} else if (player.getInventory().checkItem(21021)) { // 双子のイアリング
earringLevel = 2;
} else if (player.getInventory().checkItem(21022)) { // 友好のイアリング
earringLevel = 3;
} else if (player.getInventory().checkItem(21023)) { // 極知のイアリング
earringLevel = 4;
} else if (player.getInventory().checkItem(21024)) { // 暴走のイアリング
earringLevel = 5;
} else if (player.getInventory().checkItem(21025)) { // 従魔のイアリング
earringLevel = 6;
} else if (player.getInventory().checkItem(21026)) { // 血族のイアリング
earringLevel = 7;
} else if (player.getInventory().checkItem(21027)) { // 奴隷のイアリング
earringLevel = 8;
}
if (player.getKarmaLevel() == 1) {
if (earringLevel >= 1) {
htmlid = "lringd";
} else {
htmlid = "lring1";
}
} else if (player.getKarmaLevel() == 2) {
if (earringLevel >= 2) {
htmlid = "lringd";
} else {
htmlid = "lring2";
}
} else if (player.getKarmaLevel() == 3) {
if (earringLevel >= 3) {
htmlid = "lringd";
} else {
htmlid = "lring3";
}
} else if (player.getKarmaLevel() == 4) {
if (earringLevel >= 4) {
htmlid = "lringd";
} else {
htmlid = "lring4";
}
} else if (player.getKarmaLevel() == 5) {
if (earringLevel >= 5) {
htmlid = "lringd";
} else {
htmlid = "lring5";
}
} else if (player.getKarmaLevel() == 6) {
if (earringLevel >= 6) {
htmlid = "lringd";
} else {
htmlid = "lring6";
}
} else if (player.getKarmaLevel() == 7) {
if (earringLevel >= 7) {
htmlid = "lringd";
} else {
htmlid = "lring7";
}
} else if (player.getKarmaLevel() == 8) {
if (earringLevel >= 8) {
htmlid = "lringd";
} else {
htmlid = "lring8";
}
} else {
htmlid = "lring0";
}
} else if (npcid == 80072) { // バルログの鍛冶屋
int karmaLevel = player.getKarmaLevel();
if (karmaLevel == 1) {
htmlid = "lsmith0";
} else if (karmaLevel == 2) {
htmlid = "lsmith1";
} else if (karmaLevel == 3) {
htmlid = "lsmith2";
} else if (karmaLevel == 4) {
htmlid = "lsmith3";
} else if (karmaLevel == 5) {
htmlid = "lsmith4";
} else if (karmaLevel == 6) {
htmlid = "lsmith5";
} else if (karmaLevel == 7) {
htmlid = "lsmith7";
} else if (karmaLevel == 8) {
htmlid = "lsmith8";
} else {
htmlid = "";
}
} else if (npcid == 80074) { // 業の管理者
if (player.getKarma() >= 10000000) {
htmlid = "infamous01";
} else {
htmlid = "infamous02";
}
} else if (npcid == 80104) { // アデン騎馬団員
if (!player.isCrown()) { // 君主
htmlid = "horseseller4";
}
} else if (npcid == 70528) { // 話せる島の村 タウンマスター
htmlid = talkToTownmaster(player,
L1TownLocation.TOWNID_TALKING_ISLAND);
} else if (npcid == 70546) { // ケント村 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_KENT);
} else if (npcid == 70567) { // グルーディン村 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_GLUDIO);
} else if (npcid == 70815) { // 火田村 タウンマスター
htmlid = talkToTownmaster(player,
L1TownLocation.TOWNID_ORCISH_FOREST);
} else if (npcid == 70774) { // ウッドベック村 タウンマスター
htmlid = talkToTownmaster(player,
L1TownLocation.TOWNID_WINDAWOOD);
} else if (npcid == 70799) { // シルバーナイトタウン タウンマスター
htmlid = talkToTownmaster(player,
L1TownLocation.TOWNID_SILVER_KNIGHT_TOWN);
} else if (npcid == 70594) { // ギラン都市 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_GIRAN);
} else if (npcid == 70860) { // ハイネ都市 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_HEINE);
} else if (npcid == 70654) { // ウェルダン村 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_WERLDAN);
} else if (npcid == 70748) { // 象牙の塔の村 タウンマスター
htmlid = talkToTownmaster(player, L1TownLocation.TOWNID_OREN);
} else if (npcid == 70534) { // 話せる島の村 タウンアドバイザー
htmlid = talkToTownadviser(player,
L1TownLocation.TOWNID_TALKING_ISLAND);
} else if (npcid == 70556) { // ケント村 タウンアドバイザー
htmlid = talkToTownadviser(player, L1TownLocation.TOWNID_KENT);
} else if (npcid == 70572) { // グルーディン村 タウンアドバイザー
htmlid = talkToTownadviser(player, L1TownLocation.TOWNID_GLUDIO);
} else if (npcid == 70830) { // 火田村 タウンアドバイザー
htmlid = talkToTownadviser(player,
L1TownLocation.TOWNID_ORCISH_FOREST);
} else if (npcid == 70788) { // ウッドベック村 タウンアドバイザー
htmlid = talkToTownadviser(player,
L1TownLocation.TOWNID_WINDAWOOD);
} else if (npcid == 70806) { // シルバーナイトタウン タウンアドバイザー
htmlid = talkToTownadviser(player,
L1TownLocation.TOWNID_SILVER_KNIGHT_TOWN);
} else if (npcid == 70631) { // ギラン都市 タウンアドバイザー
htmlid = talkToTownadviser(player, L1TownLocation.TOWNID_GIRAN);
} else if (npcid == 70876) { // ハイネ都市 タウンアドバイザー
htmlid = talkToTownadviser(player, L1TownLocation.TOWNID_HEINE);
} else if (npcid == 70663) { // ウェルダン村 タウンアドバイザー
htmlid = talkToTownadviser(player,
L1TownLocation.TOWNID_WERLDAN);
} else if (npcid == 70761) { // 象牙の塔の村 タウンアドバイザー
htmlid = talkToTownadviser(player, L1TownLocation.TOWNID_OREN);
} else if (npcid == 70997) { // ドロモンド
htmlid = talkToDoromond(player);
} else if (npcid == 70998) { // 歌う島のガイド
htmlid = talkToSIGuide(player);
} else if (npcid == 70999) { // アレックス(歌う島)
htmlid = talkToAlex(player);
} else if (npcid == 71000) { // アレックス(訓練場)
htmlid = talkToAlexInTrainingRoom(player);
} else if (npcid == 71002) { // キャンセレーション師
htmlid = cancellation(player);
} else if (npcid == 70506) { // ルバー
htmlid = talkToRuba(player);
} else if (npcid == 71005) { // ポピレア
htmlid = talkToPopirea(player);
} else if (npcid == 71009) { // ブリアナ
if (player.getLevel() < 13) {
htmlid = "jpe0071";
}
} else if (npcid == 71011) { // チコリー
if (player.getLevel() < 13) {
htmlid = "jpe0061";
}
} else if (npcid == 71013) { // カレン
if (player.isDarkelf()) {
if (player.getLevel() <= 3) {
htmlid = "karen1";
} else if (player.getLevel() > 3 && player.getLevel() < 50) {
htmlid = "karen3";
} else if (player.getLevel() >= 50) {
htmlid = "karen4";
}
}
} else if (npcid == 71014) { // 村の自警団(右)
if (player.getLevel() < 13) {
htmlid = "en0241";
}
} else if (npcid == 71015) { // 村の自警団(上)
if (player.getLevel() < 13) {
htmlid = "en0261";
} else if (player.getLevel() >= 13 && player.getLevel() < 25) {
htmlid = "en0262";
}
} else if (npcid == 71031) { // 傭兵ライアン
if (player.getLevel() < 25) {
htmlid = "en0081";
}
} else if (npcid == 71032) { // 冒険者エータ
if (player.isElf()) {
htmlid = "en0091e";
} else if (player.isDarkelf()) {
htmlid = "en0091d";
} else if (player.isKnight()) {
htmlid = "en0091k";
} else if (player.isWizard()) {
htmlid = "en0091w";
} else if (player.isCrown()) {
htmlid = "en0091p";
}
} else if (npcid == 71034) { // ラビ
if (player.getInventory().checkItem(41227)) { // アレックスの紹介状
if (player.isElf()) {
htmlid = "en0201e";
} else if (player.isDarkelf()) {
htmlid = "en0201d";
} else if (player.isKnight()) {
htmlid = "en0201k";
} else if (player.isWizard()) {
htmlid = "en0201w";
} else if (player.isCrown()) {
htmlid = "en0201p";
}
}
} else if (npcid == 71033) { // ハーミット
if (player.getInventory().checkItem(41228)) { // ラビのお守り
if (player.isElf()) {
htmlid = "en0211e";
} else if (player.isDarkelf()) {
htmlid = "en0211d";
} else if (player.isKnight()) {
htmlid = "en0211k";
} else if (player.isWizard()) {
htmlid = "en0211w";
} else if (player.isCrown()) {
htmlid = "en0211p";
}
}
} else if (npcid == 71026) { // ココ
if (player.getLevel() < 10) {
htmlid = "en0113";
} else if (player.getLevel() >= 10 && player.getLevel() < 25) {
htmlid = "en0111";
} else if (player.getLevel() > 25) {
htmlid = "en0112";
}
} else if (npcid == 71027) { // クン
if (player.getLevel() < 10) {
htmlid = "en0283";
} else if (player.getLevel() >= 10 && player.getLevel() < 25) {
htmlid = "en0281";
} else if (player.getLevel() > 25) {
htmlid = "en0282";
}
} else if (npcid == 71021) { // 骨細工師マッティー
if (player.getLevel() < 12) {
htmlid = "en0197";
} else if (player.getLevel() >= 12 && player.getLevel() < 25) {
htmlid = "en0191";
}
} else if (npcid == 71022) { // 骨細工師ジーナン
if (player.getLevel() < 12) {
htmlid = "jpe0155";
} else if (player.getLevel() >= 12 && player.getLevel() < 25) {
if (player.getInventory().checkItem(41230)
|| player.getInventory().checkItem(41231)
|| player.getInventory().checkItem(41232)
|| player.getInventory().checkItem(41233)
|| player.getInventory().checkItem(41235)
|| player.getInventory().checkItem(41238)
|| player.getInventory().checkItem(41239)
|| player.getInventory().checkItem(41240)) {
htmlid = "jpe0158";
}
}
} else if (npcid == 71023) { // 骨細工師ケーイ
if (player.getLevel() < 12) {
htmlid = "jpe0145";
} else if (player.getLevel() >= 12 && player.getLevel() < 25) {
if (player.getInventory().checkItem(41233)
|| player.getInventory().checkItem(41234)) {
htmlid = "jpe0143";
} else if (player.getInventory().checkItem(41238)
|| player.getInventory().checkItem(41239)
|| player.getInventory().checkItem(41240)) {
htmlid = "jpe0147";
} else if (player.getInventory().checkItem(41235)
|| player.getInventory().checkItem(41236)
|| player.getInventory().checkItem(41237)) {
htmlid = "jpe0144";
}
}
} else if (npcid == 71020) { // ジョン
if (player.getLevel() < 12) {
htmlid = "jpe0125";
} else if (player.getLevel() >= 12 && player.getLevel() < 25) {
if (player.getInventory().checkItem(41231)) {
htmlid = "jpe0123";
} else if (player.getInventory().checkItem(41232)
|| player.getInventory().checkItem(41233)
|| player.getInventory().checkItem(41234)
|| player.getInventory().checkItem(41235)
|| player.getInventory().checkItem(41238)
|| player.getInventory().checkItem(41239)
|| player.getInventory().checkItem(41240)) {
htmlid = "jpe0126";
}
}
} else if (npcid == 71019) { // 弟子ヴィート
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -