Advertisement
Chdata

Untitled

Aug 25th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. for each, Line in StrSplit(FileTextToEdit, "`n", "`r")
  2. {
  3. if !RegExMatch(Line, "^""(\{.*\})(.*)"",\s+// (\d+)$", Match)
  4. {
  5. continue
  6. }
  7.  
  8. StringLower, matwo, Match2
  9. matwo = RegExReplace(matwo, "\[|\]|\-|\'") ; Removes [ or ] or - or ' from the string
  10. NewFileText .=
  11. (
  12. {
  13. "name": "title_%matwo%",
  14. "display_name": "%Match2%",
  15. "description": null,
  16. "web_description": null,
  17. "type": "title",
  18. "loadout_slot": "title",
  19. "price": "%Match3%",
  20. "attrs": { "colorful_text": "%Match1%%Match2%" },
  21. "is_buyable": "1",
  22. "is_tradeable": "1",
  23. "is_refundable": "1",
  24. "expiry_time": null
  25. },`r`n
  26. )
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement