SHARE
TWEET

Untitled

a guest Aug 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. // Тут части для удобства
  5. var Items = {};
  6. var Recipe = {};
  7. var Conditions = {};
  8.  
  9. var isDebug = false;
  10.  
  11. var predefineItem = (id, nameEn, nameRu, tooltipEn, tooltipRu, tooltiptwoEn, tooltiptwoRu, isHidden) => {
  12.  nameEn = nameEn || ''
  13.  nameRu = nameRu || ''
  14.  tooltipEn = tooltipEn || ''
  15.  tooltipRu = tooltipRu || ''
  16.  tooltiptwoEn = tooltiptwoEn || ''
  17.  tooltiptwoRu = tooltiptwoRu || ''
  18.  Localization.addLocalization('ITEMNAME[' + id + ']=' + nameEn, true, isHidden);
  19.  Localization.addLocalization('ITEMNAME[' + id + ']=' + nameRu, false, isHidden);
  20.  Localization.addLocalization('TOOLTIP[' + id + ']=' + tooltipEn, true, isHidden);
  21.  Localization.addLocalization('TOOLTIP[' + id + ']=' + tooltipRu, false, isHidden);
  22.  Localization.addLocalization('TOOLTIPTWO[' + id + ']=' + tooltiptwoEn, true, isHidden);
  23.  Localization.addLocalization('TOOLTIPTWO[' + id + ']=' + tooltiptwoRu, false, isHidden);
  24. }
  25. predefineItem(8192, "Crystal Knives", '','','','','',false);
  26. predefineItem(8193, "Causality Reaper", "", "Kill the World", "", "", "",false);
  27. predefineItem(8194, "Dimension Reaver", "", "Devour Existance", "", "", "",false);
  28. predefineItem(8195, "Cosmic Devourer", "", "Thy God Consumed", "", "", "",false);
  29. predefineItem(8196, "Antliogator", "", "", "", "", "",false);
  30. predefineItem(8197, "Eradicator", "", "They are rage, brutal, without mercy. But you. You will be worse", "", "Rip and tear, until it is done", "",false);
  31. predefineItem(8198, "Divine Scrap", "", "Seems like a chunk of divine metal.", "", "Might've come from the Paladins.", "",false);
  32. predefineItem(8199, "Divinium Bar", "", "Pulses with divine energy", "", "", "",false);
  33. predefineItem(8200, "Divine Leggings", "", "Godlike Speed", "", "",false);
  34. predefineItem(8201, "Divine Chestplate", "", "Extreme Durability", "", "",false);
  35. predefineItem(8202, "Divine Helmet", "", "Unbeatable sharpshooting", "", "",false);
  36. predefineItem(8203, "Divine Headgear", "", "Unremarkable Power", "", "",false);
  37. predefineItem(8204, "Divine Mask", "", "Unstoppable Strength", "", "", ''false);
  38. predefineItem(8205, "Causilite Bar", "", "The Bar forged from Dead worlds", "", "",false);
  39.  
  40.  
  41. //Пример predefineItem(8221, "", "","","","","",false);
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. // Разрабы
  51. predefineItem(16666, 'Semage Mask', "Маска Semage","Great for impersonating devs!",'Поможет вам выдать себя за разработчика!','',false);
  52. predefineItem(17777, 'Semage Robe', "Роба Semage","Great for impersonating devs!",'Поможет вам выдать себя за разработчика!','',false);
  53. predefineItem(19999, 'Semage Boots', "Сапоги Semage","Great for impersonating devs!",'Поможет вам выдать себя за разработчика!','',false);
  54. predefineItem(16667, 'Cknight Head', 'Голова Cknight',"Great for impersonating devs!","Поможет вам выдать себя за разработчика!",'','',false);
  55. predefineItem(16668, 'Cknight Body', 'Нагрудник Cknight',"Great for impersonating devs!","Поможет вам выдать себя за разработчика!",'','',false);
  56. predefineItem(16669, 'Cknight Boots', 'Поножи Cknight',"Great for impersonating devs!","Поможет вам выдать себя за разработчика!",'','',false);
  57. predefineItem(16674, 'Octodudes Head', 'Голова Осминога',"Great for impersonating devs!","Поможет вам выдать себя за разработчика!",'','',false);
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. // Регает предмет с данными параметрами
  65. var registerItem = (id, baseId) => {
  66.     var item = Item.init(id);
  67.     item.setBaseItemId(baseId || 757)
  68.     item.setProperty("shoot", 0); // Потому что по умолчанию стоит террамеч который стреляет своими прожектайлами.
  69.     return item;
  70. };
  71. var setupItems = () => {
  72.     Items.FishPole = registerItem(2289,2289)
  73.     Items.CrystalKnives = registerItem(8192,1569);
  74.     Items.CausalityReaper = registerItem (8193,1327);
  75.     Items.DimReav = registerItem (8194,426);
  76.     Items.CDev = registerItem (8195,1255);
  77.     Items.AntGator = registerItem (8196,2270);
  78.     Items.Eradicator = registerItem (8197,533);
  79.     Items.Dchunk = registerItem (8198,947);
  80.     Items.Dbar = registerItem (8199, 520);
  81.     Items.Dlegging = registerItem (8200, 522);
  82.     Items.Dchest = registerItem (8201, 551);
  83.     Items.Dhelmet = registerItem (8202, 553);
  84.     Items.Dheadgear = registerItem (8203, 558);
  85.     Items.Dmask = registerItem (8204, 559);
  86.     Items.CausaliteBar = registerItem (8205, 520);
  87.  
  88.  
  89.  
  90.     //Items.ChaosBloodMageHood = registerItem(xxxx,727);
  91.     //Items.ChaosBloodMageRobe = registerItem(xxxx,728);
  92.    //Items.ChaosBloodMageBoots = registerItem(xxxx,729);
  93.  
  94.  //Разрабы
  95.  Items.SemageMask = registerItem(16666,727);
  96.  Items.SemageRobe = registerItem(17777,728);
  97.  Items.SemageBoots = registerItem(19999,729);
  98.  
  99.  Items.CknightHead = registerItem(16667,727);
  100.  Items.CknightBody = registerItem(16668,728);
  101.  Items.CknightBoots = registerItem(16669,729);
  102.  
  103.  Items.MeyränsHood = registerItem(16670,727);
  104.  Items.MeyränsBodice = registerItem(16672,728);
  105.  Items.MeyränsTights = registerItem(16673,729);
  106.  
  107.  Items.OctodudesHead = registerItem(16674,727);
  108.  
  109.  //Костюмы
  110.  
  111.   //Semage mask  
  112.  Items.SemageMask.setTexture("Item_SemageMask.png");
  113.  Items.SemageMask.setArmorParams("head", "armor_SemageMask.png", 222);
  114.  Items.SemageMask.setProperty("rare", 7);
  115.  var condSE = Item.addSetCondition();
  116.  condSE.addConditionItem("head", 16666)
  117.  condSE.setProperty('add_minionDamage', 7);
  118.  
  119.  
  120.  Items.Dlegging.setTexture("Item_DivineLegs.png");
  121.  Items.Dlegging.setArmorParams("boots", "armor_legs_divine.png", 36);
  122.  Items.Dlegging.setProperty("rare", 9);
  123.  Items.Dlegging.setProperty("value", 920000000);
  124.  var cond1 = Item.addSetCondition();
  125.  cond1.addConditionItem('boots', 8200);
  126.  cond1.setProperty('movementSpeed', 85);
  127.  cond1.setProperty('add_meleeCritChance', 25);
  128.  cond1.setProperty('add_rangedCritChance', 25);
  129.  cond1.setProperty('add_magicCritChance', 25);
  130.  
  131.  
  132.  Items.Dchest.setTexture("Item_DivineChestplate.png");
  133.  Items.Dchest.setArmorParams("body", "armor_body_DivineChest.png", 51);
  134.  Items.Dchest.setProperty("liferegen", 25);
  135.  Items.Dchest.setProperty("rare", 9);
  136.  Items.Dchest.setProperty("value", 920000000);
  137.  var cond2 = Item.addSetCondition();
  138.  cond2.addConditionItem('body', 8201);
  139.  cond2.setProperty('add_meleeDamage', 0.40);
  140.  cond2.setProperty('add_rangedDamage', 0.40);
  141.  cond2.setProperty('add_magicDamage', 0.40);
  142.  
  143.  Items.Dhelmet.setTexture("Item_DivineHelmet.png");
  144.  Items.Dhelmet.setArmorParams("head", "armor_head_DivineHelmet.png", 35);
  145.  Items.Dhelmet.setProperty("rare", 9);
  146.  Items.Dhelmet.setProperty("value", 920000000);
  147.  var cond3 = Item.addSetCondition();
  148.  cond3.addConditionItem('head', 8202);
  149.  cond3.setProperty('add_rangedCritChance', 35);
  150.  cond3.setProperty('add_rangedDamage', 1);
  151.  cond3.setProperty('add_ammoNotConsume', 100);
  152.  
  153.  Items.Dheadgear.setTexture("Item_DivineHeadgear.png");
  154.  Items.Dheadgear.setArmorParams("head", "armor_head_DivineHeadgear.png", 26);
  155.  Items.Dheadgear.setProperty("rare", 9);
  156.  Items.Dheadgear.setProperty("value", 920000000);
  157.  var cond4 = Item.addSetCondition();
  158.  cond4.addConditionItem('head', 8203);
  159.  cond4.setProperty('add_magicCritChance', 50);
  160.  cond4.setProperty('add_magicDamage', 0.80);
  161.  cond4.setProperty('add_reduceManaUsage', -1000);
  162.  
  163.  Items.Dmask.setTexture("Item_DivineMask.png");
  164.  Items.Dmask.setArmorParams("head", "armor_head_DivineMask.png", 79);
  165.  Items.Dmask.setProperty("rare", 9);
  166.  Items.Dmask.setProperty("value", 920000000);
  167.  var cond5 = Item.addSetCondition();
  168.  cond5.addConditionItem('head', 8204);
  169.  cond5.setProperty('add_meleeCritChance', 35);
  170.  cond5.setProperty('add_meleeDamage', 2);
  171.  
  172.  
  173.  
  174.  
  175.  //Semage robe
  176.  Items.SemageRobe.setTexture("Item_SemageRobeTwo.png");
  177.  Items.SemageRobe.setProperty("rare", 7);
  178.  Items.SemageRobe.setArmorParams("body","armor_SemageRobe.png; overlay: armor_SemageArm.png", 222);
  179.  var condSEM = Item.addSetCondition();
  180.  condSEM.addConditionItem("body", 17777)
  181.  condSEM.setProperty('add_minionDamage', 1);
  182.  condSEM.setProperty('add_minionCount', 6);
  183.  
  184.  //Semage boots
  185.  Items.SemageBoots.setTexture("Item_SemageBoots.png");
  186.  Items.SemageBoots.setArmorParams("boots","Armor_SemageBoots.png", 222);
  187.  Items.SemageBoots.setProperty("rare", 7);
  188.  var condSEMA = Item.addSetCondition();
  189.  condSEMA.addConditionItem("Boots", 19999)
  190.  condSEMA.setProperty('add_minionDamage', 1);
  191.  condSEMA.setProperty('add_minionCount', 6);
  192.  
  193. //Комплект
  194.  var condSEMAG = Item.addSetCondition();
  195.  condSEMAG.addConditionItems("head: 16666; body: 17777; boots: 19999")
  196.  condSEMAG.setProperty('add_minionDamage', 1);
  197.  condSEMAG.setProperty('add_minionCount', 6);
  198.  
  199.  
  200.  
  201.  //Cknight helmet
  202.  Items.CknightHead.setTexture("CknightHelmet.png");
  203.  Items.CknightHead.setArmorParams("head","Armor_CknightHelmet.png", 0);
  204.  Items.CknightHead.setProperty("rare", 9);
  205.  Items.CknightHead.setProperty("vanity", 1);
  206.  //Cknight body
  207.  Items.CknightBody.setTexture("CknightBody.png");
  208.  Items.CknightBody.setArmorParams("body","Armor_CknightBody.png; overlay: Armor_CknightArm.png", 0);
  209.  Items.CknightBody.setProperty("rare", 9);
  210.  Items.CknightBody.setProperty("vanity", 1);
  211.  //Cknight boots
  212.  Items.CknightBoots.setTexture("CknightBoots.png");
  213.  Items.CknightBoots.setArmorParams("boots","Armor_CknightBoots.png", 0);
  214.  Items.CknightBoots.setProperty("rare", 9);
  215.  Items.CknightBoots.setProperty("vanity", 1);
  216.  
  217.  
  218.  
  219.  //OctodudesHead
  220.  Items.OctodudesHead.setTexture("Item_OctodudesHead.png");
  221.  Items.OctodudesHead.setArmorParams("head","Octodude_s_head.png", 0);
  222.  Items.OctodudesHead.setProperty("rare", 9);
  223.  Items.OctodudesHead.setProperty("vanity", 1);
  224.  
  225.  //x
  226.  Items.FishPole.setProperty("damage", 10);
  227.  Items.FishPole.setProperty("shoot", 360);
  228.  
  229.  
  230.  
  231.     //Молот слизней.
  232.     Items.CrystalKnives.setProperty("damage", 70);
  233.     Items.CrystalKnives.setProperty("autoReuse", true);
  234.     Items.CrystalKnives.setProperty("shoot", 94);
  235.     Items.CrystalKnives.setProperty("shootSpeed", 14.85);
  236.     Items.CrystalKnives.setProperty("melee", true);
  237.     Items.CrystalKnives.setProperty("knockback", 3.5);
  238.     Items.CrystalKnives.setProperty("useTime", 8);
  239.     Items.CrystalKnives.setProperty("value", 3800000);
  240.     Items.CrystalKnives.setProperty("rare", 8);
  241.     Items.CrystalKnives.setTexture('Item_Crystal_Knives.png');
  242.  
  243.    // Causality Reaper
  244.    Items.CausalityReaper.setProperty("damage", 208);
  245.    Items.CausalityReaper.setProperty("useTime", 14);
  246.    Items.CausalityReaper.setProperty("useAnimation", 14);
  247.    Items.CausalityReaper.setProperty("shootSpeed", 7.4);
  248.    Items.CausalityReaper.setProperty("shoot", 274);
  249.    Items.CausalityReaper.setProperty("autoReuse", true);
  250.    Items.CausalityReaper.setProperty("Melee", true);
  251.    Items.CausalityReaper.setProperty("knockback", 6.25);
  252.    Items.CausalityReaper.setProperty("material", false);
  253.    Items.CausalityReaper.setProperty("rare", 9);
  254.    Items.CausalityReaper.setTexture("Item_CausalityReaper.png");
  255.    Items.CausalityReaper.setProperty("value", 60000000);
  256.  
  257.    // Dimension Reaver (DimReav)
  258.    Items.DimReav.setProperty("damage", 492);
  259.    Items.DimReav.setProperty("useAnimation", 36);
  260.    Items.DimReav.setProperty("useTime", 18);
  261.    Items.DimReav.setProperty("shoot", 156);
  262.    Items.DimReav.setProperty("shootSpeed", 17.5);
  263.    Items.DimReav.setProperty("autoReuse", true);
  264.    Items.DimReav.setProperty("Melee", true);
  265.    Items.DimReav.setProperty("knockback", 14.5);
  266.    Items.DimReav.setProperty("material", false);
  267.    Items.DimReav.setProperty("rare", 9);
  268.    Items.DimReav.setProperty("value", 60000000);
  269.    Items.DimReav.setTexture("Item_Dimension_Reaver.png");
  270.  
  271.    //Gun thingy EAT!!!!! (CDev)
  272.    Items.CDev.setProperty("damage", 83);
  273.    Items.CDev.setProperty("useTime", 4);
  274.    Items.CDev.setProperty("shoot", 307);
  275.    Items.CDev.setProperty("shootSpeed", 10);
  276.    Items.CDev.setProperty("autoReuse", true);
  277.    Items.CDev.setProperty("Ranged", true);
  278.    Items.CDev.setProperty("knockback", 1.45);
  279.    Items.CDev.setProperty("material", false);
  280.    Items.CDev.setProperty("rare", 9);
  281.    Items.CDev.setProperty("value", 60000000);
  282.    Items.CDev.setTexture("Item_CosmicDevourer.png");
  283.  
  284.    //ant shoot (AntGator)
  285.    Items.AntGator.setProperty("damage", 5);
  286.    Items.AntGator.setProperty("useTime", 6);
  287.    Items.AntGator.setProperty("useAnimation", 6);
  288.    Items.AntGator.setProperty("shoot", 42);
  289.    Items.AntGator.setProperty("shootSpeed", 8.8);
  290.    Items.AntGator.setProperty("autoReuse", true);
  291.    Items.AntGator.setProperty("Ranged", true);
  292.    Items.AntGator.setProperty("knockback", 0);
  293.    Items.AntGator.setProperty("material", false);
  294.    Items.AntGator.setProperty("rare", 2);
  295.    Items.AntGator.setProperty("value", 37500);
  296.    Items.AntGator.setTexture("Item_Antliogator.png");
  297.  
  298.    //Eradicator
  299.    Items.Eradicator.setProperty("damage", 184);
  300.    Items.Eradicator.setProperty("useTime", 2);
  301.    Items.Eradicator.setProperty("useAnimation", 4);
  302.    Items.Eradicator.setProperty("shoot", 14);
  303.    Items.Eradicator.setProperty("shootSpeed", 11.5);
  304.    Items.Eradicator.setProperty("autoReuse", true);
  305.    Items.Eradicator.setProperty("Ranged", true);
  306.    Items.Eradicator.setProperty("knockback", 4.45);
  307.    Items.Eradicator.setProperty("material", false);
  308.    Items.Eradicator.setProperty("rare", 10);
  309.    Items.Eradicator.setProperty("value", 160000000);
  310.    Items.Eradicator.setTexture("Item_Eradicator.png");
  311.  
  312.    //Divine Chunk
  313.    Items.Dchunk.setProperty("material", true);
  314.    Items.Dchunk.setProperty("rare", 9);
  315.    Items.Dchunk.setProperty("value", 40000);
  316.    Items.Dchunk.setTexture("Item_Divine_Chunks.png");
  317.  
  318.    //Divine Bar
  319.    Items.Dbar.setProperty("material", true);
  320.    Items.Dbar.setProperty("rare", 9);
  321.    Items.Dbar.setProperty("value", 120000);
  322.    Items.Dbar.setProperty("melee", true);
  323.    Items.Dbar.setTexture("Item_Divinium_Bar.png");
  324.  
  325.    Items.CausaliteBar.setProperty("material", true);
  326.    Items.CausaliteBar.setProperty("rare", 9);
  327.    Items.CausaliteBar.setProperty("value", 100000);
  328.    Items.CausaliteBar.setTexture("Item_Causilite_Bar.png");
  329.  
  330.  
  331.  
  332.  
  333.     //Проджекты
  334.     //БРОНЯ
  335.  
  336.  
  337. //Для дебага
  338. if (isDebug) Callbacks.addCallback("tick", () => {
  339. Player.sendChatMessage(Player.getHealth(),255,255,255,1000 );
  340. });
  341.  
  342.  
  343.  
  344.  
  345.     //add_ammoNotConsume
  346.  
  347.     //print("ALL ITEMS DEFINED");
  348.  
  349.  
  350. };
  351. // Установка рецептов
  352. var setupRecipes = () => {
  353.  
  354.     Recipe.CrystalKnives = Recipes.init(8192, 1);
  355.     Recipe.CrystalKnives.addIngredient(502, 75);
  356.     Recipe.CrystalKnives.addIngredient(518, 1);
  357.     Recipe.CrystalKnives.addIngredient(1508, 20);
  358.     Recipe.CrystalKnives.addIngredient(517, 1);
  359.     Recipe.CrystalKnives.setRequiredTile(134);
  360.     Recipe.CrystalKnives.add();
  361.  
  362.     Recipe.Dbar = Recipes.init(8199, 1);
  363.     Recipe.Dbar.addIngredient(8198, 8);
  364.     Recipe.Dbar.setRequiredTile(133);
  365.     Recipe.Dbar.add();
  366.  
  367.     Recipe.DLeggings = Recipes.init(8200, 1);
  368.     Recipe.DLeggings.addIngredient(8199, 32);
  369.     Recipe.DLeggings.addIngredient(8205, 90);
  370.     Recipe.DLeggings.setRequiredTile(134);
  371.     Recipe.DLeggings.add();
  372.  
  373.     Recipe.DChest = Recipes.init(8201, 1);
  374.     Recipe.DChest.addIngredient(8199, 52);
  375.     Recipe.DChest.addIngredient(8205, 146);
  376.     Recipe.DChest.setRequiredTile(134);
  377.     Recipe.DChest.add();
  378.  
  379.     Recipe.DHelmet = Recipes.init(8202, 1);
  380.     Recipe.DHelmet.addIngredient(8199, 39);
  381.     Recipe.DHelmet.addIngredient(8205, 102);
  382.     Recipe.DHelmet.setRequiredTile(134);
  383.     Recipe.DHelmet.add();
  384.  
  385.     Recipe.DHG = Recipes.init(8203, 1);
  386.     Recipe.DHG.addIngredient(8199, 39);
  387.     Recipe.DHG.addIngredient(8205, 102);
  388.     Recipe.DHG.setRequiredTile(134);
  389.     Recipe.DHG.add();
  390.  
  391.     Recipe.DMask = Recipes.init(8204, 1);
  392.     Recipe.DMask.addIngredient(8199, 39);
  393.     Recipe.DMask.addIngredient(8205, 102);
  394.     Recipe.DMask.setRequiredTile(134);
  395.     Recipe.DMask.add();
  396.  
  397.     Recipe.SDMG = Recipes.init(1553, 1);
  398.     Recipe.SDMG.addIngredient(533, 1);
  399.     Recipe.SDMG.addIngredient(1552, 22);
  400.     Recipe.SDMG.addIngredient(5017, 10);
  401.     Recipe.SDMG.setRequiredTile(134);
  402.     Recipe.SDMG.add();
  403.    
  404.     Recipe.Eradicator = Recipes.init(8197, 1);
  405.     Recipe.Eradicator.addIngredient(1553, 1);
  406.     Recipe.Eradicator.addIngredient(8195, 1);
  407.     Recipe.Eradicator.addIngredient(434, 1);
  408.     Recipe.Eradicator.addIngredient(8199, 10);
  409.     Recipe.Eradicator.addIngredient(8205, 16);
  410.     Recipe.Eradicator.setRequiredTile(134);
  411.     Recipe.Eradicator.add();
  412.  
  413.     Recipe.CausalityReaper = Recipes.init(8193, 1);
  414.     Recipe.CausalityReaper.addIngredient(8205, 44);
  415.     Recipe.CausalityReaper.addIngredient(1327, 1);
  416.     Recipe.CausalityReaper.addIngredient(1508, 30);
  417.     Recipe.CausalityReaper.setRequiredTile(134);
  418.     Recipe.CausalityReaper.add();
  419.  
  420.     Recipe.DimReav = Recipes.init(8194, 1);
  421.     Recipe.DimReav.addIngredient(8205, 52);
  422.     Recipe.DimReav.addIngredient(757, 1);
  423.     Recipe.DimReav.addIngredient(1826, 1);
  424.     Recipe.DimReav.addIngredient(1508, 20);
  425.     Recipe.DimReav.add();
  426.  
  427.     Recipe.CDev = Recipes.init(8195, 1);
  428.     Recipe.CDev.addIngredient(8205, 38);
  429.     Recipe.CDev.addIngredient(2270, 1);
  430.     Recipe.CDev.addIngredient(1255, 1);
  431.     Recipe.CDev.addIngredient(1508, 45);
  432.     Recipe.CDev.setRequiredTile(134);
  433.     Recipe.CDev.add();
  434.  
  435. }
  436. //Главный каллбек
  437. Callbacks.addCallback("initialize", () => {
  438.     try {
  439.         setupItems();
  440.         setupRecipes();
  441.     } catch(e) {
  442.         print("error in initialize: " + e)
  443.     }
  444. });
  445.  
  446. //Для дебага
  447. if (isDebug) Callbacks.addCallback("tick", () => {
  448.     Player.sendChatMessage(Player.getHealth(),255,255,255,1000 );
  449. });
  450.  
  451. //Рандом кол-ва для лута
  452. function getRandomArbitrary(min, max) {
  453. return Math.random() * (max - min) + min;
  454. }
  455.  
  456.  
  457. //Тик - действие 60 раз в сек
  458. Callbacks.addCallback("tick", () => {
  459.  
  460. //if(Conditions.cond5.isApplied()) {
  461. //Player.addBuff(74, 1)
  462. //}
  463.  
  464.  
  465. //Рандом чар для аксов  
  466. var EnchantAcc = [ 0, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80]
  467. randACC = EnchantAcc[Math.floor(Math.random() * EnchantAcc.length)];
  468.  
  469. //Рандом чар для инструментов
  470. var EnchantTool = [ 0, 36, 37, 38, 39, 40, 41, 53, 54, 55, 56, 57, 59, 60, 61]
  471. randTool = EnchantTool[Math.floor(Math.random() * EnchantTool.length)];
  472.  
  473. //Рандом чар для cтрелкового оружия  
  474. var EnchantGun = [ 0, 36, 37, 38, 39, 40, 41, 53, 54, 55, 56, 57, 59, 60, 61,  0, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 58, 82]
  475. randGUN = EnchantGun[Math.floor(Math.random() * EnchantGun.length)];
  476.  
  477. //Рандом чар для оружия ближнего боя
  478. var EnchantMelee = [ 0, 36, 37, 38, 39, 40, 41, 53, 54, 55, 56, 57, 59, 60, 61,  0, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 81]
  479. randMelee = EnchantMelee[Math.floor(Math.random() * EnchantMelee.length)];
  480.  
  481. //Рандом чар для магического оружия  
  482. var EnchantMag = [ 0, 36, 37, 38, 39, 40, 41, 53, 54, 55, 56, 57, 59, 60, 61,  0, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 52, 83]
  483. randMag = EnchantMag[Math.floor(Math.random() * EnchantMag.length)];
  484.  
  485.  
  486. //lgbt
  487. Items.LGBT.setProperty("rare", getRandomArbitrary(2,11));
  488. Items.LGBT.setProperty("colorR", getRandomArbitrary(2,255));
  489. Items.LGBT.setProperty("colorG", getRandomArbitrary(2,255));
  490. Items.LGBT.setProperty("colorB", getRandomArbitrary(2,255));
  491.  
  492. Items.RM.setProperty("rare", getRandomArbitrary(2,11));
  493. Items.RM.setProperty("colorR", getRandomArbitrary(1,255));
  494. Items.RM.setProperty("colorG", getRandomArbitrary(1,255));
  495. Items.RM.setProperty("colorB", getRandomArbitrary(1,255));
  496.  
  497. });
  498.  
  499. //Для Лута с мобов.
  500. Callbacks.addCallback("NPCLoot", (id, x, y, w, h) => {
  501.     switch (id) {
  502. case 69: //Король слизней - молот
  503.      if (Math.floor(Math.random() * 100) <= 8) World.spawnItem(x, y, w, h, 8196, 1, false, randGUN, false);
  504. break;
  505.  
  506. case 290: //Paladin Drops
  507.      if (Math.floor(Math.random() * 100) <= 80) World.spawnItem(x, y, w, h, 8198, getRandomArbitrary(6,28), false, 0, false);
  508. break;
  509.  
  510. case 127: //Causalite Drop1
  511.      if (Math.floor(Math.random() * 100) <= 15) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(1,4), false, 0, false);
  512. break;
  513.  
  514. case 245: //Caus 2
  515.      if (Math.floor(Math.random() * 100) <= 45) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(2,6), false, 0, false);
  516. break;
  517.  
  518. case 253: //Caus 3
  519.      if (Math.floor(Math.random() * 100) <= 25) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(1,2), false, 0, false);
  520. break;
  521.  
  522. case 262: //c4
  523.      if (Math.floor(Math.random() * 100) <= 100) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(6,15), false, 0, false);
  524. break;
  525.  
  526. case 264: //c5
  527.      if (Math.floor(Math.random() * 100) <= 35) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(1,3), false, 0, false);
  528. break;
  529.  
  530. case 370: //c6
  531.      if (Math.floor(Math.random() * 100) <= 100) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(18,25), false, 0, false);
  532. break;
  533.  
  534. case 85: //c7
  535.      if (Math.floor(Math.random() * 100) <= 75) World.spawnItem(x, y, w, h, 8205, getRandomArbitrary(1,10), false, 0, false);
  536. break;
  537.  
  538.  
  539.     }
  540.  
  541. });
  542. //Дроп с блока
  543. //SECRET
  544.  Items.RM = registerItem(11997);
  545.  Items.LGBT = registerItem(11998);
  546.  
  547.  //x
  548.     Items.LGBT.setProperty("damage", 69);
  549.     Items.LGBT.setProperty("useTime", 10);
  550.     Items.LGBT.setProperty("useAnimation", 10);
  551.     Items.LGBT.setProperty("melee", true);
  552.     Items.LGBT.setProperty("shoot", 250);
  553.     Items.LGBT.setProperty("shoot", 251);
  554.     Items.LGBT.setProperty("autoReuse", true);
  555.     Items.LGBT.setProperty("knockback", 5);
  556.     Items.LGBT.setProperty("crit", 69);
  557.     Items.LGBT.setTexture("Item_RainbowSword.png");
  558.     Items.LGBT.setProperty("shootSpeed", 9);
  559.     Items.LGBT.setProperty("material", false);
  560.     Items.LGBT.setProperty("value", 30000000);
  561.  
  562.     Items.RM.setTexture("Item_RM.png");
  563.  
  564.  
  565.     predefineItem(11998, 'Rainbow Sword', 'Радужный Меч','Is that sword?','А это точно меч?','Drop me!','Выкинь меня',true);
  566.     predefineItem(11997, 'The Subject Of Ricardo Milos', 'Предмет Имени Рикардо Милоса','Sexy scorpion','Сексуальный скорпион','Drop me','Выкинь меня',true);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top