Jump to content
  • 0

Need Help about identifier npc!


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Can you show the whole script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

Can you show the whole script?

 

http://pastebin.com/raw.php?i=neqSApyp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

You set your own post as the best answer, funny lol

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