Sparks Posted October 10, 2013 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 50 Reputation: 0 Joined: 09/05/13 Last Seen: December 4, 2014 Share Posted October 10, 2013 Can i request a simple TCG Shop ?? where i can add items there .. a TCG Shop that when you buy item it equals to tcp card ..Example :Copolla = 10,000k TCG Card something like that .. sorry for my bad english .. Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 11, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 11, 2013 you can try this https://rathena.org/board/index.php?/files/file/2504-%7B?%7D/ or @Euphy's quest shop ~ Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 12, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 14 hours ago Share Posted October 12, 2013 You can try this too : - shop dynamicshop -1,501:22 prontera,150,150,0 script Dynamic Shop 100,{ callshop "dynamicshop",1; npcshopattach "dynamicshop"; end; OnBuyItem: for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) { for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) { if ( @bought_nameid[.@k] == .items[.@j] ) { if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) { if ( countitem(.currency) < .items[.@j+1] || countitem(.currency) < ( .items[.@j+1] * @bought_quantity[.@k] ) ) dispbottom "You don't have enough " +getitemname(.currency)+ " to purchase this item."; else { delitem .currency, .items[.@j+1] * @bought_quantity[.@k]; getitem @bought_nameid[.@k], @bought_quantity[.@k]; } } else dispbottom "You cannot carry out more items with you"; } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); end; OnInit: set .currency, 7227; // TCG is used to buy items setarray .items, 4001,5,4002,5,4003,5,4004,5,4005,5; // Usage : <item id>,<price> npcshopitem "dynamicshop",0,0; for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 ) npcshopadditem "dynamicshop",.items[.@i],.items[.@i+1]; end; } Quote Link to comment Share on other sites More sharing options...
Question
Sparks
Can i request a simple TCG Shop ??
where i can add items there ..
a TCG Shop that when you buy item it equals to tcp card ..
Example :
Copolla = 10,000k TCG Card
something like that ..
sorry for my bad english ..
Link to comment
Share on other sites
2 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.