Author Topic: lack of skill needed to harvest  (Read 5081 times)

0 Members and 1 Guest are viewing this topic.

Offline redneckTopic starter

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • redneck has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
lack of skill needed to harvest
« on: August 02, 2017, 02:53:54 AM »
0
trying to figure out how to make a script ignore a tree or vein if it lacks the skill to mine or chop. i have very little scripting knowledge. but i am trying.

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #1 on: August 02, 2017, 04:39:08 AM »
0
NO need because UO have it build in. As your skill improves, you become capable of mining and smelting more obscure forms of ore:

    0+ Iron Ore
    65+ Dull Copper Ore
    70+ Shadow Iron Ore
    75+ Copper Ore
    80+ Bronze Ore
    85+ Golden Ore
    90+ Agapite Ore
    95+ Verite Ore
    99+ Valorite Ore

info
http://uo.stratics.com/content/skills/mining.php
http://www.uoguide.com/Mining

Offline redneckTopic starter

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • redneck has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #2 on: August 02, 2017, 06:03:02 AM »
0
server i use has customs that require over 100 and so the script just sets there and keeps mining even if it cant pull anything

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #3 on: August 02, 2017, 08:26:04 AM »
0

within the scrip search for a journal entry similar to this.
Code: [Select]
if Too_far_away in #journal || You_can't_do_that in #journal || Target_Cannot_Be_Seen  in #Journalthose are the key word that make you jump the the next location.

those are the word that make you stay and lumber
Code: [Select]
if harvest in #journal
 Now what you need to do if to find correct wording and add so you move to the next location.


Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: lack of skill needed to harvest
« Reply #4 on: August 02, 2017, 08:53:20 AM »
0
What's the gameplay era of your server?  Is it pre AOS?
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline redneckTopic starter

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • redneck has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #5 on: August 02, 2017, 09:24:08 PM »
0
Mondain's Legacy, i tried to break it down by trees, but no luck. and i dont quiet understand the journal method

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #6 on: August 03, 2017, 03:15:30 AM »
0
With geniric question , come generic answer.    If you are using a specific script. Post in the forum of the script,  so other can learn for your issue.    I know of 17 lumberjack scripts.  Sorry

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: lack of skill needed to harvest
« Reply #7 on: August 03, 2017, 05:03:13 AM »
0
Mondain's Legacy, i tried to break it down by trees, but no luck. and i dont quiet understand the journal method

The journal method that Ghost is decribing is probably the only way you can determine if you can mine something or not.  If you get a negative comment about mining in an area, you need to be able to look for that by the text that appears in your journal.  So what Ghost describes is great information, but kinda requires a bit of scripting knowledge to figure out.  So it's helpful to see what script you are trying to get to work.

