Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; AutoHotkey Version: 1.x
- ; Language: English
- ; Platform: Win9x/NT
- ; Author: Recca
- ;
- ; Script Function:
- ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
- ;
- ; MAKE COLOR PICKER , QUICK COLOR PICK MAYBE
- ; MAKE AUTO COLOR
- ; GET ITEM INFO FROM ITEM_DB=====================================================
- ; AUTO ASIGN NEXT VIEW ID & CHECK FOR EMPTY IDS
- ; COMBO BOX FOR VIEW ID AND ID
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory
- global WM_USER := 0x00000400
- global PBM_SETMARQUEE := WM_USER + 10
- global PBM_SETSTATE := WM_USER + 16
- global PBS_MARQUEE := 0x00000008
- global PBS_SMOOTH := 0x00000001
- ;~ global PBS_VERTICAL := 0x00000004
- ;~ global PBST_NORMAL := 0x00000001
- ;~ global PBST_ERROR := 0x00000002
- ;~ global PBST_PAUSE := 0x00000003
- ;~ global STAP_ALLOW_NONCLIENT := 0x00000001
- ;~ global STAP_ALLOW_CONTROLS := 0x00000002
- ;~ global STAP_ALLOW_WEBCONTENT := 0x00000004
- ;~ global WM_THEMECHANGED := 0x0000031A
- ;==============================
- IniRead, ROpath, Additem.ini, RO, path
- ;====================== COLOR PICKER
- IniRead, Color1, Additem.ini, Color, 1
- IniRead, Color2, Additem.ini, Color, 2
- IniRead, Color3, Additem.ini, Color, 3
- IniRead, Color4, Additem.ini, Color, 4
- IniRead, Color5, Additem.ini, Color, 5
- IniRead, Color6, Additem.ini, Color, 6
- IniRead, Color7, Additem.ini, Color, 7
- IniRead, Color8, Additem.ini, Color, 8
- IniRead, Color9, Additem.ini, Color, 9
- IniRead, Color10, Additem.ini, Color, 10
- IniRead, Color11, Additem.ini, Color, 11
- IniRead, Color12, Additem.ini, Color, 12
- IniRead, Color13, Additem.ini, Color, 13
- IniRead, Color14, Additem.ini, Color, 14
- IniRead, Color15, Additem.ini, Color, 15
- ;========Options======
- type = 1
- AddOpt = 1
- MorD = 2
- ;===================
- ;~ path = %A_ScriptDir%\ CLIENT files\RO\data
- Gui, Color, Black
- Gui, Font, s10 w600 cBlack
- Gui, Add, Text, x98 y205 cRed,Class:
- ;Gui, Add, DropDownList, vWepType Choose1, <Weapon>|Dagger|1-Hand Sword|2-Hand Sword|1-Hand Spear|2-Hand Spear|1-Hand Axe|2-Hand Axe|Mace|Staff|2-Hand Staff|Bow/CrossBow|Knuckle|Instrument|Whip|Book|Katar|Revolver||Rifle|Shotgun|Gatling Gun|Grenade Launcher|Fuuma Shuriken
- Gui, Add, Edit, w320 h25 x5 y5 vDir +ReadOnly cWhite,
- Gui, Add, Button, xp+320 yp w70 h25 gBrowse, Browse
- Gui, Add, DropDownList, xp-320 yp+60 w60 h120 vslot Choose1 gslot, Slots|1|2|3|4
- Gui, Add, Picture, xp yp+35 w0 h-1 vcollection,
- Gui, Add, Edit, xp+90 yp-20 w300 h120 vDesc gDesc ,
- Gui, Add, Text, xp yp-19 cRed, Descriptions
- Gui, Add, Edit, xp yp+140 w300 h120 vTypeBIG gType, Class: ^777777Headgear^000000`nDefense: ^777777^000000`nLocation: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777All^000000
- Gui, Add, Radio, xp+10 yp+130 cRed Checked gType1, Headgear
- Gui, Add, Radio, xp+100 yp cRed gType2, Weapon
- Gui, Add, Radio, xp-100 yp+20 cRed gType3, Armor
- Gui, Add, Radio, xp+100 yp cRed gType4, Item
- Gui, Add, Radio, xp+90 yp cRed gType5, Shield
- Gui, Add, Radio, xp yp-20 cRed gType6, Accessory
- Gui, Add, Radio, xp-190 yp+40 cRed gType7, Card
- Gui, Add, Radio, xp+100 yp cRed gType8, Garment
- Gui, Add, Radio, xp+90 yp cRed gType9, Shoes
- Gui, Add, Edit, xp-242 yp-335 w220 h20 vName,
- Gui, Add, Text, xp-42 yp+2 cRed, Name
- Gui, Add, Text, xp yp+170 cRed, View ID
- Gui, Add, Edit, w70 vVIewID
- Gui, Add, UpDown, xp yp+20 w70 Range0-2147483647 0x80 ,
- Gui, Add, ActiveX, vWB xp+390 yp-230 w320 h260,Shell . Explorer
- wb.navigate("about:blank")
- Sleep 20
- html =
- (
- <html>
- <body bgcolor="000000"/>
- </html>
- )
- wb.document.write(html)
- Gui, Add, ListView, w20 h20 x11 y260 Background%Color1% gColor1,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color2% gColor2,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color3% gColor3,
- Gui, Add, ListView, w20 h20 xp-50 yp+25 Background%Color4% gColor4,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color5% gColor5,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color6% gColor6,
- Gui, Add, ListView, w20 h20 xp-50 yp+25 Background%Color7% gColor7,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color8% gColor8,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color9% gColor9,
- Gui, Add, ListView, w20 h20 xp-50 yp+25 Background%Color10% gColor10,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color11% gColor11,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color12% gColor12,
- Gui, Add, ListView, w20 h20 xp-50 yp+25 Background%Color13% gColor13,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color14% gColor14,
- Gui, Add, ListView, w20 h20 xp+25 yp Background%Color15% gColor15,
- Gui, Add,Text, xp-50 yp+40 cRed, Client's path
- Gui, Add, Edit, xp+90 yp +ReadOnly cWhite w550 vcPath,
- Gui, Add, Button, xp+550 yp w60 h24 gBrowse2, Browse
- Gui, Add, Text, xp-371 yp-362 cRed, ID
- Gui, Add, Edit, xp+20 yp-3 w95 vID
- Gui, Add, UpDown, xp+20 yp-3 w90 h20 Range0-2147483647 0x80,
- Gui, Add, Button, xp+112 yp+230 gAdd h115 w60 , ADD
- Gui, Add, Radio,xp+65 yp cRed gAdd1 Checked, EVERYTHING
- Gui, Add, Radio,xp yp+20 cRed gAdd2 , ONLY itemInfo.lub
- Gui, Add, Radio,xp yp+20 cRed gAdd3 , ONLY sprites `&& textures
- Gui, Add, Progress, xp yp+25 w230 h20 hwndMARQ4 -%PBS_SMOOTH% +%PBS_MARQUEE% vGhost1, 0
- DllCall("User32.dll\SendMessage", "Ptr", MARQ4, "Int", PBM_SETMARQUEE, "Ptr",50, "Ptr", -1)
- Gui, Add, Radio, xp yp+30 cYellow gMorD1, to Client
- Gui, Add, Radio, xp+100 yp cYellow Checked gMorD2, to
- Gui, Add, Edit, xp+35 yp-1 w100 h20 vDummy, dummyData
- Gui, Show, w720 h430
- GuiControl,, cPath, %ROpath%
- GuiControl, Focus, Desc
- return
- ;============= COLOR PICKER
- Color1:
- Color2:
- Color3:
- Color4:
- Color5:
- Color6:
- Color7:
- Color8:
- Color9:
- Color10:
- Color11:
- Color12:
- Color13:
- Color14:
- Color15:
- if A_GuiEvent = DoubleClick
- {
- Gui, submit, nohide
- Color := %A_ThisLabel%
- StringSplit, Desc_, Desc, %A_Space%,
- lastword := Desc_%Desc_0%
- leng := StrLen(lastword)
- StringTrimRight, newX, Desc, %leng%
- GuiControl,, Desc, %newX%^%Color%%lastword%^000000%A_Space%
- GuiControl,Focus, Desc
- Send {Down 20}
- Send {End}
- goto Desc
- }
- return
- GuiClose:
- ExitApp
- return
- Add1:
- Add2:
- Add3:
- StringRight, currOpt, A_ThisLabel,1
- AddOpt = %currOpt%
- return
- MorD1:
- MorD2:
- StringRight, currOpt1, A_ThisLabel,1
- MorD = %currOpt1%
- return
- slot:
- Gui, submit, nohide
- if slot is number
- {
- SlotrNah = [%slot%]
- }
- else
- SlotrNah =
- goto Type
- return
- Browse:
- FileSelectFile, selectFile,,,,*.act
- if errorlevel
- return
- else
- {
- GuiControl,, Dir, %selectFile%
- StringSplit, split_, selectFile, \
- fileName := split_%split_0%
- StringSplit, fileN_, fileName, .
- fileName := fileN_1
- StringReplace, path, selectFile, %fileName%.act,
- ;~ GuiControl,, item, %path%i%filename%.bmp
- GuiControl,, collection, %path%c%filename%.bmp
- StringReplace, tempX, fileName,_,%A_Space%,all
- GuiControl,, Name, %tempX%
- }
- goto Type
- return
- Browse2:
- FileSelectFolder, ROpath,,,,Select RO client folder
- if errorlevel
- return
- else
- {
- GuiControl,, cPath, %ROpath%
- }
- return
- Add:
- Gui, submit, nohide
- StringReplace, Name2, Name, %A_Space%,_,all
- if selectFile =
- {
- MsgBox Cannot find item files.
- goto Browse
- }
- if ROpath =
- {
- MsgBox Cannot find client folder.
- goto Browse2
- }
- if ID = 0
- {
- MsgBox, ID cannot be 0.
- GuiControl, focus, ID
- return
- }
- if MorD = 1
- AddType = Client
- if MorD = 2
- AddType = Dummy
- if (type = 1 && ViewID = 0)
- {
- MsgBox View ID cannot be 0 for Headgears.
- GuiControl, focus, ViewID
- return
- }
- if AddType != Client
- {
- IfnotExist, %A_ScriptDIr%\%Dummy%
- {
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection\
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item\
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\sprite\¾ÆÀÌÅÛ\
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\¿©\
- FileCreateDir, %A_ScriptDIr%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\³²\
- FileCopy, %path%\%fileName%.act, %A_ScriptDir%\%Dummy%\data\sprite\¾ÆÀÌÅÛ\%Name2%.act
- FileCopy, %path%\%fileName%.spr, %A_ScriptDir%\%Dummy%\data\sprite\¾ÆÀÌÅÛ\%Name2%.spr
- FileCopy, %path%\_%fileName%.act, %A_ScriptDir%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_%Name2%.act
- FileCopy, %path%\_%fileName%.spr, %A_ScriptDir%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_%Name2%.spr
- FileCopy, %path%\_%fileName%.act, %A_ScriptDir%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\³²\³²_%Name2%.act
- FileCopy, %path%\_%fileName%.spr, %A_ScriptDir%\%Dummy%\data\sprite\¾Ç¼¼»ç¸®\³²\³²_%Name2%.spr
- FileCopy, %path%\c%fileName%.bmp, %A_ScriptDir%\%Dummy%\data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection\%Name2%.bmp
- FileCopy, %path%\i%fileName%.bmp, %A_ScriptDir%\%Dummy%\data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item\%Name2%.bmp
- }
- }
- if AddOpt = 1
- {
- if type = 1
- {
- DllCall("User32.dll\SendMessage", "Ptr", MARQ4, "Int", PBM_SETMARQUEE, "Ptr",50, "Ptr", 25)
- UpdateAccID()
- UpdateAccNameS()
- UpdateitemInfo()
- totalStr=
- DllCall("User32.dll\SendMessage", "Ptr", MARQ4, "Int", PBM_SETMARQUEE, "Ptr",50, "Ptr", -1)
- MsgBox Done !
- return
- }
- if type = 2
- {
- DllCall("User32.dll\SendMessage", "Ptr", MARQ4, "Int", PBM_SETMARQUEE, "Ptr",50, "Ptr", 25)
- ;~ UpdateWepTable()
- DllCall("User32.dll\SendMessage", "Ptr", MARQ4, "Int", PBM_SETMARQUEE, "Ptr",50, "Ptr", -1)
- MsgBox Done !
- return
- }
- }
- if AddOpt = 2
- {
- }
- if AddOpt = 3
- {
- }
- return
- Type1:
- Type2:
- Type3:
- Type4:
- Type5:
- Type6:
- Type7:
- Type8:
- Type9:
- StringRight, type, A_ThisLabel,1
- if type = 1
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Headgear^000000`nDefense: ^777777^000000`nLocation: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777All^000000
- goto Type
- }
- if type = 2
- {
- Guicontrol, Move, TypeBIG, x95 y225 h96
- GuiControl,, TypeBIG,Attack: ^777777^000000`nWeight: ^777777^000000`nWeapon Level: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- if type = 3
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Armor^000000`nDefense: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- if type = 4
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,^ffffff_^000000`nWeight: ^777777^000000
- goto Type
- }
- if type = 5
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Shield^000000`nDefense: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- if type = 6
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Accessory^000000`nDefense: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- if type = 7
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Card^000000`nCompound on: ^777777^000000`nWeight: ^7777771^000000
- goto Type
- }
- if type = 8
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- Guicontrol,, TypeBIG,Class: ^777777Garment^000000`nDefense: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- if type = 9
- {
- GuiControl, Move, TypeBIG, x95 y201 h120
- GuiControl,, TypeBIG,Class: ^777777Footwear^000000`nDefense: ^777777^000000`nWeight: ^777777^000000`nRequired Level: ^777777^000000`nJobs: ^777777^000000
- goto Type
- }
- return
- Desc:
- Gui, submit, nohide
- Desc = %Desc%<br>%TypeBIG%
- StringReplace, Desc, Desc,`n,<br>,all
- IfInString, Desc, ^
- {
- StringSplit, tempo_, Desc, ^
- Loop %tempo_0%
- {
- if A_index = 1
- temp := temp tempo_%A_Index%
- else
- {
- temp := temp "^" tempo_%A_Index%
- StringLeft, Tcolor, tempo_%A_Index%, 6
- if Tcolor != 000000
- StringReplace, temp, temp, ^%Tcolor%, <font style="color:%Tcolor%">
- else
- StringReplace, temp, temp, ^000000, </font>
- }
- }
- Loop %tempo_0%
- {
- tempo_%A_Index%=
- }
- Desc := temp
- temp=
- }
- html =
- (
- <html>
- <body bgcolor="000000"/>
- <table style="width:290;color:#ffffff ;font-size:15" border = 1; cellspacing=0 ;cellpadding=3; bordercolor="38719C">
- <tr>
- <td bgcolor="38719C" valign='bottom'><img src=' %path%i%filename%.bmp'><b> %Name% %SlotrNah%</b></td>
- </tr>
- <tr>
- <td bgcolor="D2EDFF"><div style="overflow: scroll;width: 290px;height: 200px;"><font style="color:Black;font-size:16">%Desc%</font></div></td>
- </tr>
- </table>
- </html>
- )
- wb.navigate("about:blank")
- Sleep 50
- wb.document.write(html)
- return
- Type:
- Gui, submit, nohide
- StringReplace, TypeBIG, TypeBIG,`n,<br>,all
- TypeBIG = %Desc%<br>%TypeBIG%
- IfInString, TypeBIG, ^
- {
- StringSplit, tempo_, TypeBIG, ^
- Loop %tempo_0%
- {
- if A_index = 1
- temp := temp tempo_%A_Index%
- else
- {
- temp := temp "^" tempo_%A_Index%
- StringLeft, Tcolor, tempo_%A_Index%, 6
- if Tcolor != 000000
- StringReplace, temp, temp, ^%Tcolor%, <font style="color:%Tcolor%">
- else
- StringReplace, temp, temp, ^000000, </font>
- }
- }
- Loop %tempo_0%
- {
- tempo_%A_Index%=
- }
- TypeBIG := temp
- temp=
- }
- html =
- (
- <html>
- <body bgcolor="000000"/>
- <table style="width:290;color:#ffffff ;font-size:15" border = 1; cellspacing=0 ;cellpadding=3; bordercolor="38719C">
- <tr>
- <td bgcolor="38719C" valign='bottom'><img src=' %path%i%filename%.bmp'><b> %Name% %SlotrNah%</b></td>
- </tr>
- <tr>
- <td bgcolor="D2EDFF"><div style="overflow: scroll;width: 290px;height: 200px;"><font style="color:Black;font-size:16">%TypeBIG%</font></div></td>
- </tr>
- </table>
- </html>
- )
- wb.navigate("about:blank")
- Sleep 50
- wb.document.write(html)
- return
- ;========================FUNC
- UpdateWepTable()
- {
- global
- IfNotExist, %ROpath%\data\luafiles514\lua files\datainfo\weapontable.lub
- {
- MsgBox Can't find "weapontable.lub" in Client's folder.
- return
- }
- if AddType = Client
- {
- Loop, read, %ROpath%\data\luafiles514\lua files\datainfo\weapontable.lub
- {
- }
- }
- else
- {
- IfExist, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\weapontable.lub
- tempPath = %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\weapontable.lub
- else
- tempPath = %ROpath%\data\luafiles514\lua files\datainfo\weapontable.lub
- FileRead, data, %tempPath%
- StringSplit, data_, data, }
- data=
- StringTrimRight, data_1, data_1, 1
- StringTrimRight, data_2, data_2, 1
- StringTrimRight, data_3, data_3, 1
- ; FIXHERER
- StringReplace, Name3,Name2, _,all
- totalStr = %data_1%,`r`n WEAPONTYPE_%Name2% = %ViewID%`r`n}%data_2%,`r`n [Weapon_IDs.WEAPONTYPE_%Name2%] = "_%Name3%"`r`n}%data_3%,`r`n [Weapon_IDs.WEAPONTYPE_%Name2%] = Weapon_IDs.WEAPONTYPE_SWORD`r`n}%data_4%}
- data_1=
- data_2=
- data_3=
- FileDelete, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\weapontable.lub
- FileAppend, %totalStr%, %A_ScriptDir%\%Dummy%\data\luafiles514\lua files\datainfo\weapontable.lub
- totalStr=
- }
- }
- UpdateAccID()
- {
- global
- IfNotExist, %ROpath%\data\luafiles514\lua files\datainfo\accessoryid.lub
- {
- MsgBox Can't find "accessoryid.lub" in Client's folder.
- return
- }
- if AddType = Client
- {
- Loop, read, %ROpath%\data\luafiles514\lua files\datainfo\accessoryid.lub
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%ACCESSORY_%Name2% = %ViewID%`n`}
- IfExist, %A_ScriptDir%\accessoryid.lub
- FileDelete, %A_ScriptDIr%\accessoryid.lub
- FileAppend, %totalStr%, accessoryid.lub
- }
- else
- {
- IfExist, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accessoryid.lub
- tempPath = %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accessoryid.lub
- else
- tempPath = %ROpath%\data\luafiles514\lua files\datainfo\accessoryid.lub
- Loop, read, %tempPath%
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%ACCESSORY_%Name2% = %ViewID%`n}
- FileDelete, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accessoryid.lub
- FileAppend, %totalStr%, %A_ScriptDir%\%Dummy%\data\luafiles514\lua files\datainfo\accessoryid.lub
- }
- }
- UpdateAccNameS()
- {
- global
- IfNotExist, %ROpath%\data\luafiles514\lua files\datainfo\accname.lub
- {
- MsgBox Can't find "accname.lub" in Client's folder.
- return
- }
- IfNotExist, %ROpath%\data\luafiles514\lua files\datainfo\accname_eng.lub
- {
- MsgBox Can't find "accname_eng.lub" in Client's folder.
- return
- }
- if AddType = Client
- {
- Loop, read, %ROpath%\data\luafiles514\lua files\datainfo\accname.lub
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%[ACCESSORY_IDs.ACCESSORY_%Name2%] = "_%Name2%"`n}
- FileDelete, %A_ScriptDIr%\accname.lub
- FileAppend, %totalStr%,accname.lub
- Loop, read, %ROpath%\data\luafiles514\lua files\datainfo\accname_eng.lub
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%[ACCESSORY_IDs.ACCESSORY_%Name2%] = "_%Name2%"`n}
- FileDelete, %A_ScriptDIr%\accname_eng.lub
- FileAppend, %totalStr%,accname_eng.lub
- }
- else
- {
- IfExist, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname.lub
- tempPath = %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname.lub
- else
- tempPath = %ROpath%\data\luafiles514\lua files\datainfo\accname.lub
- Loop, read, %tempPath%
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%[ACCESSORY_IDs.ACCESSORY_%Name2%] = "_%Name2%"`n}
- FileDelete, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname.lub
- FileAppend, %totalStr%,%A_ScriptDir%\%Dummy%\data\luafiles514\lua files\datainfo\accname.lub
- IfExist, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname_eng.lub
- tempPath = %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname_eng.lub
- else
- tempPath = %ROpath%\data\luafiles514\lua files\datainfo\accname_eng.lub
- Loop, read, %tempPath%
- {
- StringRight, currStr, A_LoopReadLine, 1
- if currStr != ,
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- totalStr = %totalStr%`n%A_LoopReadLine%,
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- totalStr = %totalStr%`n%A_Space%%A_Space%[ACCESSORY_IDs.ACCESSORY_%Name2%] = "_%Name2%"`n}
- FileDelete, %A_ScriptDIr%\%Dummy%\data\luafiles514\lua files\datainfo\accname_eng.lub
- FileAppend, %totalStr%,%A_ScriptDir%\%Dummy%\data\luafiles514\lua files\datainfo\accname_eng.lub
- }
- }
- UpdateitemInfo()
- {
- global
- IfNotExist, %ROpath%\System\itemInfo.lub
- {
- MsgBox Can't find "itemInfo.lub" in Client's folder.
- return
- }
- if AddType = Client
- {
- Loop, read, %ROpath%\System\itemInfo.lub
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- IfInString, A_Loopreadline, main = function()
- {
- breakLine := A_Index
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- StringTrimRight, totalStr, totalStr, 1
- if slot is not number
- slot = 0
- bigData = %Desc%`n%TypeBIG%
- StringSplit, bigData_, bigData, `n
- Loop %bigData_0%
- {
- plugin := bigData_%A_Index%
- if A_index = 1
- {
- infoDesc = "%plugin%",
- continue
- }
- if A_index = %bigData_0%
- {
- infoDesc = %infoDesc%`n%A_Tab%%A_Tab%%A_Tab%"%plugin%"
- break
- }
- infoDesc = %infoDesc%`n%A_Tab%%A_Tab%%A_Tab%"%plugin%",
- }
- if Desc =
- {
- DeEnd =
- (
- [%ID%] = {
- unidentifiedDisplayName = "%Name%",
- unidentifiedResourceName = "%Name2%",
- unidentifiedDescriptionName = {
- },
- identifiedDisplayName = "%Name%",
- identifiedResourceName = "%Name2%",
- identifiedDescriptionName = {
- },
- slotCount = %slot%,
- ClassNum = %viewID%
- },
- }
- )
- }
- else
- {
- DeEnd =
- (
- [%ID%] = {
- unidentifiedDisplayName = "%Name%",
- unidentifiedResourceName = "%Name2%",
- unidentifiedDescriptionName = {
- },
- identifiedDisplayName = "%Name%",
- identifiedResourceName = "%Name2%",
- identifiedDescriptionName = {
- %infoDesc%
- },
- slotCount = %slot%,
- ClassNum = %viewID%
- },
- }
- )
- }
- lineBig=
- Loop
- {
- FileReadLine, lineInfo, %ROpath%\System\itemInfo.lub, %breakLine%
- if errorlevel
- break
- else
- {
- breakLine++
- lineBig = %lineBig%`n%lineInfo%
- }
- }
- IfExist, %A_ScriptDir%\itemInfo.lub
- FileDelete, %A_ScriptDir%\itemInfo.lub
- FileAppend, %totalStr%%A_Tab%%DeEnd%%lineBig%,%A_ScriptDir%\itemInfo.lub
- }
- else
- {
- IfExist, %A_ScriptDIr%\%Dummy%\itemInfo.lub
- tempPath = %A_ScriptDIr%\%Dummy%\itemInfo.lub
- else
- tempPath = %ROpath%\System\itemInfo.lub
- Loop, read, %tempPath%
- {
- if A_Index = 1
- {
- totalStr = %A_LoopReadLine%
- continue
- }
- IfInString, A_Loopreadline, main = function()
- {
- breakLine := A_Index
- break
- }
- totalStr = %totalStr%`n%A_LoopReadLine%
- }
- StringTrimRight, totalStr, totalStr, 1
- if slot is not number
- slot = 0
- bigData = %Desc%`n%TypeBIG%
- StringSplit, bigData_, bigData, `n
- Loop %bigData_0%
- {
- plugin := bigData_%A_Index%
- if A_index = 1
- {
- infoDesc = "%plugin%",
- continue
- }
- if A_index = %bigData_0%
- {
- infoDesc = %infoDesc%`n%A_Tab%%A_Tab%%A_Tab%"%plugin%"
- break
- }
- infoDesc = %infoDesc%`n%A_Tab%%A_Tab%%A_Tab%"%plugin%",
- }
- if Desc =
- {
- DeEnd =
- (
- [%ID%] = {
- unidentifiedDisplayName = "%Name%",
- unidentifiedResourceName = "%Name2%",
- unidentifiedDescriptionName = {
- },
- identifiedDisplayName = "%Name%",
- identifiedResourceName = "%Name2%",
- identifiedDescriptionName = {
- },
- slotCount = %slot%,
- ClassNum = %viewID%
- },
- }
- )
- }
- else
- {
- DeEnd =
- (
- [%ID%] = {
- unidentifiedDisplayName = "%Name%",
- unidentifiedResourceName = "%Name2%",
- unidentifiedDescriptionName = {
- },
- identifiedDisplayName = "%Name%",
- identifiedResourceName = "%Name2%",
- identifiedDescriptionName = {
- %infoDesc%
- },
- slotCount = %slot%,
- ClassNum = %viewID%
- },
- }
- )
- }
- lineBig=
- Loop
- {
- FileReadLine, lineInfo, %tempPath%, %breakLine%
- if errorlevel
- break
- else
- {
- breakLine++
- lineBig = %lineBig%`n%lineInfo%
- ;~ FileAppend, %lineInfo%`n,%A_ScriptDir%\DummyData\itemInfo.lub
- }
- }
- IfExist, %A_ScriptDir%\%Dummy%\itemInfo.lub
- FileDelete, %A_ScriptDIr%\%Dummy%\itemInfo.lub
- FileAppend, %totalStr%%A_Tab%%DeEnd%%lineBig%,%A_ScriptDir%\%Dummy%\itemInfo.lub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment