Jump to content
  • 0
sacrox

Poring Coin Npc Help

Question

Hello good, I am trying to put an npc that sells objects in exchange
for poring coins, do you know what is the code to implement this type of npc?
I have tried to copy the code of the dealer tool but I cannot change the currency from npc to Poring Coin.
 thank you very much 

This is the npc Code:

 

prontera,159,165,4    script    Poring Shop    556,{
    mes "[Poring Shop]";
    mes "Bienvenido a mi Tienda";
    mes "Aqui vas a poder utilizar tus Poring Coins para comprar todo tipo de objetos";
    next;
    switch(select("Consumibles:Equipo:Cartas:Aspectos")) {
    close2;
    case 1: callshop "Consumibles", 1; end;
    case 2: callshop "Equipo", 1; end;
    case 3: callshop "Cartas", 1; end;
    case 4: callshop "Aspectos", 1; end;
    }
}

//shops

-    shop    Consumibles    -1,601:60,602:300,506:40,547:3000,545:300,645:1000,656:1500,657:3000,1065:100,522:8500,505:5000,610:5000,12020:1000,523:500,713:500,12070:15000,14579:15000,12045:15000,12050:15000,12055:15000,12060:15000
-    shop    Equipo    -1,985:50000,984:50000,715:600,717:600,716:600,999:5000,1000:5000,990:5000,991:5000,992:5000,993:5000,994:20000,995:20000,996:20000,997:20000,1025:2000,612:2000,613:3000,614:5000,615:10000,970:10000,929:5000,1059:5000
-    shop    Cartas    -1,1750:2,1751:3,1766:50,1767:30,1755:5,1754:5,1761:30,1752:3,1759:30,1765:50,1764:50,1753:20,1756:5,1757:5,1758:30
-    shop    Aspectos    -1,13250:4,13252:20,13253:40,13254:100,2117:10000,7522:150,7523:150,7524:300
-

Inglés
 
 
Edited by sacrox

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

change `ʻITEM_ID`` to the item id you want to charge, the rest works as a store, then you put the item id and the price

prontera,155,185,5	itemshop	NPC_NAME	4_M_CHAMPSOUL,ITEM_ID,1187:100,1281:30

 

Share this post


Link to post
Share on other sites
  • 0

Arigatou Senpai!

Share this post


Link to post
Share on other sites
  • 0
Could you explain to me in more detail the parameters of this code that you have set? thanks

    location                                     datafile?                     name                        sprite               Poring Coid id  ?        ?       ?         ?  

prontera,155,185,5	itemshop	NPC_NAME	4_M_CHAMPSOUL,ITEM_ID,1187:100,1281:30

Share this post


Link to post
Share on other sites
  • 0
5 minutos atrás, sacrox disse:

 

    arquivo de dados de localização? nome sprite Poring Coid id? ? ? ?  


 


 

- < TAB > itemshop < TAB > NPC Name < TAB > sprite id , costitemid {: < discount >}, < itemid >: < price > {, < itemid >: < price > ...}
        
< map name >, < x >, < y >, < cara > < TAB >itemshop <TAB > Nome NPC < TAB > id do sprite , < costitemid > {: < desconto >}, < itemid >: < pre ç o > {, < itemid >: < pre ç o > ...}  

 

Edited by Hyroshima

Share this post


Link to post
Share on other sites
  • 0

Thank you so much

 

Share this post


Link to post
Share on other sites
  • 0
Do I need to create the Poring Coin file in the SQL database?
or just putting in the custom folder is it okay?
I have managed to get the npc poring shop to change items for free
cash at the moment but I still can't get it to be for Poring Coins,
the code so that it can be bought for Poring Coins is itemshop? thank you very much

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.