Jump to content
  • 0

identify item without remove random option


MyNoobScriptz

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

	// 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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • -1

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

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";

 

Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

12 minutes ago, Balfear said:

You can change this code to one script command:


atcommand "@identifyall";

 

thx work now!!

Link to comment
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
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.

×
×
  • Create New...