As for my question, pre-AOS shards don't even have the journal function.  Since you are ML-ish, at least that's available to you.  Depending on the script you use, it might be easier or harder.  But most all post AOS scripts utilize the journal to determine mining success or failure.  If you determine that a spot is not minable, you can just note the location and goto the next spot.  If you're script is good enough, it'll remember that information for the next round so you don't have to try in that spot again.
« Last Edit: August 03, 2017, 05:05:13 AM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline redneckTopic starter

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • redneck has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #8 on: August 03, 2017, 06:37:52 PM »
0
Code: easyuo
  1. set %isElf #false
  2. set %high_only #false
  3.  
  4.  
  5.  
  6. set %DigWait 3s
  7.  
  8.  
  9.  
  10. gosub wield_pickaxe
  11. gosub mountDismount #CHARID
  12. gosub calculate_maxWeight
  13. gosub mine
  14.  
  15. stop
  16.  
  17.  
  18.  
  19. sub wield_pickaxe
  20. finditem QPF C
  21. set %pickaxe #findid
  22. return
  23.  
  24.  
  25.  
  26. sub mine
  27. gosub wield_pickaxe
  28. ignoreitem reset veinIgnored
  29. while #true
  30. {
  31. gosub vein_search %low_only
  32. msg %vein_found
  33. if %vein_id = RGH
  34. {
  35. ignoreitem %vein_id veinIgnored_xgh
  36. continue
  37. }
  38. if %vein_found = 0
  39. {
  40. event PathFind %vein_x %vein_y
  41. for %w 1 15
  42. {
  43. wait 1
  44. set %jstart #jindex + 1
  45. set %jend #jindex
  46. for %j %jstart %jend
  47. {
  48. scanjournal %j
  49. set %cont #false
  50. if Can't_get_there in #journal
  51. {
  52. ignoreitem %vein_id veinIgnored
  53. set %cont #true
  54. goto next_vein
  55. }
  56. }
  57. wait 1s
  58.  
  59.  
  60.  
  61. finditem %vein_id G_2
  62. if #findcnt > 0
  63. break
  64. }
  65. next_vein:
  66. if %cont = #true
  67. continue
  68. }
  69. else
  70. {
  71. wait 1s
  72. break
  73. }
  74. gosub mine_spot
  75. if #weight > %maxWeight - 50
  76. {
  77. break
  78. }
  79. }
  80. }
  81. return
  82.  
  83.  
  84.  
  85. sub mine_spot
  86. gosub wield_pickaxe
  87. sub wield_pickaxe
  88. finditem LSF_FSF C_
  89. set %pickaxe #findID
  90. set #lobjectid %pickaxe
  91. event macro 13 21     ;use hiding !
  92. wait 1                    ;;;;
  93. for %dign 1 5
  94. {
  95. finditem %vein_id G_2
  96. if #findcnt < 1
  97. {
  98. return
  99. }
  100. event macro 17 0
  101. target
  102. set #ltargetid %vein_id
  103. set #ltargetkind 1
  104. event macro 25 0
  105. wait 2
  106. event macro 22 0
  107. wait 2
  108. set %jstart #jindex + 1
  109. set %jend #jindex
  110. for %j %jstart %jend
  111. {
  112. scanjournal %j
  113. if Target_cannot in #journal
  114. {
  115. ignoreitem %vein_id   ;;;;;;;;;
  116. return
  117. }
  118. }
  119. wait %DigWait
  120. }
  121.  
  122. sub vein_search
  123. set %vein_found -1
  124. finditem EUE_OUE_UUE_OUE_RTE_VUE_FUE_MUE_CUE G_12
  125. if #findcnt = 0
  126. {
  127. return
  128. }
  129. for #findindex 1 #findcnt
  130. {
  131. if #findcol = 1153 ;frostwood
  132. {
  133. set %vein_x #findx
  134. set %vein_y #findy
  135. set %vein_id #findid
  136. set %vein_found 0
  137. return
  138. }
  139. }
  140. for #findindex 1 #findcnt
  141. {
  142. if #findcol = 37 ;bloowdwood
  143. {
  144. set %vein_x #findx
  145. set %vein_y #findy
  146. set %vein_id #findid
  147. set %vein_found 0
  148. return
  149. }
  150. }
  151. for #findindex 1 #findcnt
  152. {
  153. if #findcol = 114 ;hearthwood
  154. {
  155. set %vein_x #findx
  156. set %vein_y #findy
  157. set %vein_id #findid
  158. set %vein_found 0
  159. return
  160. }
  161. }
  162. for #findindex 1 #findcnt
  163. {
  164. if #findcol = 1152 ;bamboo
  165. {
  166. set %vein_x #findx
  167. set %vein_y #findy
  168. set %vein_id #findid
  169. set %vein_found 0
  170. return
  171. }
  172. }
  173. for #findindex 1 #findcnt
  174. {
  175. if #findcol = 43 ;ebony
  176. {
  177. set %vein_x #findx
  178. set %vein_y #findy
  179. set %vein_id #findid
  180. set %vein_found 0
  181. return
  182. }
  183. }
  184. for #findindex 1 #findcnt
  185. {
  186. if #findcol = 1271 ;zirconet
  187. {
  188. set %vein_x #findx
  189. set %vein_y #findy
  190. set %vein_id #findid
  191. set %vein_found 0
  192. return
  193. }
  194. }
  195. for #findindex 1 #findcnt
  196. {
  197. if #findcol = 355 ;mahagony
  198. {
  199. set %vein_x #findx
  200. set %vein_y #findy
  201. set %vein_id #findid
  202. set %vein_found 0
  203. return
  204. }
  205. }
  206. for #findindex 1 #findcnt
  207. {
  208. if #findcol = 488 ;oak
  209. {
  210. set %vein_x #findx
  211. set %vein_y #findy
  212. set %vein_id #findid
  213. set %vein_found 0
  214. return
  215. }
  216. }
  217. for #findindex 1 #findcnt
  218. {
  219. if #findcol = 1281 ;yew
  220. {
  221. set %vein_x #findx
  222. set %vein_y #findy
  223. set %vein_id #findid
  224. set %vein_found 0
  225. return
  226. }
  227. }
  228. for #findindex 1 #findcnt
  229. {
  230. if #findcol = 961 ;ash
  231. {
  232. set %vein_x #findx
  233. set %vein_y #findy
  234. set %vein_id #findid
  235. set %vein_found 0
  236. return
  237. }
  238. }
  239. for #findindex 1 #findcnt
  240. {
  241. if #findcol = 1262  ; pine
  242. {
  243. set %vein_x #findx
  244. set %vein_y #findy
  245. set %vein_id #findid
  246. set %vein_found 0
  247. return
  248. }
  249. }
  250. set #findindex 1
  251. if #findcnt > 0
  252. {
  253. set %vein_x #findx
  254. set %vein_y #findy
  255. set %vein_id #findid
  256. set %vein_found 0
  257. return
  258. }
  259. return
  260.  
  261. sub calculate_maxWeight
  262. set %MaxWeight #maxweight
  263. if %isElf = #false
  264. {
  265. set %maxWeight %maxWeight + 60
  266. }
  267. return
  268.  
  269. sub mountDismount
  270. set #LOBJECTID %1
  271. wait 1
  272. event macro 17 0
  273. return
  274.  
Edited by TM: added code tags


Post Merge: August 03, 2017, 06:39:41 PM
with this script its able to mine and lj. just by changing the items, which is why i like it. but as you have read above, it lacks one simple detail that keeps me from being able to lj afk for an extended period
« Last Edit: August 03, 2017, 07:52:00 PM by TrailMyx »

Offline Biza

  • Jr. Member
  • **
  • Posts: 71
  • Activity:
    0%
  • Reputation Power: 1
  • Biza has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #9 on: August 03, 2017, 09:39:05 PM »
0
If you can't use the journal to check if a spot is valid or not you could keep an eye on success by checking bag weight after every swing. weight changes - good spot, no weight added - bad spot.
Quote from: TrailMyx
These are the things we look for in new users and perspective Elite members:

Quoting Elites/GMods/Admins in your siggys.

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: lack of skill needed to harvest
« Reply #10 on: August 04, 2017, 02:11:42 PM »
0
Without trying the script you can try at that line to add the msg you get when you can't mine

This is what you have
Code: [Select]
if Can't_get_there in #journal
you add a or statement like this. 
Code: [Select]
if Can't_get_there in #journal || You_can't_do_that in #journal 

Tags: