Jump to content
  • 0

identify item without remove random option


Question

Posted
	// Identify all unidentified items
	getinventorylist;
	for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
		if ( @inventorylist_identify[.@i] == 1 ) continue;
		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
		getitem @inventorylist_id[.@i],1;
		set .@count, .@count +1;
	}
	if (.@count) dispbottom .@count +" items identified.";

i need to know how to identify item without remove random option, i put script on healer npc

i got crimson saber from Pasana , when i identify item random option will remove

screenrAthena003.thumb.jpg.e003e10db34835a219a78601f43d4321.jpg

screenrAthena005.thumb.jpg.d8e42d1847c32f87c0f4f301afb60cef.jpg

screenrAthena006.thumb.jpg.1618e622a73d5c495fad1fc61b047d3d.jpg

3 answers to this question

Recommended Posts

  • -1
Posted
4 hours ago, rotloso said:

	// Identify all unidentified items
	getinventorylist;
	for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
		if ( @inventorylist_identify[.@i] == 1 ) continue;
		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
		getitem @inventorylist_id[.@i],1;
		set .@count, .@count +1;
	}
	if (.@count) dispbottom .@count +" items identified.";

i need to know how to identify item without remove random option, i put script on healer npc

i got crimson saber from Pasana , when i identify item random option will remove

You can change this code to one script command:

atcommand "@identifyall";

 

  • 1
Posted
getinventorylist;
for(.@i = 0; .@i < @inventorylist_count; .@i++) {
	
	for (.@r = 1; .@r <= 5; .@r++) {
		.@random_bonus_id_array[.@r] = getd("inventorylist_option_id"+.@r+"["+.@i+"]");
		.@random_bonus_value_array[.@r] = getd("inventorylist_option_value"+.@r+"["+.@i+"]");
		.@random_bonus_param_array[.@r] = getd("inventorylist_option_parameter"+.@r+"["+.@i+"]");
	}
	
	if (!@inventorylist_identify[.@i]) {
		delitem3 @inventorylist_id[.@i], 1, 0, @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], .@random_bonus_id_array, .@random_bonus_value_array, .@random_bonus_param_array;
		getitem3 @inventorylist_id[.@i], 1, 1, @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], .@random_bonus_id_array, .@random_bonus_value_array, .@random_bonus_param_array;
		.@count++;
	}
}
if (.@count)
	dispbottom .@count +" items identified.";

you can try like this....

 

you should avoid any tricks that using atcommands. Imagine if you keep a log for every single usage of atcommands in your server, your server gonna overflooded with unnecessary logs.

 

  • Love 1

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...