Jump to content
Yoh Asakura

Program to auto input text

Recommended Posts

Hi,

 

I wonder if there's a program that can help us to auto-input texts, this way we don't need to edit line by line, 1 by one.

 

Example, the itemInfo.lua, instead of doing it one by one there must have a program that can auto input the lines. Like if I want to put the ID 19001 until 19080 with the description of iteminfo.lua this program would do it all.

 

Like this text bellow.

 

Anyone knows a program that can do it? I'm asking because @@Dastgir has a program that can make the accessoryid and accname.lua automatically.

 

 

     [8290] = {		unidentifiedDisplayName = "",		unidentifiedResourceName  = "",		unidentifiedDescriptionName = {		},		identifiedDisplayName = "Helm of Fire",		identifiedResourceName = "helm_of_fire",		identifiedDescriptionName = {			"Description in here",			"description2",			"Jobs : ^777777All^000000",		},		slotCount = 1,		ClassNum = 0	},
Edited by Yoh Asakura

Share this post


Link to post
Share on other sites

you mean same description?

Same description but with the right #AegisName, #Name and #Id would already help a lot.

After I can just find and replace the description. 

 

I could not do it with your program because when we click enter it goes to the other option...

Edited by Yoh Asakura

Share this post


Link to post
Share on other sites

something like this? then try this...using Chrome press F12 the go to the console...

copy, paste then enter...

function generate(id, iname, aname){    for(i=0; i<id.length; i++){	    console.log('[' + id[i] + '] = {');	    console.log('    unidentifiedDisplayName = "",');	    console.log('    unidentifiedResourceName  = "",');	    console.log('    unidentifiedDescriptionName = {');	    console.log('    },');	    console.log('    identifiedDisplayName = "' + iname[i] + '",');	    console.log('    identifiedResourceName = "' + aname[i] + '",');	    console.log('    identifiedDescriptionName = {');	    console.log('	    "Description in here",');	    console.log('	    "description2",');	    console.log('	    "Jobs : ^777777All^000000",');	    console.log('    },');	    console.log('    slotCount = 1,');	    console.log('    ClassNum = 0');	    console.log('},');    }}id = [1234, 12345, 12346];iname = ['item1', 'item2', 'item3'];aname = ['item_1', 'item_2', 'item_3'];generate(id, iname, aname);

then it will output something like this...

[1234] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item1",    identifiedResourceName = "item_1",     identifiedDescriptionName = {	    "Description in here", 	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0},[12345] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item2",    identifiedResourceName = "item_2",    identifiedDescriptionName = {	    "Description in here",	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0},[12346] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item3",    identifiedResourceName = "item_3",    identifiedDescriptionName = {	    "Description in here",	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0}, 

:meow:

Share this post


Link to post
Share on other sites

I believe SDE has the functinality you want. It's a really great tool.

 

ETA: Damn, ninja'd.

Edited by Garr

Share this post


Link to post
Share on other sites

@@mrlongshen

@@Garr

I can see here that is possible, but could you guys help me? How can I do it?


something like this? then try this...using Chrome press F12 the go to the console...

copy, paste then enter...

function generate(id, iname, aname){    for(i=0; i<id.length; i++){	    console.log('[' + id[i] + '] = {');	    console.log('    unidentifiedDisplayName = "",');	    console.log('    unidentifiedResourceName  = "",');	    console.log('    unidentifiedDescriptionName = {');	    console.log('    },');	    console.log('    identifiedDisplayName = "' + iname[i] + '",');	    console.log('    identifiedResourceName = "' + aname[i] + '",');	    console.log('    identifiedDescriptionName = {');	    console.log('	    "Description in here",');	    console.log('	    "description2",');	    console.log('	    "Jobs : ^777777All^000000",');	    console.log('    },');	    console.log('    slotCount = 1,');	    console.log('    ClassNum = 0');	    console.log('},');    }}id = [1234, 12345, 12346];iname = ['item1', 'item2', 'item3'];aname = ['item_1', 'item_2', 'item_3'];generate(id, iname, aname);

then it will output something like this...

[1234] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item1",    identifiedResourceName = "item_1",     identifiedDescriptionName = {	    "Description in here", 	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0},[12345] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item2",    identifiedResourceName = "item_2",    identifiedDescriptionName = {	    "Description in here",	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0},[12346] = {    unidentifiedDisplayName = "",    unidentifiedResourceName  = "",    unidentifiedDescriptionName = {    },    identifiedDisplayName = "item3",    identifiedResourceName = "item_3",    identifiedDescriptionName = {	    "Description in here",	    "description2",	    "Jobs : ^777777All^000000",    },    slotCount = 1,    ClassNum = 0}, 

:meow:

But this way I have to put the AegisName and the Name and the ID's of the items...it would take too long...I need something faster, like the SDE the members above said. But how to use it?

Edited by Yoh Asakura

Share this post


Link to post
Share on other sites

Well, it's doable with SDE, sort of...!

 

Server side (if you haven't added the items in your Item or Item2 tab yet)

Go in Item2 > Edit > Add item from raw db line > paste the following (generated with the magic of excel lol) :

19001,helm_of_fire_0,19002,helm_of_fire_1,19003,helm_of_fire_2,19004,helm_of_fire_3,19005,helm_of_fire_4,19006,helm_of_fire_5,19007,helm_of_fire_6,19008,helm_of_fire_7,19009,helm_of_fire_8,19010,helm_of_fire_9,19011,helm_of_fire_10,19012,helm_of_fire_11,19013,helm_of_fire_12,19014,helm_of_fire_13,19015,helm_of_fire_14,19016,helm_of_fire_15,19017,helm_of_fire_16,19018,helm_of_fire_17,19019,helm_of_fire_18,19020,helm_of_fire_19,19021,helm_of_fire_20,19022,helm_of_fire_21,19023,helm_of_fire_22,19024,helm_of_fire_23,19025,helm_of_fire_24,19026,helm_of_fire_25,19027,helm_of_fire_26,19028,helm_of_fire_27,19029,helm_of_fire_28,19030,helm_of_fire_29,19031,helm_of_fire_30,19032,helm_of_fire_31,19033,helm_of_fire_32,19034,helm_of_fire_33,19035,helm_of_fire_34,19036,helm_of_fire_35,19037,helm_of_fire_36,19038,helm_of_fire_37,19039,helm_of_fire_38,19040,helm_of_fire_39,19041,helm_of_fire_40,19042,helm_of_fire_41,19043,helm_of_fire_42,19044,helm_of_fire_43,19045,helm_of_fire_44,19046,helm_of_fire_45,19047,helm_of_fire_46,19048,helm_of_fire_47,19049,helm_of_fire_48,19050,helm_of_fire_49,19051,helm_of_fire_50,19052,helm_of_fire_51,19053,helm_of_fire_52,19054,helm_of_fire_53,19055,helm_of_fire_54,19056,helm_of_fire_55,19057,helm_of_fire_56,19058,helm_of_fire_57,19059,helm_of_fire_58,19060,helm_of_fire_59,19061,helm_of_fire_60,19062,helm_of_fire_61,19063,helm_of_fire_62,19064,helm_of_fire_63,19065,helm_of_fire_64,19066,helm_of_fire_65,19067,helm_of_fire_66,19068,helm_of_fire_67,19069,helm_of_fire_68,19070,helm_of_fire_69,19071,helm_of_fire_70,19072,helm_of_fire_71,19073,helm_of_fire_72,19074,helm_of_fire_73,19075,helm_of_fire_74,19076,helm_of_fire_75,19077,helm_of_fire_76,19078,helm_of_fire_77,19079,helm_of_fire_78,19080,helm_of_fire_79,

Fill your first item (19001) properly. With your first item selected, press down shift and select your last item, 19080. Go in Edit > Copy all... > Check "Select all" and uncheck "Aegis name" > Click Copy. Select all your items again > right-click > Add in [Client Items].

 

Client side

Pretty much the same technique as above. Fill your item 19001 properly, then by pressing shift down, select your last item 19080. Go in Edit > Copy all... >  Check "Select all" and uncheck the last one "Parameters" (shouldn't be showing... erm) > Click Copy.

 

That... should do it, there are plenty of ways for doing what you want xD. I personally like @malufett's solution, it's neat ;].

Share this post


Link to post
Share on other sites

I already did one by one, but anyway...I will try what you guys said.

 

@@Tokeiburu

Mallufet way is not so good because I must put all the Items ID and names...I would like something automatic, where I don't need to put ID's or names...

Share this post


Link to post
Share on other sites

I already did one by one, but anyway...I will try what you guys said.

 

@@Tokeiburu

Mallufet way is not so good because I must put all the Items ID and names...I would like something automatic, where I don't need to put ID's or names...

 

 

Eh, you have to tweak the script to your needs, that's your part of the work ;]. For example, the script below will output the itemInfo items you requested :

function generate(id, iname, aname) {	console.log('[' + id + '] = {');	console.log('	unidentifiedDisplayName = "",');	console.log('	unidentifiedResourceName  = "",');	console.log('	unidentifiedDescriptionName = {');	console.log('	},');	console.log('	identifiedDisplayName = "' + iname + '",');	console.log('	identifiedResourceName = "' + aname + '",');	console.log('	identifiedDescriptionName = {');	console.log('		"Description in here",');	console.log('		"description2",');	console.log('		"Jobs : ^777777All^000000",');	console.log('	},');	console.log('	slotCount = 1,');	console.log('	ClassNum = 0');	console.log('},');}start = 19001;name = 'myitemname';for (id = start; id <= 19080; id++) {	generate(id, name + (id - start + 1), name + '_' + (id - start + 1));}

Play around until you get the result you are looking for xD! You could also do this with Notepad++ or any programming language, or... SDE. Simply pick the tool you're the most comfortable with.

Share this post


Link to post
Share on other sites

if you're using Notepad++ ... it's also possible ..

just that kinda troublesome.

 

turn on the Macro Recording, then type in the template of the itemInfo.lua .

and stop the macro once you done, and repeat it as many time as you want.

 

but too bad it repeat type out the same thing only, it wont generate any other things for you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.