zer0bandit

numbers

Apr 17th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.00 KB | None | 0 0
  1. (Web): Rizial says, "What about a variable system?"
  2. (Web): You say, "What have you got in mind?"
  3. (Web): Rizial says, "I mean like. For example. You set your 'target to whatever."
  4. (Web): Rizial says, "And when you attack you always hit that target."
  5. (Web): Rizial says, "Well same principle for pricing everything you want on each shelf."
  6. (Web): Rizial says, "That way it eliminates some of the required captures and temporary
  7. variables."
  8. (Web): Rizial says, "The less the system has to remember the less likely it is to get all
  9. jumbled."
  10. (Web): Rizial says, "So lets say you do 'S WHATEVER."
  11. (Web): You say, "Could be workable. I've already got an item number highlight widget and
  12. I have a few utility things on right click. If you could make a snippet that collects a
  13. list based on right clicks, that'd be pretty glorious."
  14. (Web): You say, "Could rightclick>addtolist for all items I want, then execute a custom
  15. command for each entry in the list."
  16. (Web): Rizial says, "Okay. When you say utility things on right click. you mean like it
  17. shows up in your right click along with copy and copy HTML?"
  18. (Web): You say, "When I right click an item number I get a custom dropdown."
  19. (Web): Rizial says, "Ahhh. Well if I had that code."
  20. (Web): Rizial says, "I could add to it."
  21. (Web): You say, "I can add to it myself simply enough. It's just the part that attaches
  22. to it that I can't write."
  23. (Web): Rizial says, "Ah i gotcha."
  24. (Web): Rizial says, "Hmmm."
  25. (Web): You say, "Currently I've got a bunch of things like 'probe item - get item - fill
  26. item' etc."
  27. (Web): Rizial says, "Well how about a button?"
  28. (Web): You say, "What d'you mean?"
  29. (Web): Rizial says, "Like a button fixed somewhere on the screen."
  30. (Web): You say, "To do what?"
  31. (Web): Rizial says, "So that you can click it to do basically the same thing."
  32. (Web): Rizial says, "I'm not a hundred percent sure on how to make custom right clicks."
  33. (Web): You say, "Like I said, I can do that. A button wouldn't work because the right
  34. click comes up when I right click on a specific item number."
  35. (Web): Rizial says, "Gotcha."
  36. (Web): Rizial says, "Alright lemme see what I can do."
  37. (Web): You say, "What I would need from you is the script that handles the variable list,
  38. and the snippet that sends an input to that script."
  39. (Web): You say, "Then I'd build the snippet into my right click menu."
  40. (Web): Rizial says, "Okay."
  41. (Web): Rizial says, "I'd need the variable list you use then."
  42. (Web): Rizial says, "Unless you want me to make one up."
  43. (Web): You say, "I don't have one, you'd need to write one."
  44. (Web): Rizial says, "Alrighty."
  45. (Web): You say, "I'd like it to be able to store a list of numbers. It'd need an alias to
  46. clear the list, and an alias to execute a command I give for each item in the list."
  47. (Web): You say, "'numlist' for example, which would become 'price numlist 200 shelf 2'
  48. and which would execute that command for every number in the list."
  49. (Web): Rizial says, "Ohhhhhhhh."
  50. (Web): Rizial says, "Ok."
  51. (Web): Rizial says, "Alright i'll get on that and get back with you."
  52. (Web): Zion says, "I am now calling targets."
  53. (Web): Zion says, "Target: Xorani."
  54. (Web): Zion says, "Roar health and stuff gab."
  55. (Web): Rizial says, "You templar Zion?"
  56. (Web): Gabriele says, "Give me."
  57. (Web): Zion says, "Lag sec."
  58. (Web): Rizial says, "Ouch."
  59. (Web): Rizial says, "Hey zion."
  60. (Web): Rizial says, "What guild you in?"
  61. (Web): Zion says, "Non."
  62. (Web): Rizial says, "Oh nice."
  63. (Web): Rizial says, "Alright i may be a bit distracted."
  64. (Web): Rizial says, "Sifting through code."
  65. (Web): Rizial says, "Okay what list does your right click work on Elea?"
  66. (Web): Rizial says, "Any list?"
  67. (Web): Rizial says, "As in II INV WARES and so on."
  68. (Web): Rizial says, "Nevermind I got it figured out."
  69. (Web): Zion says, "No wonder I have no resistances rings."
  70. (Web): Rizial says, "Ooh."
  71. (Web): Rizial says, "That was close."
  72. (Web): You say, "Sorry, afk'd. It doesn't have any list functions attached."
  73. (Web): Rizial says, "Okay just making sure."
  74. (Web): You say, "You don't need to worry about the right click list."
  75. (Web): You say, "Connecting it to the variable collector is the last step."
  76. (Web): Rizial says, "I'm gonna set it for aliases."
  77. (Web): Zion says, "Can't find xiu."
  78. (Web): Rizial says, "Meaning an alias sets the numbers it remembers until you can
  79. integrate it in your clicker."
  80. (Web): You say, "That."
  81. (Web): You say, "*will be fine."
  82. (Web): Zion says, "Eleanor hiya."
  83. (Web): You say, "Ahoy."
  84. (Web): Zion says, "Haven't seen you in awhile."
  85. (Web): Gabriele says, "Cant keep roars up for long."
  86. (Web): You say, "Been lying low thanks to work I guess, haha."
  87. (Web): Zion says, "Don't worry then."
  88. (Web): Rizial says, "Gaaab."
  89. (Web): Rizial says, "Make him alive."
  90. (Web): Rizial says, "DIAGNOSE."
  91. (Web): Rizial says, "See what's afflicting you."
  92. (Web): Gabriele says, "Endurance: 282/23655."
  93. (Web): Rizial says, "Ohhhh."
  94. (Web): Rizial says, "Yeah.."
  95. (Web): Rizial says, "Revive him?"
  96. (Web): Rizial says, "Or can you?"
  97. (Web): Gabriele says, "Cant."
  98. (Web): Rizial says, "Dang."
  99. (Web): Zion says, "Dam."
  100. (Web): Rizial says, "Sorry zion."
  101. (Web): Zion says, "Its cool got spiritanchor."
  102. (Web): Rizial says, "Sweet."
  103. (Web): Rizial says, "I should get that."
  104. (Web): Rizial says, "My alt has it."
  105. (Web): Gabriele says, "My endurance is shoot for now."
  106. (Web): Zion says, "Eat that."
  107. (Web): Zion says, "I always carry a few."
  108. (Web): Zion says, "Target: Xorani."
  109. (Web): Zion says, "Dammit gabriele."
  110. (Web): Rizial says, "Heh...not reviving?"
  111. (Web): Zion says, "Gabriele is at 'Ranger's trail entering the Western Ithmia in the
  112. Ranger's Trail.' in (13130,...) standing alone."
  113. (Web): Zion says, "Gabriele is at 'Ranger's trail entering the Western Ithmia in the
  114. Ranger's Trail.' in (13130,...) standing alone."
  115. (Web): Rizial says, "Odd."
  116. (Web): Zion says, "Target: Spellshaper."
  117. (Web): Zion says, "I am no longer calling targets."
  118. (Web): Zion says, "Should get those resistances ring."
  119. (Web): Rizial says, "I have em."
  120. (Web): Gabriele says, "I forgot to touch starburst."
  121. (Web): Rizial says, "I need to go to the shop to start testin things."
  122. (Web): Rizial says, "Ok elea."
  123. (Web): Rizial says, "Now you want that for..just pricing or adding to shelves and the
  124. cache as well?"
  125. (Web): You say, "I use number lists for a bunch of things, so making it insertable as an
  126. alias into any command would be ideal."
  127. (Web): You say, "Like that example I gave with 'numlist' as the keyword."
  128. (Web): Rizial says, "Okay sure thing."
  129. (Web): Zion says, "Rizial where you go."
  130. (Web): Zion says, "Rizial is at 'Stockroom in the Isle of' in Delos. standing alone."
  131. (Web): Zion says, "Heh."
  132. (Web): Zion says, "Well i will chill for a min."
  133. (Web): Zion says, "Ezalor is at 'Xorali patrol path overlooking military grounds in the
  134. village of Xoral.' in 11086 with 6 people."
  135. (Web): Zion says, "Can't find isto."
  136. (Web): Zion says, "Can't find xiu."
  137. (Web): Zion says, "Ronnie is at 'A small den in the Aalen forest.' in (15116,...) with 1
  138. people."
  139. (Web): Rizial says, "You're a painter?!"
  140. (Web): Rizial says, "Awesome."
  141. (Web): Rizial says, "Okay so.."
  142. (Web): You say, "Yup, digital and traditional."
  143. (Web): Rizial says, "Right now i'm getting over the hurdle of making a command to price
  144. each number in the numlist."
  145. (Web): Rizial says, "That's awesome."
  146. (Web): Rizial says, "You should totally pain riz."
  147. (Web): Rizial says, "Paint."
  148. (Web): Rizial says, "Lol."
  149. (Web): Rizial says, "I remember someone was doing chibis."
  150. (Web): Rizial says, "Don't remember who."
  151. (Web): You say, "There's a few people who do 'em, I'm one of them."
  152. (Web): Rizial says, "Oh that's cool."
  153. (Web): You say, "It's been so long since I coded anything that I can't think of the
  154. pseudocode offhand, but what it needs to be is a thing that takes the command surrounding
  155. the alias (you'll need to capture it with the Matches bit) and executes that once for
  156. each entry in the list."
  157. (Web): Rizial says, "Well i'm looking to do it with ipairs instead of the matches[2]
  158. function."
  159. (Web): You say, "Thinking you'll need to make use of both."
  160. (Web): Rizial says, "Well yeah the matches[2] function I'm going to use for the shelf and
  161. price."
  162. (Web): You say, "Matches to capture what's surrounding the alias, ipairs to iterate
  163. through the list."
  164. (Web): Rizial says, "Just trying to figure out how to mesh em all together as a command
  165. haha."
  166. (Web): You say, "Should be able to make a general one like that which doesn't
  167. discriminate for what's surrounding the alias."
  168. (Web): Rizial says, "Okay!"
  169. (Web): You say, "Hm?"
  170. (Web): Rizial says, "Sorry I think I've figured it out."
  171. (Web): Rizial says, "Ok."
  172. (Web): Rizial says, "It works."
  173. (Web): Rizial says, "So what i have is."
  174. (Web): Rizial says, "You addnum (itemnumberhere)"
  175. (Web): Rizial says, "Then."
  176. (Web): Rizial says, "Pr (price for the items listed here)"
  177. (Web): Rizial says, "Then."
  178. (Web): Rizial says, "Sh (shelf here)"
  179. (Web): Rizial says, "And then GOPRICE."
  180. (Web): Rizial says, "And it prices all the number pairs in the table as the price and on
  181. the shelf specified by the other two alias/variables."
  182. (Web): You say, "It's not possible to just have it all in the one alias? I'm okay with
  183. typing out 'price numberlist 200 shelf 4' if GOPRICE will then iterate everything. That
  184. will make it more flexible for other commands containing numberlist."
  185. (Web): You say, "What I mean is, it would be more flexible to have " X NUMBERLIST Y"
  186. captured, and then iterate that format for each entry."
  187. (Web): Rizial says, "I should be able to do that."
  188. (Web): Rizial says, "I'll just have to toss in a matches[3]."
  189. (Web): You say, "Right, right. Versatility is good for a thing like this."
  190. (Web): Rizial says, "Okay let me see if this works."
  191. (Web): Rizial says, "Fucking sweet."
  192. (Web): You say, "Pass me a playtest of it in a pastebin?"
  193. (Web): Rizial says, "Okay now if you do for example ps 500 3 it will execute price
  194. numlist 500 3."
  195. (Web): Rizial says, "Ok."
  196. (Web): Rizial says, "Http://pastebin.com/9KmHatEL."
  197. (Web): Rizial says, "Ignore the 1 before the addnum. Forgot to turn that echo off."
  198. (Web): You say, "Okay. I'd like an alias that captures "X numberlist Y" so I can do, say,
  199. 'customize numberlist as 12345'"
  200. (Web): You say, "And have it iterate through the list as with the pricing."
  201. (Web): Rizial says, "Meaning so you can price different items at different prices all at
  202. the same time?"
  203. (Web): You say, "No, meaning I would like the number list to be useable with more
  204. commands than just 'price numberlist 200 shelf 4'."
  205. (Web): Rizial says, "Ohh."
  206. (Web): Rizial says, "So you want to make it to where it can be used for other things like
  207. buy 500 moss, donuts, cookies, bread, whathaveyou?"
  208. (Web): You say, "Yeah, that's one use for it. If I had 123, 234 and 345 in the list and I
  209. typed 'buy numberlist' I'd like it to send 'buy 123, buy 234, buy 345'"
  210. (Web): You say, "If I typed 'customise numberlist as 999' I'd like it to send 'customise
  211. 123 as 999, customise 234 as 999, customise 345 as 999'"
  212. (Web): Rizial says, "Well for that matter just do."
  213. (Web): Rizial says, "Ps 234."
  214. (Web): Rizial says, "And i can make you a separate alias for a separate use of those
  215. variables."
  216. (Web): Rizial says, "Let me see what I can do."
  217. (Web): Rizial says, "Wait...does it take balance to customize things?"
  218. (Web): Rizial says, "Or is that just an example?"
  219. (Web): You say, "It just needs to catch what's before the keyword in matches[x] and
  220. what's after it in matches[y]. Then you need the for-pairs function to send "matches[x]
  221. number[i] matches[y]'."
  222. (Web): You say, "It does. I can add things to my balance list easily enough though."
  223. (Web): You say, "As long as you can do what I said in pseudocode there, you don't need to
  224. worry about balance."
  225. (Web): Rizial says, "Okay so you literally want it to do customize blah as blah customize
  226. blah as blah?"
  227. (Web): You say, "Just need it to send whatever's before the number and whatever's after
  228. the number for each number in the list."
  229. (Web): Rizial says, "Oh okay easy peasy."
  230. (Web): Rizial says, "Ok."
  231. (Web): Rizial says, "Got a new one for you."
  232. (Web): You say, "Right?"
  233. (Web): Rizial says, "Almost."
  234. (Web): Rizial says, "One sec."
  235. (Web): Rizial says, "Http://pastebin.com/ju7GDDHG."
  236. (Web): Rizial says, "Something like that?"
  237. (Web): Rizial says, "I haven't quite figured out how to get it to ignore the AS if you
  238. just want to do derp blah blah instead of derp blah as blah."
  239. (Web): You say, "What does 'derp' and 'wtf' represent? And I don't want it to ignore
  240. parts of my command, I just want it to repeat them."
  241. (Web): Rizial says, "Derp is the alias command."
  242. (Web): Rizial says, "Wtf is the variable."
  243. (Web): Rizial says, "It's the numlist."
  244. (Web): Rizial says, "I did addnum wtf."
  245. (Web): You say, "You should be able to make an alias that doesn't need to be prefixed
  246. with anything. Regex."
  247. (Web): Rizial says, "Alright well i'm gonna have to hit the sack tonight. I'll keep
  248. working on it tomorrow."
  249. (Web): You say, "Righteo, sleep well."
  250. (Web): Rizial says, "Well yeah this is just a rough draft."
  251. (Web): Rizial says, "Later."
Advertisement
Add Comment
Please, Sign In to add comment