lionellex Posted October 2, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Share Posted October 2, 2016 (edited) 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 October 2, 2016 by lionellex Quote Link to comment Share on other sites More sharing options...
0 iamkevin Posted October 2, 2016 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 104 Reputation: 3 Joined: 09/15/16 Last Seen: July 20, 2024 Share Posted October 2, 2016 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> Quote Link to comment Share on other sites More sharing options...
0 lionellex Posted October 2, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Author Share Posted October 2, 2016 (edited) 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 October 2, 2016 by lionellex Quote Link to comment Share on other sites More sharing options...
0 iamkevin Posted October 3, 2016 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 104 Reputation: 3 Joined: 09/15/16 Last Seen: July 20, 2024 Share Posted October 3, 2016 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 Quote Link to comment Share on other sites More sharing options...
0 lionellex Posted October 3, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Author Share Posted October 3, 2016 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 Quote Link to comment Share on other sites More sharing options...
0 Akkarin Posted October 14, 2016 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: April 15 Share Posted October 14, 2016 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. Quote Link to comment Share on other sites More sharing options...
Question
lionellex
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 lionellexLink to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.