Classic NPC cleanup.

Contributed by Stayway.
This commit is contained in:
MobiusDev 2017-06-16 21:34:07 +00:00
parent 26027d61b5
commit e021ab7811
21 changed files with 1 additions and 4318 deletions

File diff suppressed because it is too large Load Diff

View File

@ -12,355 +12,3 @@ CREATE TABLE `fort_spawnlist` (
PRIMARY KEY (`id`),
KEY `id` (`fortId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `fort_spawnlist` VALUES
(101,null,35658,-53273,156650,-1896,62000,0,0),
(101,null,35659,-58672,154703,-2688,0,2,0),
(101,null,35660,-52128,157752,-2024,29864,1,0),
(101,null,35661,-52435,155188,-1768,20000,1,0),
(101,null,35662,-53944,155433,-2024,7304,1,0),
(101,null,35664,-51269,157584,-2048,39999,0,0),
(101,null,35666,-53422,158079,-2055,51999,0,0),
(101,null,35667,-50640,156000,-2056,63088,0,0),
(101,null,35667,-50938,155810,-2056,30136,0,0),
(101,null,35668,-54608,157216,-2048,62984,0,0),
(101,null,35668,-54896,157008,-2048,29696,0,0),
(101,null,35669,-53351,156814,-2048,30248,0,0),
(101,null,35669,-52160,156176,-2048,62376,0,0),
(101,null,35669,-52272,156208,-2048,29344,0,0),
(101,null,35669,-53240,156729,-2048,62712,0,0),
(101,null,36457,-53768,158042,-2048,62264,0,0),
(101,null,36393,-52680,156525,-2051,30000,3,1),
(102,null,35689,-22256,219808,-3072,32904,0,0),
(102,null,35690,-28169,216864,-3544,0,2,0),
(102,null,35691,-22992,218160,-3208,0,1,0),
(102,null,35692,-21328,218864,-2952,0,1,0),
(102,null,35694,-21520,221504,-3208,45328,1,0),
(102,null,35696,-24640,220960,-3232,60060,0,0),
(102,null,35698,-24128,221488,-3232,54428,0,0),
(102,null,35699,-20116,219724,-3232,0,0,0),
(102,null,35699,-20327,220028,-3232,33316,0,0),
(102,null,35700,-25038,219733,-3232,0,0,0),
(102,null,35700,-25246,220033,-3240,32608,0,0),
(102,null,35701,-23248,219696,-3232,0,0,0),
(102,null,35701,-23360,219904,-3232,32612,0,0),
(102,null,35701,-22176,219907,-3232,33500,0,0),
(102,null,35701,-22048,219696,-3232,0,0,0),
(102,null,36458,-23885,221728,-3232,32672,0,0),
(102,null,36394,-22368,219776,-3080,0,3,1),
(103,null,35727,16885,188473,-2760,42916,0,0),
(103,null,35728,19408,189422,-3136,0,2,0),
(103,null,35729,17984,187536,-2896,45056,1,0),
(103,null,35730,15152,188128,-2640,0,1,0),
(103,null,35731,16016,189520,-2888,0,1,0),
(103,null,35733,17008,186240,-2920,16384,0,0),
(103,null,35735,18304,188604,-2920,36864,0,0),
(103,null,35736,18048,189792,-2920,10324,0,0),
(103,null,35736,17632,189760,-2920,45348,0,0),
(103,null,35737,15282,186259,-2920,43140,0,0),
(103,null,35737,15728,186352,-2920,12288,0,0),
(103,null,35738,16784,188544,-2920,43884,0,0),
(103,null,35738,17060,188551,-2920,11484,0,0),
(103,null,35738,16080,187568,-2920,42884,0,0),
(103,null,35738,16368,187568,-2920,10432,0,0),
(103,null,36459,18397,188339,-2920,42948,0,0),
(103,null,36395,16772,188253,-2768,10232,3,2),
(104,null,35758,126080,123808,-2424,48972,0,0),
(104,null,35759,123383,121093,-2864,0,2,0),
(104,null,35760,124299,123614,-2552,49192,1,0),
(104,null,35761,124768,121856,-2296,0,1,0),
(104,null,35763,124768,124640,-2552,54480,1,0),
(104,null,35765,127920,124384,-2584,36616,0,0),
(104,null,35767,128106,122635,-2588,33036,0,0),
(104,null,35768,126208,120768,-2584,16384,0,0),
(104,null,35768,125904,120544,-2584,49024,0,0),
(104,null,35769,125920,125483,-2584,49024,0,0),
(104,null,35769,126208,125680,-2584,16384,0,0),
(104,null,35770,126186,122800,-2584,16384,0,0),
(104,null,35770,125974,122689,-2584,49024,0,0),
(104,null,35770,125974,123879,-2584,49024,0,0),
(104,null,35770,126177,124007,-2584,16384,0,0),
(104,null,36460,128133,122310,-2584,48972,0,0),
(104,null,36396,126111,123738,-2432,16248,3,3),
(105,null,35796,72544,4608,-2888,56456,0,0),
(105,null,35797,75280,1387,-3268,0,2,0),
(105,null,35798,73788,5479,-3016,55136,1,0),
(105,null,35799,72400,2896,-2760,0,1,0),
(105,null,35800,71264,4144,-3008,0,1,0),
(105,null,35802,74736,4160,-3040,34596,0,0),
(105,null,35804,73119,6121,-3047,46480,0,0),
(105,null,35805,71536,5808,-3040,56456,0,0),
(105,null,35805,71634,6146,-3040,23840,0,0),
(105,null,35806,74256,2960,-3040,23657,0,0),
(105,null,35806,74164,2606,-3040,56453,0,0),
(105,null,35807,73281,3925,-3040,23840,0,0),
(105,null,35807,73194,3703,-3040,56456,0,0),
(105,null,35807,72430,4624,-3040,56456,0,0),
(105,null,35807,72532,4853,-3040,23840,0,0),
(105,null,36461,73470,6019,-3040,56456,0,0),
(105,null,36397,72619,4569,-2889,23840,3,4),
(106,null,35827,154544,55600,-3096,58368,0,0),
(106,null,35828,159377,52403,-3312,0,2,0),
(106,null,35829,155576,56592,-3224,59224,1,0),
(106,null,35830,154704,53856,-2968,0,1,0),
(106,null,35831,153328,54848,-3216,5512,1,0),
(106,null,35833,156768,55552,-3256,32252,0,0),
(106,null,35835,154800,57146,-3257,49096,0,0),
(106,null,35836,153312,56544,-3256,58368,0,0),
(106,null,35836,153328,56896,-3256,25416,0,0),
(106,null,35837,156496,53920,-3256,58368,0,0),
(106,null,35837,156528,54272,-3256,25416,0,0),
(106,null,35838,155385,55045,-3248,25416,0,0),
(106,null,35838,155328,54800,-3256,58368,0,0),
(106,null,35838,154407,55563,-3248,58368,0,0),
(106,null,35838,154468,55805,-3256,25416,0,0),
(106,null,36462,155166,57115,-3256,58368,0,0),
(106,null,36398,154592,55527,-3098,25416,3,5),
(107,null,35858,189968,40224,-3248,0,0,0),
(107,null,35859,190423,43540,-3656,0,2,0),
(107,null,35860,188160,39920,-3376,49284,1,0),
(107,null,35861,188624,38240,-3128,0,1,0),
(107,null,35863,188626,41066,-3376,57140,1,0),
(107,null,35865,191760,40752,-3408,39112,0,0),
(107,null,35867,190992,41376,-3412,45180,0,0),
(107,null,35868,189776,41872,-3408,49148,0,0),
(107,null,35868,190048,42064,-3408,16316,0,0),
(107,null,35869,189776,36960,-3408,49148,0,0),
(107,null,35869,190048,37152,-3408,16316,0,0),
(107,null,35870,189812,39071,-3408,49148,0,0),
(107,null,35870,190044,39197,-3408,16316,0,0),
(107,null,35870,189825,40269,-3408,49148,0,0),
(107,null,35870,190048,40400,-3408,16316,0,0),
(107,null,36463,190798,41513,-3408,49148,0,0),
(107,null,36399,189984,40112,-3254,0,3,5),
(108,null,35896,118827,205186,-3176,38352,0,0),
(108,null,35897,114436,202528,-3408,0,2,0),
(108,null,35898,118880,203568,-3304,5396,1,0),
(108,null,35899,117216,205648,-3048,0,1,0),
(108,null,35900,118560,206560,-3304,48872,1,0),
(108,null,35902,120160,204256,-3336,30272,0,0),
(108,null,35904,118138,203228,-3336,17176,0,0),
(108,null,35905,120113,205939,-3336,38352,0,0),
(108,null,35905,120407,205831,-3336,5396,0,0),
(108,null,35906,116741,203878,-3336,5396,0,0),
(108,null,35906,116460,203986,-3336,38352,0,0),
(108,null,35907,117785,204712,-3336,38352,0,0),
(108,null,35907,117980,204551,-3328,5396,0,0),
(108,null,35907,118832,205280,-3328,38352,0,0),
(108,null,35907,119040,205120,-3336,5396,0,0),
(108,null,36464,117889,203183,-3336,38352,0,0),
(108,null,36400,118785,205138,-3177,5396,3,6),
(109,null,35927,158720,-70032,-2704,59020,0,0),
(109,null,35928,161876,-73407,-2984,0,2,0),
(109,null,35929,157968,-71659,-2832,59020,1,0),
(109,null,35930,159664,-72224,-2584,0,1,0),
(109,null,35932,157312,-70640,-2832,0,1,0),
(109,null,35934,159312,-68240,-2864,49028,0,0),
(109,null,35936,160832,-69056,-2866,42144,0,0),
(109,null,35937,157293,-69255,-2864,59020,0,0),
(109,null,35937,157280,-68912,-2864,27244,0,0),
(109,null,35938,161373,-71636,-2864,27244,0,0),
(109,null,35938,161371,-71992,-2864,59020,0,0),
(109,null,35939,158672,-69856,-2864,27244,0,0),
(109,null,35939,158635,-70096,-2864,59020,0,0),
(109,null,35939,159632,-70761,-2864,59020,0,0),
(109,null,35939,159670,-70518,-2864,27244,0,0),
(109,null,36465,161130,-69197,-2864,59020,0,0),
(109,null,36401,158776,-70042,-2708,27244,3,7),
(110,null,35965,70062,-60958,-2624,45292,0,0),
(110,null,35966,71436,-58182,-2904,0,2,0),
(110,null,35967,71248,-62352,-2752,12388,1,0),
(110,null,35968,71264,-60512,-2504,0,1,0),
(110,null,35970,68688,-59648,-2752,56012,1,0),
(110,null,35972,70144,-63584,-2784,18252,0,0),
(110,null,35974,70944,-63168,-2784,25448,0,0),
(110,null,35975,68995,-63605,-2784,12388,0,0),
(110,null,35975,68668,-63690,-2784,45292,0,0),
(110,null,35976,70884,-59059,-2784,12388,0,0),
(110,null,35976,70535,-59147,-2784,45292,0,0),
(110,null,35977,70194,-60871,-2784,12388,0,0),
(110,null,35977,69936,-60882,-2784,45292,0,0),
(110,null,35977,69736,-61986,-2784,12388,0,0),
(110,null,35977,69472,-61984,-2784,45292,0,0),
(110,null,36466,71273,-62968,-2784,45292,0,0),
(110,null,36433,70058,-61012,-2630,12388,3,8),
(111,null,36003,109024,-141072,-2800,62612,0,0),
(111,null,36004,105447,-139845,-3120,0,2,0),
(111,null,36005,109600,-139735,-2928,62612,1,0),
(111,null,36006,109856,-142640,-2672,0,1,0),
(111,null,36007,108223,-142209,-2920,8524,1,0),
(111,null,36009,108544,-139488,-2952,55116,0,0),
(111,null,36011,110859,-139960,-2952,40492,0,0),
(111,null,36012,111383,-141559,-2960,29804,0,0),
(111,null,36012,111494,-141882,-2952,62612,0,0),
(111,null,36013,107424,-140362,-2960,29804,0,0),
(111,null,36013,107538,-140682,-2960,62612,0,0),
(111,null,36014,110078,-141517,-2952,62612,0,0),
(111,null,36014,108896,-140928,-2952,29804,0,0),
(111,null,36014,108931,-141177,-2952,62612,0,0),
(111,null,36014,110048,-141271,-2952,29804,0,0),
(111,null,36467,111163,-140542,-2952,62612,0,0),
(111,null,36434,109080,-141070,-2801,29804,3,9),
(112,null,36034,5136,149728,-2728,0,0,0),
(112,null,36035,14186,149947,-3352,0,2,0),
(112,null,36036,7006,148242,-2856,32768,1,0),
(112,null,36037,6528,151872,-2608,0,1,0),
(112,null,36039,4384,150992,-2856,0,1,0),
(112,null,36041,5968,146864,-2888,19216,0,0),
(112,null,36043,4320,150032,-2892,0,0,0),
(112,null,36044,7345,150866,-2888,32768,0,0),
(112,null,36044,7552,150601,-2888,0,0,0),
(112,null,36045,3905,148865,-2888,32768,0,0),
(112,null,36045,4101,148594,-2888,0,0,0),
(112,null,36046,6257,149635,-2888,0,0,0),
(112,null,36046,6165,149868,-2888,32768,0,0),
(112,null,36046,5065,149635,-2888,0,0,0),
(112,null,36046,4962,149869,-2888,32768,0,0),
(112,null,36468,4326,149651,-2888,0,0,0),
(112,null,36435,5217,149697,-2736,32768,3,1),
(112,null,36436,5217,149754,-2736,32768,3,2),
(114,null,36110,60379,139950,-1592,46872,0,0),
(114,null,36111,58314,136319,-2000,0,2,0),
(114,null,36112,61864,139257,-1728,46896,1,0),
(114,null,36113,58480,139648,-1464,0,1,0),
(114,null,36114,59436,140834,-1720,47296,1,0),
(114,null,36116,60576,138064,-1752,16532,0,0),
(114,null,36118,60400,140688,-1757,48196,0,0),
(114,null,36119,61696,140832,-1752,14120,0,0),
(114,null,36119,61395,140689,-1752,46936,0,0),
(114,null,36120,58828,138054,-1752,46872,0,0),
(114,null,36120,59137,138189,-1752,14120,0,0),
(114,null,36121,60265,139991,-1752,46872,0,0),
(114,null,36121,60522,140048,-1752,14480,0,0),
(114,null,36121,60042,138817,-1752,46872,0,0),
(114,null,36121,60285,138872,-1752,14480,0,0),
(114,null,36470,60145,140737,-1752,46872,0,0),
(114,null,36439,60391,139884,-1600,14480,3,2),
(114,null,36440,60343,139892,-1600,14480,3,3),
(115,null,36141,11537,95509,-3264,49151,0,0),
(115,null,36142,9318,92253,-3536,0,2,0),
(115,null,36143,9472,94992,-3392,0,1,0),
(115,null,36144,13184,94928,-3144,0,1,0),
(115,null,36145,12829,96214,-3392,49152,1,0),
(115,null,36147,10112,93760,-3424,16384,0,0),
(115,null,36149,9485,96089,-3424,57220,0,0),
(115,null,36150,12633,93599,-3424,16384,0,0),
(115,null,36150,12365,93398,-3424,49151,0,0),
(115,null,36151,10615,96684,-3424,16384,0,0),
(115,null,36151,10344,96478,-3424,49151,0,0),
(115,null,36152,11654,95634,-3424,16384,0,0),
(115,null,36152,11422,95531,-3424,49151,0,0),
(115,null,36152,11660,94437,-3424,16384,0,0),
(115,null,36152,11420,94333,-3424,49151,0,0),
(115,null,36471,9203,95842,-3424,49151,0,0),
(115,null,36441,11549,95447,-3270,16384,3,2),
(115,null,36442,11517,95447,-3270,16384,3,4),
(116,null,36172,79686,91280,-2720,37660,0,0),
(116,null,36173,74810,90814,-3344,0,2,0),
(116,null,36174,77262,91704,-2856,5112,1,0),
(116,null,36175,79440,88752,-2600,0,1,0),
(116,null,36177,80929,90510,-2856,40192,1,0),
(116,null,36179,77600,93440,-2880,57688,0,0),
(116,null,36181,76848,92624,-2880,62456,0,0),
(116,null,36182,80031,92773,-2880,37568,0,0),
(116,null,36182,80329,92637,-2880,5012,0,0),
(116,null,36183,78231,89249,-2880,5012,0,0),
(116,null,36183,77927,89390,-2880,37920,0,0),
(116,null,36184,78812,90685,-2880,5012,0,0),
(116,null,36184,79666,91408,-2880,37660,0,0),
(116,null,36184,78611,90849,-2880,37660,0,0),
(116,null,36184,79865,91249,-2880,5012,0,0),
(116,null,36472,76880,92931,-2880,37660,0,0),
(116,null,36443,79618,91276,-2728,5012,3,4),
(116,null,36444,79641,91231,-2728,5012,3,3),
(117,null,36210,111368,-14624,-832,49151,0,0),
(117,null,36211,114221,-18762,-1768,0,2,0),
(117,null,36212,109872,-16624,-968,16384,1,0),
(117,null,36213,113481,-16058,-712,0,1,0),
(117,null,36215,112601,-13933,-960,49152,1,0),
(117,null,36217,108496,-15504,-992,0,0,0),
(117,null,36219,108880,-16492,-992,8356,0,0),
(117,null,36220,110219,-13636,-992,49151,0,0),
(117,null,36220,110478,-13435,-992,16384,0,0),
(117,null,36221,112216,-17087,-992,49151,0,0),
(117,null,36221,112482,-16883,-992,16384,0,0),
(117,null,36222,111248,-15800,-992,49151,0,0),
(117,null,36222,111487,-15701,-992,16384,0,0),
(117,null,36222,111253,-14604,-992,49151,0,0),
(117,null,36222,111486,-14503,-992,16384,0,0),
(117,null,36473,108614,-16342,-992,49151,0,0),
(117,null,36445,111323,-14680,-839,16384,3,5),
(117,null,36446,111368,-14680,-839,16384,3,4),
(117,null,36447,111412,-14681,-839,16384,3,7),
(118,null,36248,125246,95621,-1976,49151,0,0),
(118,null,36249,121072,93215,-2736,0,2,0),
(118,null,36250,122688,95760,-2112,0,1,0),
(118,null,36251,123232,94400,-1856,0,1,0),
(118,null,36253,124305,96528,-2104,49151,1,0),
(118,null,36255,126384,93728,-2144,16384,0,0),
(118,null,36257,127968,95328,-2144,32768,0,0),
(118,null,36258,124357,93571,-2144,16384,0,0),
(118,null,36258,124080,93379,-2144,49151,0,0),
(118,null,36259,126328,97008,-2144,16384,0,0),
(118,null,36259,126064,96813,-2144,49151,0,0),
(118,null,36260,125128,94482,-2144,49151,0,0),
(118,null,36260,125364,95782,-2144,16384,0,0),
(118,null,36260,125131,95677,-2136,49151,0,0),
(118,null,36260,125365,94582,-2136,16384,0,0),
(118,null,36474,128023,94941,-2144,49151,0,0),
(118,null,36448,125266,95558,-1984,16384,3,5),
(118,null,36449,125226,95559,-1984,16384,3,3),
(119,null,36286,72834,186402,-2424,54844,0,0),
(119,null,36287,71692,188004,-2616,0,2,0),
(119,null,36288,71392,184720,-2552,5528,1,0),
(119,null,36289,74288,186912,-2296,0,1,0),
(119,null,36290,71542,186410,-2552,55088,1,0),
(119,null,36292,74832,185648,-2584,24516,0,0),
(119,null,36294,70768,185632,-2584,63668,0,0),
(119,null,36295,73081,188000,-2584,22248,0,0),
(119,null,36295,72974,187690,-2584,54844,0,0),
(119,null,36296,73127,184321,-2584,22248,0,0),
(119,null,36296,73008,184000,-2584,54844,0,0),
(119,null,36297,73523,185589,-2576,22248,0,0),
(119,null,36297,73376,185380,-2584,54844,0,0),
(119,null,36297,72713,186369,-2576,54844,0,0),
(119,null,36297,72851,186593,-2584,22248,0,0),
(119,null,36475,70720,185261,-2584,54844,0,0),
(119,null,36450,72880,186364,-2425,22248,3,6),
(119,null,36451,72850,186346,-2425,22248,3,3),
(120,null,36317,100213,-55318,-488,0,0,0),
(120,null,36318,104686,-57581,-944,0,2,0),
(120,null,36319,100688,-57440,-616,16384,1,0),
(120,null,36320,100752,-53664,-360,0,1,0),
(120,null,36322,99484,-54027,-616,0,1,0),
(120,null,36324,101952,-56752,-640,32768,0,0),
(120,null,36326,99600,-57360,-648,8476,0,0),
(120,null,36327,102103,-54225,-640,32768,0,0),
(120,null,36327,102308,-54490,-640,0,0,0),
(120,null,36328,99016,-56242,-632,32768,0,0),
(120,null,36328,99229,-56507,-640,0,0,0),
(120,null,36329,101363,-55435,-640,0,0,0),
(120,null,36329,101268,-55199,-640,32768,0,0),
(120,null,36329,100168,-55434,-640,0,0,0),
(120,null,36329,100064,-55200,-640,32768,0,0),
(120,null,36476,99834,-57649,-648,0,0,0),
(120,null,36452,100280,-55302,-489,32768,3,8),
(120,null,36453,100280,-55334,-489,32768,3,7),
(121,null,36355,72365,-94294,-1264,44872,0,0),
(121,null,36356,69553,-91746,-1488,0,2,0),
(121,null,36357,70189,-93935,-1400,61576,1,0),
(121,null,36358,73680,-95456,-1144,0,1,0),
(121,null,36360,73831,-94119,-1400,45536,1,0),
(121,null,36362,70384,-95360,-1424,11308,0,0),
(121,null,36364,70704,-92960,-1424,53872,0,0),
(121,null,36365,71641,-92931,-1424,44872,0,0),
(121,null,36365,71971,-92846,-1424,12456,0,0),
(121,null,36366,72323,-96557,-1424,44872,0,0),
(121,null,36366,72653,-96469,-1424,12456,0,0),
(121,null,36367,72264,-94213,-1424,44872,0,0),
(121,null,36367,72066,-95317,-1424,12456,0,0),
(121,null,36367,71810,-95321,-1424,44872,0,0),
(121,null,36367,72526,-94209,-1424,12456,0,0),
(121,null,36477,70350,-93054,-1424,44872,0,0),
(121,null,36454,72358,-94360,-1272,12456,3,8),
(121,null,36455,72324,-94346,-1272,12456,3,9);

View File

@ -61,22 +61,6 @@ of this directory a little bit.
311132501.xml -> Seven Signs - Merchant of Mammon - Buy Etc Items
311262501.xml -> Seven Signs - Blacksmith of Mammon - SA: S-Grade
311262502.xml -> Seven Signs - Blacksmith of Mammon - A-grade duals
311262503.xml -> Seven Signs - Blacksmith of Mammon - Duals S-Grade.
311262504.xml -> Seven Signs - Blacksmith of Mammon - Unseal S-Grade Armor.
311262505.xml -> Seven Signs - Blacksmith of Mammon - Unseal S-grade Accesories
311262506.xml -> Unseal A-Grade Armor
311262507.xml -> Unseal A-grade Accesories
311262508.xml -> Reseal A-grade Armor
311262509.xml -> Seven Signs - Blacksmith of Mammon - SA removal
311262510.xml -> Seven Signs - Blacksmith of Mammon - SA: A-grade
311262511.xml -> Seven Signs - Blacksmith of Mammon - Weapon Upgrade
311262512.xml -> Seven Signs - Blacksmith of Mammon - Weapon Exchange (D~B grade)
311262519.xml -> Seven Signs - Blacksmith of Mammon - Weapon Exchange (A-grade)
311262513.xml -> Seven Signs - Blacksmith of Mammon - Foundation Items
311262516.xml -> Seven Signs - Blacksmith of Mammon - Exchange rare armor for superior armor.
306893001.xml -> Shadow weaponry system. D-grade coupons exchange
306893002.xml -> Shadow weaponry system. C-grade coupons exchange
306893003.xml -> Shadow weaponry system. D/C-grade coupons exchange

View File

@ -1,173 +0,0 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.others.CastleAmbassador;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.entity.Castle;
import com.l2jmobius.gameserver.model.entity.Fort;
import ai.AbstractNpcAI;
/**
* Castle Ambassador AI.
* @author St3eT
*/
public final class CastleAmbassador extends AbstractNpcAI
{
// NPCs
// @formatter:off
private static final int[] CASTLE_AMBASSADOR =
{
36393, 36394, 36437, 36435, // Gludio
36395, 36436, 36439, 36441, // Dion
36396, 36440, 36444, 36449, 36451, // Giran
36397, 36438, 36442, 36443, 36446, // Oren
36398, 36399, 36445, 36448, // Aden
36400, 36450, // Innadril
36401, 36447, 36453, // Goddard
36433, 36452, 36454, // Rune
36434, 36455, // Schuttgart
};
// @formatter:on
private CastleAmbassador()
{
addStartNpc(CASTLE_AMBASSADOR);
addTalkId(CASTLE_AMBASSADOR);
addFirstTalkId(CASTLE_AMBASSADOR);
addEventReceivedId(CASTLE_AMBASSADOR);
addSpawnId(CASTLE_AMBASSADOR);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
if (npc != null)
{
final Fort fortresss = npc.getFort();
switch (event)
{
case "signed":
{
if (fortresss.getFortState() == 0)
{
fortresss.setFortState(2, fortresss.getCastleIdByAmbassador(npc.getId()));
cancelQuestTimer("DESPAWN", npc, null);
startQuestTimer("DESPAWN", 3000, npc, null);
htmltext = "ambassador-05.html";
}
else if (fortresss.getFortState() == 1)
{
htmltext = "ambassador-04.html";
}
break;
}
case "rejected":
{
if (fortresss.getFortState() == 0)
{
fortresss.setFortState(1, fortresss.getCastleIdByAmbassador(npc.getId()));
cancelQuestTimer("DESPAWN", npc, null);
startQuestTimer("DESPAWN", 3000, npc, null);
htmltext = "ambassador-02.html";
}
else if (fortresss.getFortState() == 2)
{
htmltext = "ambassador-02.html";
}
break;
}
case "DESPAWN":
{
if (fortresss.getFortState() == 0)
{
fortresss.setFortState(1, fortresss.getCastleIdByAmbassador(npc.getId()));
}
cancelQuestTimer("DESPAWN", npc, null);
npc.broadcastEvent("DESPAWN", 1000, null);
npc.deleteMe();
break;
}
}
}
return htmltext;
}
@Override
public String onEventReceived(String eventName, L2Npc sender, L2Npc receiver, L2Object reference)
{
if ((receiver != null) && eventName.equals("DESPAWN"))
{
receiver.deleteMe();
}
return super.onEventReceived(eventName, sender, receiver, reference);
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
final Fort fortresss = npc.getFort();
final int fortOwner = fortresss.getOwnerClan() == null ? 0 : fortresss.getOwnerClan().getId();
String htmltext = null;
if (player.isClanLeader() && (player.getClan() != null) && (player.getClanId() == fortOwner))
{
htmltext = (fortresss.isBorderFortress()) ? "ambassador-01.html" : "ambassador.html";
}
else
{
htmltext = "ambassador-03.html";
}
htmltext = getHtm(player.getHtmlPrefix(), htmltext);
htmltext = htmltext.replace("%castleName%", fortresss.getCastleByAmbassador(npc.getId()).getName());
return htmltext;
}
@Override
public String onSpawn(L2Npc npc)
{
final Fort fort = npc.getFort();
if (fort == null)
{
npc.deleteMe();
_log.warning("Spawned: " + npc + " location: " + npc.getLocation() + " without fort!");
return null;
}
final Castle castle = fort.getCastleByAmbassador(npc.getId());
if ((castle == null) || (castle.getOwnerId() == 0))
{
npc.deleteMe();
}
else
{
startQuestTimer("DESPAWN", 3600000, npc, null);
}
return super.onSpawn(npc);
}
public static void main(String[] args)
{
new CastleAmbassador();
}
}

View File

@ -1,7 +0,0 @@
<html><body>Ambassador of %castleName%:<br><br>
My master is the great ruler of %castleName% Castle. The message I am commanded to relay to you, the new possessor of this fortress, is: "Protect this territory from our enemies!"<br>
If you do not have the strength to protect this place, my master inquires whether you would care to use our clan's strength to develop your skills.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleAmbassador rejected">"We decline. We will walk our own path."</Button>
</center>
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
There was a problem signing the contract. Please try again later.
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
Impudent pup! The letter I hold may only be seen by your leader.
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
You have already rejected my lord's offer. Why have you now changed your mind?
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
You have signed the contract. I am sure that my lord will be pleased.
</body></html>

View File

@ -1,8 +0,0 @@
<html><body>Ambassador of %castleName%:<br><br>
My master is the ruler of %castleName% Castle, renowned throughout the world for his wisdom and strength. To you who have gained possession of this fortress, he sends these words: "Prove your loyalty to the castle with this contract!"<br>
Unless you do so, my lord will know that your loyalty is suspect. Make your decision!<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleAmbassador signed">"Very well, I will sign the contract."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleAmbassador rejected">"I need no help from people like you!"</Button>
</center>
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 778">Craft R-Grade Dual Weapon</Button>
</body></html>

View File

@ -1,5 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 216">Craft S-Grade Dual Weapon</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 217">Remove Seal from S-Grade Armor</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 218">Remove Seal from S-Grade Accessory</Button>
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 211">Craft A-Grade Dual Weapon</Button>
</body></html>

View File

@ -1,6 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
I'll exchange the weapon that you've been using for a weapon that is one level stronger. Pay me the difference in Ancient Adena.<br>
There's something you should know. <font color="LEVEL">Special abilities</font> don't transfer. And if you transfer <font color="LEVEL">enchantments</font>, the new weapon will not be enchanted.<br>
<Button ALIGN=LEFT ICON="normal" action="bypass -h npc_%objectId%_exc_multisell 202">Replace a weapon with an even stronger weapon</Button>
<Button ALIGN=LEFT ICON="return" action="bypass -h npc_%objectId%_Quest Mammons 31126.html">Back</Button>
</body></html>

View File

@ -1,8 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
I will exchange the weapon for another type of the same grade. For example, you can exchange a mithril dagger for a two-handed claymore of the same grade. But, I have to warn you.<br>
First, weapons with <font color="LEVEL">special abilities</font> cannot be exchanged.<br>
Second, when exchanging a weapon that has been <font color="LEVEL">enchanted</font> the exchanged weapon will have the same enchantment.<br>
<Button ALIGN=LEFT ICON="normal" action="bypass -h npc_%objectId%_exc_multisell 203">Exchange a weapon of D-grade to B-grade for a different type</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 2003">Exchange an A-grade weapon for a different type</Button>
<Button ALIGN=LEFT ICON="return" action="bypass -h npc_%objectId%_Quest Mammons 31126.html">Back</Button>
</body></html>

View File

@ -1,8 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
Do you know about the Foundation Items? Even we blacksmiths see them only infrequently.<br>
These uncommon items are brought into being by a power than goes beyond mere chance. We Dwarves say that it is the blessing of Maphr.<br>
That perfect craftsmanship is beyond the Human race's capacity.<br>
It is not, however, beyond mine. Bring me <font color="LEVEL">Mammon's Varnish Enhancer, which is sold by the Merchant of Mammon</font>. Then I will use techniques known only to me to transform the item into something accessible to mortals.<br>
Be sure to select a helmet among the rare items that provides you with a useful power. Don't worry if you make the wrong choice, though. You will have another chance to make a selection.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 637">Complete a Foundation Item</Button>
</body></html>

View File

@ -1,16 +0,0 @@
<html><body>Blacksmith of Mammon:<br>
May Mammon bless you! I, the Blacksmith of Mammon, have come to offer you arms of the highest quality.<br>
I shall mend your weapons and armor with skills that no novice blacksmith could ever hope to imitate.<br>
Yet there are a few things I must tell you. Although we Dwarves of Mammon didn't deal in coins of the outside world before, we have changed with the times and now accept them. Also remember that you can only remove seals from A-grade items with village blacksmiths now. Lastly, I can change the status of Bound items for you, if you provide an Unbind Scroll for me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-01.html">R-grade</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-02.html">S-grade</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-03.html">A-grade</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-04.html">Replace a weapon with an even stronger weapon</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-05.html">Replace a weapon with another type of the same grade</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126-06.html">Finish a chaotic masterwork item</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 700">Exchange masterwork upper armor for common upper armor.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 776">Remove the curse contained in an item or upgrade the item to a blessed item</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 864">Upgrade Amaranthine/Eternal equipment</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 31126.html">Switch Amaranthine/Eternal equipment</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -1,6 +0,0 @@
<html><body>Priest of Mammon:<br>
The door to the Necropolis and Catacombs is closed. I heard that the monsters inside were cleaned out by the Goddess of Destruction but... hmm... I don't know.<br>
No matter, both the Dawn and Dusk were caught horribly unprepared by Shilen's resurrection. Haha... Because of this, I started taking on the work normally done by the priests of Dawn and Dusk.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 208">"I want to buy some supplies."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2021">"I'd like to exchange a seal stone for an item."</Button>
</body></html>

View File

@ -1,6 +0,0 @@
<html><body>Merchant of Mammon:<br>
Elcyum is a mineral found by the Gray Pillar dwarves in the deepest part of the Spine Mountains.<br>
Its energies increase an item's upgrade chances. It can also be exchanged for a <font color="LEVEL">Giant's Augmenting Stone</font> that provides advanced augmentation.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2030">"I want to exchange Elcyum for something."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2031">"I want to exchange a Giant's Augmenting Stone for something."</Button>
</body></html>

View File

@ -1,9 +0,0 @@
<html><body>Merchant of Mammon:<br>
May Mammon's blessings be upon you! Mammon's Guild is here to showcase our rare item collection.<br>
Before you start shopping, there are a few things you should know. While we dealt only in Ancient Adena in the past, now we take Adena like any other merchant. Also, you must bring a <font color="LEVEL">Blank Scroll</font> if you plan to purchase an Enchant Scroll. If you bring us Soul Crystal Fragments, we can make them into whole Soul Crystals. We also have <font color="LEVEL">Elcyum</font> to upgrade items.<br>
Remember, local tax rates apply!<br>
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 207">"I want to buy items."</Button>
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Can you tell me about the local lord and tax rate?"</Button>
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Mammons 33739-01.html">"I want to see Elcyum."</Button>
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3007">"I want to buy some Talismans."</Button>
</body></html>

View File

@ -1,137 +0,0 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.others.Mammons;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.util.Broadcast;
import ai.AbstractNpcAI;
/**
* Mammons AI.
* @author St3eT
*/
public final class Mammons extends AbstractNpcAI
{
// NPCs
private static final int MAMMONS[] =
{
31126, // Blacksmith of Mammon
33739, // Priest of Mammon
33511, // Merchant of Mammon
};
// Locations
private static final Location[] BLACKSMITH_LOC =
{
new Location(146873, 29448, -2264, 0), // Aden
new Location(81266, 150091, -3528, 891), // Giran
new Location(42825, -41337, -2184), // Rune
};
private static final Location[] MERCHANT_LOC =
{
new Location(146872, 29569, -2264, 0), // Aden
new Location(81272, 150041, -3528, 891), // Giran
new Location(42803, -41283, -2184, 37972), // Rune
};
private static final Location[] PRIEST_LOC =
{
new Location(146882, 29665, -2264, 0), // Aden
new Location(81284, 150155, -3528, 891), // Giran
new Location(42784, -41236, -2192, 37972), // Rune
};
// Misc
private static final NpcStringId[] RANDOM_SAY =
{
NpcStringId.I_BRING_YOU_WONDROUS_GIFTS,
NpcStringId.I_HAVE_SOME_EXCELLENT_WEAPONS_TO_SHOW_YOU,
NpcStringId.I_VE_BEEN_SO_BUSY_LATELY_IN_ADDITION_TO_PLANNING_MY_TRIP,
};
private static final int TELEPORT_DELAY = 3600000; // 60min
private static final List<L2Npc> _mammons = new ArrayList<>();
private Mammons()
{
addStartNpc(MAMMONS);
addTalkId(MAMMONS);
addFirstTalkId(MAMMONS);
onAdvEvent("RESPAWN_MAMMONS", null, null);
startQuestTimer("RESPAWN_MAMMONS", TELEPORT_DELAY, null, null, true);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "31126.html":
case "31126-01.html":
case "31126-02.html":
case "31126-03.html":
case "31126-04.html":
case "31126-05.html":
case "31126-06.html":
case "33739-01.html":
{
htmltext = event;
break;
}
case "RESPAWN_MAMMONS":
{
if (!_mammons.isEmpty())
{
_mammons.stream().filter(Objects::nonNull).forEach(L2Npc::deleteMe);
_mammons.clear();
}
final int town = getRandom(3);
final L2Npc blacksmith = addSpawn(MAMMONS[0], BLACKSMITH_LOC[town]);
final L2Npc merchant = addSpawn(MAMMONS[1], MERCHANT_LOC[town]);
final L2Npc priest = addSpawn(MAMMONS[2], PRIEST_LOC[town]);
_mammons.addAll(Arrays.asList(blacksmith, merchant, priest));
if (blacksmith != null)
{
blacksmith.broadcastSay(ChatType.NPC_GENERAL, RANDOM_SAY[getRandom(RANDOM_SAY.length)]);
if (Config.ANNOUNCE_MAMMON_SPAWN)
{
Broadcast.toAllOnlinePlayers("Mammon's has been spawned in Town of " + blacksmith.getCastle().getName() + ".", false);
}
}
break;
}
}
return htmltext;
}
public static void main(String[] args)
{
new Mammons();
}
}