cnl_cnl_cnl

Untitled

Sep 12th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.75 KB | None | 0 0
  1. r.spells = {
  2. [ [[yrl]] ] = [[fly]],
  3. [ [[gjqqaf]] ] = [[succor]],
  4. [ [[yzabra]] ] = [[fear]],
  5. [ [[ahhjizwunsoh]] ] = [[attunement]],
  6. [ [[wagg yrl]] ] = [[mass fly]],
  7. [ [[uiyfazuguai]] ] = [[infravision]],
  8. [ [[gruugz oculoae]] ] = [[raise dead]],
  9. [ [[ufai gtui]] ] = [[iron skin]],
  10. [ [[eugszr zzur]] ] = [[dispel evil]],
  11. [ [[rhileg bzaqai]] ] = [[lloyds beacon]],
  12. [ [[eabrat qraat]] ] = [[dark cloak]],
  13. [ [[zwbarw]] ] = [[embalm]],
  14. [ [[oahz]] ] = [[gate]],
  15. [ [[unsozfol efaui]] ] = [[energy drain]],
  16. [ [[ahaizwunsoh]] ] = [[atonement]],
  17. [ [[qrzaigz]] ] = [[cleanse]],
  18. [ [[hpjioculof qras]] ] = [[thunder clap]],
  19. [ [[canduswazz judifgz]] ] = [[remove curse]],
  20. [ [[yrzgp oarzw]] ] = [[flesh golem]],
  21. [ [[uiyjgz gajr]] ] = [[infuse soul]],
  22. [ [[yfzgpxahzf]] ] = [[freshwater]],
  23. [ [[iahjcandusg candusghafar]] ] = [[natures restoral]],
  24. [ [[ghaiz ha yrzgp]] ] = [[stone to flesh]],
  25. [ [[judicandus qfuhuq]] ] = [[cure critic]],
  26. [ [[hzrzsahpl]] ] = [[telepathy]],
  27. [ [[gurunsoqz]] ] = [[silence]],
  28. [ [[qaihfar jioculoae]] ] = [[control undead]],
  29. [ [[yufzbarr]] ] = [[fireball]],
  30. [ [[tiaqt]] ] = [[knock]],
  31. [ [[jiparl kadagru]] ] = [[unholy aura]],
  32. [ [[ashuhjoculo]] ] = [[aptitude]],
  33. [ [[uqz ghafw]] ] = [[ice storm]],
  34. [ [[candusounsozfahuai]] ] = [[regeneration]],
  35. [ [[qarr diesilla]] ] = [[call lightning]],
  36. [ [[uizuguburuhl]] ] = [[invisibility]],
  37. [ [[oculowai buie]] ] = [[demon bind]],
  38. [ [[xgruuhpyafw]] ] = [[wraithform]],
  39. [ [[qaffaguzz gjfoz]] ] = [[corrosive surge]],
  40. [ [[tlrag oculodies]] ] = [[kylas delight]],
  41. [ [[gjssruqahuai]] ] = [[supplication]],
  42. [ [[waouq fasz]] ] = [[magic rope]],
  43. [ [[fido]] ] = [[bless]],
  44. [ [[qaizaqahuai]] ] = [[convocation]],
  45. [ [[eugszr oaae]] ] = [[dispel good]],
  46. [ [[yfaghbarh]] ] = [[frostbolt]],
  47. [ [[ofzahzf pzar]] ] = [[greater heal]],
  48. [ [[xzatunso]] ] = [[weaken]],
  49. [ [[pzfwzhuq candussabruaiqz]] ] = [[hermetic resonance]],
  50. [ [[brukkabrae]] ] = [[blizzard]],
  51. [ [[qpurr baiz]] ] = [[chill bane]],
  52. [ [[sjfuhl]] ] = [[purity]],
  53. [ [[oculoinfra oaae]] ] = [[detect good]],
  54. [ [[axatunso hpz ablgg]] ] = [[awaken the abyss]],
  55. [ [[hunsozbfajg qrax]] ] = [[tenebrous claw]],
  56. [ [[abrazak]] ] = [[armor]],
  57. [ [[hpzfz aie baqt aoaui]] ] = [[there and back again]],
  58. [ [[efzaw hart]] ] = [[dream talk]],
  59. [ [[ofzagz]] ] = [[grease]],
  60. [ [[zabrahpdjatz]] ] = [[earthquake]],
  61. [ [[yufzghafw]] ] = [[firestorm]],
  62. [ [[spagz eaaf]] ] = [[phase door]],
  63. [ [[gpaqtuio ofags]] ] = [[shocking grasp]],
  64. [ [[xukabraeg zlz]] ] = [[wizards eye]],
  65. [ [[aiiupurahuai]] ] = [[annihilation]],
  66. [ [[znhuiqhuai]] ] = [[extinction]],
  67. [ [[hargpaig euabrzfuz]] ] = [[talshans diablerie]],
  68. [ [[gunsogz ruyz]] ] = [[sense life]],
  69. [ [[wagg xahzf bfzahpuio]] ] = [[mass water breathing]],
  70. [ [[qraguio xzazz]] ] = [[closing weave]],
  71. [ [[candusraqahuai]] ] = [[relocation]],
  72. [ [[xarr ay yrzgp]] ] = [[wall of flesh]],
  73. [ [[uwsfazze paghz]] ] = [[improved haste]],
  74. [ [[sfzgzfzz yaae]] ] = [[preserve food]],
  75. [ [[sraiabra gpuyh]] ] = [[planar shift]],
  76. [ [[djuqtunso]] ] = [[quicken]],
  77. [ [[wagg xzb]] ] = [[mass web]],
  78. [ [[pzrrghfutz]] ] = [[hellstrike]],
  79. [ [[zuoaf]] ] = [[vigor]],
  80. [ [[candusuoi ay hpz gsuoculof]] ] = [[reign of the spider]],
  81. [ [[fidouio ay hpz azahabra]] ] = [[blessing of the avatar]],
  82. [ [[szhfuyuze abrazak]] ] = [[petrified armor]],
  83. [ [[uiguoph]] ] = [[insight]],
  84. [ [[gjibzaw]] ] = [[sunbeam]],
  85. [ [[judicandus gzfuajg]] ] = [[cure serious]],
  86. [ [[qahijf gsfal]] ] = [[colour spray]],
  87. [ [[zuharuhl]] ] = [[vitality]],
  88. [ [[bfawbrzg]] ] = [[brambles]],
  89. [ [[yrawz ghfutz]] ] = [[flame strike]],
  90. [ [[judicandus nose]] ] = [[cure blind]],
  91. [ [[waai kadagru]] ] = [[moon aura]],
  92. [ [[oculoahpxahqp]] ] = [[deathwatch]],
  93. [ [[aque bragh]] ] = [[acid blast]],
  94. [ [[judicandus oculoayizgg]] ] = [[cure deafness]],
  95. [ [[oculowaiuq kadagru]] ] = [[demonic aura]],
  96. [ [[qafaia]] ] = [[corona]],
  97. [ [[diesilla barh]] ] = [[lightning bolt]],
  98. [ [[judicandus wuiaf]] ] = [[cure minor]],
  99. [ [[waouq wuggurz]] ] = [[magic missile]],
  100. [ [[canduswazz saugai]] ] = [[remove poison]],
  101. [ [[ofzahzf candusyfzgp]] ] = [[greater refresh]],
  102. [ [[ghawuia]] ] = [[stamina]],
  103. [ [[huozf unsoejgruiqz]] ] = [[tiger endurance]],
  104. [ [[aiuwahz oculoae]] ] = [[animate dead]],
  105. [ [[xafe ay candusqarr]] ] = [[word of recall]],
  106. [ [[ofaqz]] ] = [[grace]],
  107. [ [[oculoinfra eugzagz]] ] = [[detect disease]],
  108. [ [[yafqz yuzre]] ] = [[force field]],
  109. [ [[oculoinfra uizuguburuhl]] ] = [[detect invisibility]],
  110. [ [[xzrrbzffl]] ] = [[wellberry]],
  111. [ [[eawiahuai]] ] = [[damnation]],
  112. [ [[ofzahzf rhileg bzaqai]] ] = [[greater lloyds beacon]],
  113. [ [[qarr yarhixzfg]] ] = [[call followers]],
  114. [ [[abrawg ay hpz ablgg]] ] = [[arms of the abyss]],
  115. [ [[gaiqhjabral]] ] = [[sanctuary]],
  116. [ [[azahabra guoph]] ] = [[avatar sight]],
  117. [ [[candusgugh qare]] ] = [[resist cold]],
  118. [ [[ofzahzf yrjueuhl]] ] = [[greater fluidity]],
  119. [ [[azoug]] ] = [[aegis]],
  120. [ [[qufqrz ay pzaruio]] ] = [[circle of healing]],
  121. [ [[uoculoihuyl]] ] = [[identify]],
  122. [ [[sfahzqhuai yfaw zzur]] ] = [[protection from evil]],
  123. [ [[wagg uizuguburuhl]] ] = [[mass invisibility]],
  124. [ [[wuffaf uwaoz]] ] = [[mirror image]],
  125. [ [[orawajf]] ] = [[glamour]],
  126. [ [[hargpaig culabjhz]] ] = [[talshans tribute]],
  127. [ [[zawsufuq hajqp]] ] = [[vampiric touch]],
  128. [ [[noselacri]] ] = [[blindness]],
  129. [ [[pzeoz wakz]] ] = [[hedge maze]],
  130. [ [[szghurunsoqz]] ] = [[pestilence]],
  131. [ [[qfzahz yaae]] ] = [[create food]],
  132. [ [[gszrr gpuzre]] ] = [[spell shield]],
  133. [ [[xafe ay saui]] ] = [[word of pain]],
  134. [ [[guwjraqfjw]] ] = [[simulacrum]],
  135. [ [[rzhpabraol]] ] = [[lethargy]],
  136. [ [[candusghafahuai]] ] = [[restoration]],
  137. [ [[qfuwgai gqajfoz]] ] = [[crimson scourge]],
  138. [ [[yfzzkz]] ] = [[freeze]],
  139. [ [[candusgugh xzbg]] ] = [[resist webs]],
  140. [ [[qaioculowiahuai]] ] = [[condemnation]],
  141. [ [[eabratguoph]] ] = [[darksight]],
  142. [ [[yufz baiz]] ] = [[fire bane]],
  143. [ [[wuiebabra]] ] = [[mindbar]],
  144. [ [[gaieghafw]] ] = [[sandstorm]],
  145. [ [[grzzs]] ] = [[sleep]],
  146. [ [[hiqahz abyzqh]] ] = [[locate object]],
  147. [ [[sjhcandusyl]] ] = [[putrefy]],
  148. [ [[gjwwai jioculoae]] ] = [[summon undead]],
  149. [ [[qpurr hajqp]] ] = [[chill touch]],
  150. [ [[eabratizgg]] ] = [[darkness]],
  151. [ [[jioculoae zugaoz]] ] = [[undead visage]],
  152. [ [[azaraiqpz]] ] = [[avalanche]],
  153. [ [[iahjcandusg jspzazar]] ] = [[natures upheaval]],
  154. [ [[waihgru ay hpz aiquunsoh culabzg]] ] = [[mantra of the ancient tribes]],
  155. [ [[oculoahp saqh]] ] = [[death pact]],
  156. [ [[eaxiyufz]] ] = [[dawnfire]],
  157. [ [[gpuzre ay hpafig]] ] = [[shield of thorns]],
  158. [ [[nofohfuradjahz]] ] = [[ventriloquate]],
  159. [ [[oculowai hajqp]] ] = [[demon touch]],
  160. [ [[candusyrzqhuai]] ] = [[reflection]],
  161. [ [[iahjcandusg canduszuzar]] ] = [[natures revival]],
  162. [ [[hxughzf]] ] = [[twister]],
  163. [ [[oabraoculoi]] ] = [[garden]],
  164. [ [[xafe ay hafwunsoh]] ] = [[word of torment]],
  165. [ [[qaiasuze abrabaf]] ] = [[canopied arbor]],
  166. [ [[oculoghfjqhuai]] ] = [[destruction]],
  167. [ [[pzfwzhuq xabrae]] ] = [[hermetic ward]],
  168. [ [[qaihfar xzahpzf]] ] = [[control weather]],
  169. [ [[pzrryufz]] ] = [[hellfire]],
  170. [ [[oculoinfra zzur]] ] = [[detect evil]],
  171. [ [[yzagh]] ] = [[feast]],
  172. [ [[oaaebzffl]] ] = [[goodberry]],
  173. [ [[gszqhgrur gpuzre]] ] = [[spectral shield]],
  174. [ [[qfzahz xahzf]] ] = [[create water]],
  175. [ [[judicandus dies]] ] = [[cure light]],
  176. [ [[yrjueuhl]] ] = [[fluidity]],
  177. [ [[yazfuz yufz]] ] = [[faerie fire]],
  178. [ [[mosailla paieg]] ] = [[burning hands]],
  179. [ [[yao]] ] = [[fog]],
  180. [ [[dudaqzshuai]] ] = [[perception]],
  181. [ [[azfuar gzfzaih]] ] = [[aerial servant]],
  182. [ [[hjfi jioculoae]] ] = [[turn undead]],
  183. [ [[gsufuh xahqpzf]] ] = [[spirit watcher]],
  184. [ [[pzar]] ] = [[heal]],
  185. [ [[xart ay hpz qpzzhap]] ] = [[walk of the cheetah]],
  186. [ [[oculoinfra waouq]] ] = [[detect magic]],
  187. [ [[qpfaiag uiqaihahuai]] ] = [[chronos incantation]],
  188. [ [[xzb]] ] = [[web]],
  189. [ [[baiz abrazak]] ] = [[bone armor]],
  190. [ [[yufzxuie]] ] = [[firewind]],
  191. [ [[xurhix xuie]] ] = [[willow wind]],
  192. [ [[ghaiz gtui]] ] = [[stone skin]],
  193. [ [[unsoqpaih xzasai]] ] = [[enchant weapon]],
  194. [ [[candusghuzunsozgg]] ] = [[restiveness]],
  195. [ [[qafsjg gzzzfaiqz]] ] = [[corpus severance]],
  196. [ [[yawuruabra]] ] = [[familiar]],
  197. [ [[waburuhl]] ] = [[mobility]],
  198. [ [[qpabraw dudasabru]] ] = [[charm person]],
  199. [ [[saggaoz]] ] = [[passage]],
  200. [ [[zrzwunsohar candusgughaiqz]] ] = [[elemental resistance]],
  201. [ [[candusgugh saugai]] ] = [[resist poison]],
  202. [ [[xurr a hpz xugs]] ] = [[will o the wisp]],
  203. [ [[judicandus iafwar]] ] = [[cure normal]],
  204. [ [[euguihzofahz]] ] = [[disintegrate]],
  205. [ [[paghz]] ] = [[haste]],
  206. [ [[eabrat waqz]] ] = [[dark mace]],
  207. [ [[xahzf bfzahpuio]] ] = [[water breathing]],
  208. [ [[gqflbuhz]] ] = [[scrybite]],
  209. [ [[baiugp jioculoae]] ] = [[banish undead]],
  210. [ [[gpuzre ay yauhp]] ] = [[shield of faith]],
  211. [ [[zuguai]] ] = [[vision]],
  212. [ [[eugszr waouq]] ] = [[dispel magic]],
  213. [ [[hzrzsafh]] ] = [[teleport]],
  214. [ [[gjwwai]] ] = [[summon]],
  215. [ [[canduswazz eugzagz]] ] = [[remove disease]],
  216. [ [[oculoinfra saugai]] ] = [[detect poison]],
  217. [ [[candusyfzgp]] ] = [[refresh]],
  218. [ [[xuieg ay yafhjiz]] ] = [[winds of fortune]],
  219. [ [[gszat xuhp oculoae]] ] = [[speak with dead]],
  220. [ [[sfugwahuq gsfal]] ] = [[prismatic spray]],
  221. [ [[qpaui diesilla]] ] = [[chain lightning]],
  222. [ [[wzhzaf gxabraw]] ] = [[meteor swarm]],
  223. [ [[uqz grul]] ] = [[ice ray]],
  224. [ [[gsufuh wabratzf]] ] = [[spirit marker]],
  225. [ [[candusyjzunsoahuai]] ] = [[rejuvenation]],
  226. [ [[judifgz]] ] = [[curse]],
  227. [ [[axatunso]] ] = [[awaken]],
  228. [ [[aque gpaxzf]] ] = [[acid shower]],
  229. [ [[candusgugh yufz]] ] = [[resist fire]],
  230. [ [[gsabrat gpaxzf]] ] = [[spark shower]],
  231. [ [[gsufuhjar pawwzf]] ] = [[spiritual hammer]],
  232. [ [[yafhjiz]] ] = [[fortune]],
  233. [ [[waouq raihzfi]] ] = [[magic lantern]],
  234. [ [[zakilla orafl]] ] = [[morning glory]],
  235. }
  236.  
  237. r.codex_arcana = {
  238. [10] = {[" "] = " "},
  239. [20] = {["ar"] = "abra"},
  240. [30] = {["au"] = "kada"},
  241. [40] = {["bless"] = "fido"},
  242. [50] = {["blind"] = "nose"},
  243. [60] = {["bur"] = "mosa"},
  244. [70] = {["cu"] = "judi"},
  245. [80] = {["de"] = "oculo"},
  246. [90] = {["en"] = "unso"},
  247. [100] = {["light"] = "dies"},
  248. [110] = {["lo"] = "hi"},
  249. [120] = {["mor"] = "zak"},
  250. [130] = {["move"] = "sido" },
  251. [140] = {["ness"] = "lacri" },
  252. [150] = {["ning"] = "illa"},
  253. [160] = {["per"] = "duda"},
  254. [170] = {["ra"] = "gru"},
  255. [180] = {["re"] = "candus"},
  256. [190] = {["son"] = "sabru"},
  257. [200] = {["tect"] = "infra"},
  258. [210] = {["tri"] = "cula"},
  259. [220] = {["ven"] = "nofo"},
  260. [230] = {["a"] = "a"},
  261. [240] = {["b"] = "b"},
  262. [250] = {["c"] = "q"},
  263. [260] = {["d"] = "e"},
  264. [270] = {["e"] = "z"},
  265. [280] = {["f"] = "y"},
  266. [290] = {["g"] = "o"},
  267. [300] = {["h"] = "p"},
  268. [310] = {["i"] = "u"},
  269. [320] = {["j"] = "y"},
  270. [330] = {["k"] = "t"},
  271. [340] = {["l"] = "r"},
  272. [350] = {["m"] = "w"},
  273. [360] = {["n"] = "i"},
  274. [370] = {["o"] = "a"},
  275. [380] = {["p"] = "s"},
  276. [390] = {["q"] = "d"},
  277. [400] = {["r"] = "f"},
  278. [410] = {["s"] = "g"},
  279. [420] = {["t"] = "h"},
  280. [430] = {["u"] = "j"},
  281. [440] = {["v"] = "z"},
  282. [450] = {["w"] = "x"},
  283. [460] = {["x"] = "n"},
  284. [470] = {["y"] = "l"},
  285. [480] = {["z"] = "k"},
  286. }
  287.  
  288. function u.toSpell(words)
  289.  
  290. local translation = "" -- hold the translation as we build it
  291. local i = 1 -- position in original word(s) as iterating through chars
  292. local len = (words:len()) -- character length of original word(s)
  293.  
  294. -- let's iterate through the characters of the word(s) to be translated
  295. while i <= len do
  296. local match_found = false
  297.  
  298. for _,mapping in spairs(r.codex_arcana) do
  299. for k,v in pairs(mapping) do
  300. if k == words:sub(i,i + k:len() -1) then
  301. --cecho("<red>"..k.."->"..v.."<reset>\n")
  302. translation = translation..v
  303. i = i + k:len()
  304. match_found = true
  305. end
  306. end
  307. --if match_found then break end
  308. end
  309.  
  310. if not match_found then
  311. translation = translation.."?"
  312. i = i + 1;
  313. end
  314. end
  315. return translation
  316. end
Add Comment
Please, Sign In to add comment