Jump to content
  • 0

i need a script for this can anyone give me?


Question

Posted

OK! Can anyone give me a script for this NPC?

 

examples:

 

required items are:

500 jellopy

200 fluff

200 sticky mocus

 

items that you will get for this required items is Valkyrian Armor.

 

For example when i click on the npc a trade window will appear automatically then a
character must put a required items to get a new item.. when the character puts the corrrect required item then he will get a random refined valkyrian armor.. (+1 to +10).

 

but when the character puts wrong items the trade will be cancelled when he/she clicks on the ok button on the trade window.

 

 

i hope all of you understand what i mean.... i hope someone know about this.... really need your help...

10 answers to this question

Recommended Posts

Posted

Like this :

prontera,150,150,0    script    Sample    100,{
    mes "I need the following items : ";
    mes "500 Jellopy";
    mes "200 Fluff";
    mes "200 Sticky Mucus";
    next;
    mes "Do you have this items?";
    next;
    if ( select("Yes:No") - 1 ) end;
    if ( countitem(909) < 500 || countitem(914) < 200 || countitem (938) < 200 ) {
        mes "You don't meet my requirements";
        close;
    }
    getitem2 2357,1,1,rand(1,10),0,@card1,@card2,@card3,@card4;
    close;
}
Posted

yeah just like it but i wanted that when i click on a custom npc it will automatically opened a trade window.... the npc wont say anything just automatically opened a trade window.

 

because this npc is a lets just say creation npc....

Posted

it is possible cause the ro the one i am playing have this one...



Like this :

prontera,150,150,0    script    Sample    100,{
    mes "I need the following items : ";
    mes "500 Jellopy";
    mes "200 Fluff";
    mes "200 Sticky Mucus";
    next;
    mes "Do you have this items?";
    next;
    if ( select("Yes:No") - 1 ) end;
    if ( countitem(909) < 500 || countitem(914) < 200 || countitem (938) < 200 ) {
        mes "You don't meet my requirements";
        close;
    }
    getitem2 2357,1,1,rand(1,10),0,@card1,@card2,@card3,@card4;
    close;
}

can an auto trade window open once i click on the npc?

Posted

not a shop window... exactly a trade window. when you click on a custom npc a trade window appear.. you will put on the window the required item then if the items are correct and you press the ok button the other ok button will automatically be clicked then you can trade the item, then after that a cast time appear on the head of the character and after that he/she will get an item.. do you understand what i mean? i hope you do.. i cant upload a photo now cause the server i am playing is temporary down

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