MyNoobScriptz Posted August 2, 2018 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Share Posted August 2, 2018 // 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 Quote Link to comment Share on other sites More sharing options...
-1 Balfear Posted August 2, 2018 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 256 Reputation: 245 Joined: 07/24/13 Last Seen: March 24 Share Posted August 2, 2018 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"; Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted August 3, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 3, 2018 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. 1 Quote Link to comment Share on other sites More sharing options...
-1 MyNoobScriptz Posted August 2, 2018 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Author Share Posted August 2, 2018 12 minutes ago, Balfear said: You can change this code to one script command: atcommand "@identifyall"; thx work now!! Quote Link to comment Share on other sites More sharing options...
Question
MyNoobScriptz
// 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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.