Jump to content
  • 0

Need Help about identifier npc!


Question

Posted (edited)

Everytime i talk to the npc, im getting 1 only identified items. is there anything wrong with this script?

 

 

                            mes "[ ^ffa500Eternal Kafra^000000 ]";
                            mes "Need me to identify your equipment?";
                            next;
                            prompt("Yes, please.:No thanks.");
                            switch(@menu){
                            case 1:
                                    mes "[ ^ffa500Eternal Kafra^000000 ]";
                                    mes "Okay, let me have a look at your inventory.";
                                    next;
                                    getinventorylist;
                                    while( .@i < @inventorylist_count ){
                                        if ( !@inventorylist_identify[.@i] ){
                                            delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
                                            getitem @inventorylist_id[.@i],1;
                                            mes "[ ^ffa500Eternal Kafra^000000 ]";
                                            mes "I have successfully identified "+.@i+" items.";
                                            next;
                                            goto Kaf_End;
                                        }
                                        .@i++;
                                    }
                                    mes "[ ^ffa500Eternal Kafra^000000 ]";
                                    mes "Everything has already been identified.";
                                    next;
                                    goto Kaf_End;
                                    end;
Edited by Capuche
Edit the title

5 answers to this question

Recommended Posts

Posted

Replace the identify part by this : 

case 1:
        mes "[ ^ffa500Eternal Kafra^000000 ]";
        mes "Okay, let me have a look at your inventory.";
        next;
        getinventorylist;
            while( .@idn < @inventorylist_count ){
                if ( !@inventorylist_identify[.@idn] ){
                    delitem2 @inventorylist_id[.@idn],1,0,0,0,0,0,0,0;
                    getitem @inventorylist_id[.@idn],1;
                }
                .@idn++;
            }
        mes "[ ^ffa500Eternal Kafra^000000 ]";
        mes "Everything has already been identified.";
        next;
        goto Kaf_End;
        end;
Posted

where should i put this dialog? if there's a unidentified items, it will show this "I have successfully identified "+.@idn+" items." but if there's no unidentified items, it will show this, "Everything has already been identified."



@EDIT: FIXED.

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