Advertisement
Xenobreeder

rcfile

Feb 6th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. auto_sacrifice=true
  2.  
  3. auto_eat_chunks=true
  4. ability_menu = false
  5. display_char = wall : x2588
  6. # Allows easily dropping multiple items
  7. drop_mode += multi
  8. # Always show the full list of items when you pick up a stack
  9. pickup_mode += multi
  10. # Allows followers to pick up ANYTHING (take care not to lose artefacts)
  11. default_friendly_pickup += all
  12.  
  13. # Set Alias for Autopickup Exceptions
  14. ae := autopickup_exceptions
  15. ae += useless_item, dangerous_item, evil_item
  16.  
  17. # Don't pick up potion(s) of [coagulated] blood if you are not a vampire
  18. : if you.race() ~= "Vampire" then
  19. ae += potions? of.*blood
  20. : end
  21.  
  22. # Autopickup artefacts
  23. ae += <artefact
  24.  
  25. # Armour/Weapon autopickup by rwbarton, enhanced by HDA with fixes from Bloaxor
  26. {
  27. add_autopickup_func(function(it, name)
  28. if it.is_useless then
  29. return false
  30. end
  31.  
  32. if name:find("curare") then return true end
  33. if name:find("dispersal") and (name:find("dart") or name:find("tomahawk"))
  34. then return true end
  35. if name:find("throwing net") then return true end
  36.  
  37. local class = it.class(true)
  38. local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves",
  39. boots="Boots", body="Armour", shield="Shield"}
  40.  
  41. if (class == "armour") then
  42. sub_type = it.subtype()
  43. equipped_item = items.equipped_at(armour_slots[sub_type])
  44.  
  45. if (sub_type == "cloak") or (sub_type == "helmet") or (sub_type ==
  46. "gloves") or (sub_type == "boots") then
  47. if not equipped_item then
  48. return true
  49. else
  50. return it.artefact or it.branded or it.ego
  51. end
  52. end
  53.  
  54. if (sub_type == "body") then
  55. if equipped_item then
  56. local armourname = equipped_item.name()
  57. if equipped_item.artefact or equipped_item.branded or
  58. equipped_item.ego or (equipped_item.plus > 2) or armourname:find("dragon") or
  59. armourname:find("troll") then
  60. return it.artefact
  61. else
  62. return it.artefact or it.branded or it.ego
  63. end
  64. end
  65. return true
  66. end
  67.  
  68. if (sub_type == "shield") then
  69. if equipped_item then
  70. return it.artefact or it.branded or it.ego
  71. end
  72. end
  73. end
  74.  
  75. if (class == "weapon") then
  76. if (you.xl() < 12) or (you.god():find("Nemelex")
  77. or (you.god():find("Yred"))
  78. or (you.god():find("Beogh"))) then
  79. if it.branded and not (it.name() == "club") then
  80. return false
  81. end
  82. end
  83. local weapon = items.equipped_at("Weapon")
  84. if weapon then
  85. if (weapon.branded or weapon.artefact) then return false
  86. else
  87. local weapon_name = weapon.name()
  88. local sb = you.skill("Short Blades")
  89. local lb = you.skill("Long Blades")
  90. local axe = you.skill("Axes")
  91. local mf = you.skill("Maces & Flails")
  92. local pole = you.skill("Polearms")
  93. local staff = you.skill("Staves")
  94. if sb > 6 then
  95. if name:find("quick blade") then return true end
  96. end
  97. if lb > 8 then
  98. if name:find("demon blade") then return true end
  99. if name:find("bastard sword") then return true end
  100. if name:find("double sword") then return true end
  101. end
  102. if lb > 14 then
  103. if name:find("claymore") then return true end
  104. if name:find("triple sword") then return true end
  105. end
  106. if axe > 8 and mf <= 8 then
  107. if name:find("battleaxe") then return true end
  108. if name:find("broad axe") then return true end
  109. if name:find("war axe") then return true end
  110. if name:find("executioner") then return true end
  111. end
  112. if axe > 18 then
  113. if name:find("executioner") then return true end
  114. end
  115. if mf > 8 and staff <= 8 and axe <= 8 then
  116. if name:find("eveningstar") then return true end
  117. if name:find("demon whip") then return true end
  118. if name:find("sacred scourge") then return true end
  119. if name:find("dire flail") then return true end
  120. end
  121. if mf > 14 and staff <= 14 and axe <= 14 then
  122. if name:find("great mace") then return true end
  123. end
  124. if pole > 8 and staff <= 8 then
  125. if name:find("trident") then return true end
  126. if name:find("demon trident") then return true end
  127. if name:find("trishula") then return true end
  128. end
  129. if pole > 14 and staff <= 14 then
  130. if name:find("glaive") then return true end
  131. if name:find("bardiche") then return true end
  132. end
  133. if staff > 8 then
  134. if name:find("lajatang") then return true end
  135. end
  136. end
  137. elseif (you.skill("Unarmed Combat") < 3) then
  138. return true
  139. end
  140. end
  141. end)
  142. }
  143. include += HDamage.rc
  144. include += HDAForceMore.rc
  145. note_chat_messages=true
  146. show_more = false
  147. autofight_stop = 70
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement