Jump to content
  • 0

i need a script for this can anyone give me?


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

Use one of the Quest's Board you can find at the Script Section.

Link to comment
Share on other sites


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

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


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  

open a trade window with an npc is not possible i think

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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?

Link to comment
Share on other sites


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

I don't think it's possible with the current script commands

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

Maybe he means a shop window?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

euphy's quest shop maybe can help .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   111
  • Joined:  10/05/12
  • Last Seen:  

no time for experiments

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