Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for each, Line in StrSplit(FileTextToEdit, "`n", "`r")
- {
- if !RegExMatch(Line, "^""(\{.*\})(.*)"",\s+// (\d+)$", Match)
- {
- continue
- }
- StringLower, matwo, Match2
- matwo = RegExReplace(matwo, "\[|\]|\-|\'") ; Removes [ or ] or - or ' from the string
- NewFileText .=
- (
- {
- "name": "title_%matwo%",
- "display_name": "%Match2%",
- "description": null,
- "web_description": null,
- "type": "title",
- "loadout_slot": "title",
- "price": "%Match3%",
- "attrs": { "colorful_text": "%Match1%%Match2%" },
- "is_buyable": "1",
- "is_tradeable": "1",
- "is_refundable": "1",
- "expiry_time": null
- },`r`n
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement