Jump to content
  • 0

Card Trader


lionellex

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  09/10/16
  • Last Seen:  

Hi, I'm currently trying to use Euphy's Card Trader as default it'll trade Jellopy for 6 POINTS.

 

http://pastebin.com/WGmhsmGn I managed to change from Jellopy to Gold Coins, but how do I change the item's costs?

 

Please and Thank you.

Edited by lionellex
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  101
  • Reputation:   3
  • Joined:  09/15/16
  • Last Seen:  

OnInit:
    set .Level,0;           // Minimum monster level to trade corresponding cards.
    set .Points$,"#Card_Points";    // Variable to store points.
    setarray .Shop[0],      // Card Shop items: <ID>,<point cost>
      4001,1,4004,1,4033,1,4196,1,4197,25,4054,50,4174,75,4047,100;
    setarray .Points[0],1,10;   // Points per <normal card>,<MVP card>
    set .MVP$,          // List of MVP cards.
      "4121,4123,4128,4131,4132,4134,4135,4137,4142,4143,4144,4145,4146,4147,4148,4168,4236,"+
      "4241,4263,4276,4302,4305,4318,4324,4330,4342,4357,4359,4361,4363,4365,4399,4403,4407";

edit this one

setarray .Points[0],1,10;   // Points per <normal card>,<MVP card>
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  09/10/16
  • Last Seen:  

OnInit:
    set .Level,0;           // Minimum monster level to trade corresponding cards.
    set .Points$,"#Card_Points";    // Variable to store points.
    setarray .Shop[0],      // Card Shop items: <ID>,<point cost>
      4001,1,4004,1,4033,1,4196,1,4197,25,4054,50,4174,75,4047,100;
    setarray .Points[0],1,10;   // Points per <normal card>,<MVP card>
    set .MVP$,          // List of MVP cards.
      "4121,4123,4128,4131,4132,4134,4135,4137,4142,4143,4144,4145,4146,4147,4148,4168,4236,"+
      "4241,4263,4276,4302,4305,4318,4324,4330,4342,4357,4359,4361,4363,4365,4399,4403,4407";

edit this one

setarray .Points[0],1,10;   // Points per <normal card>,<MVP card>

I think that's for how much per card will cost right? Not how much Jellopy is cost? (which is in my case, Gold Coin costs?)

 

EDIT: It's alright, I've figured it out. But...

    npcshopdelitem "card_shop",909;
    for(set .@i,0; .@i<getarraysize(.Shop); set .@i,.@i+2)
        npcshopadditem "card_shop",.Shop[.@i],.Shop[.@i+1];
    end;
}
-   shop    card_shop   -1,909:-1

What does these lines above do? Do I need to edit the Jellopy?

Edited by lionellex
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  101
  • Reputation:   3
  • Joined:  09/15/16
  • Last Seen:  

   setarray .Shop[0],      // Card Shop items: <ID>,<point cost>
      4001,1,4004,1,4033,1,4196,1,4197,25,4054,50,4174,75,4047,100;

that one sorry i didnt read your question correctly

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  09/10/16
  • Last Seen:  

   setarray .Shop[0],      // Card Shop items: <ID>,<point cost>
      4001,1,4004,1,4033,1,4196,1,4197,25,4054,50,4174,75,4047,100;

that one sorry i didnt read your question correctly

 

Nono, but do u know what these lines do?

    npcshopdelitem "card_shop",909;
    for(set .@i,0; .@i<getarraysize(.Shop); set .@i,.@i+2)
        npcshopadditem "card_shop",.Shop[.@i],.Shop[.@i+1];
    end;
}
-   shop    card_shop   -1,909:-1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Nono, but do u know what these lines do?

 

 

They create the list of items sold in the shop. From script_commands.txt:

 

*npcshopadditem "<name>",<item id>,<price>{,<item id>,<price>{,<item id>,<price>{,...}}};

This command will add more items at the end of the selling list for the
specified NPC shop or cashshop. If you specify an item already for sell, that item will
appear twice on the sell list.

The function returns 1 if shop was updated successfully, or 0 if not found.

NOTES:
 - That you cannot use -1 to specify default selling price!
 - If attached shop type is market shop, need an extra param after price, it's <qty>
   and make sure don't add duplication item!

---------------------------------------

*npcshopdelitem "<name>",<item id>{,<item id>{,<item id>{,...}}};

This command will remove items from the specified NPC shop or cashshop.
If the item to remove exists more than once on the shop, all instances will be
removed.

Note that the function returns 1 even if no items were removed. The return
value is only to confirm that the shop was indeed found.
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...