China Posted November 27, 2011 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? Quote Link to comment Share on other sites More sharing options...
iFoxkun Posted November 27, 2011 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 189 Reputation: 16 Joined: 11/20/11 Last Seen: January 4, 2014 Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? A TCG Shop made by Emistry o_o from old eAthena Forums prontera,138,183,5 script TCG Uppers 793,{ mes .name$; mes "You currently have "+countitem(.tcg_item)+" TCG."; mes "Would you like to look at the shop?"; next; if(select("Yes:No") == 2) {close;} close2; callshop "TCG_SHOP",1; npcshopattach "TCG_SHOP"; dispbottom "You currently have "+countitem(.tcg_item)+" TCG."; end; OnBuyItem: for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.TCG_ITEMS); set @j,@j+1) { if(.TCG_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.ITEMPRICE[@j]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); break; } } } if(@totalcost > countitem(.tcg_item)) { dispbottom "You don't have enough TCG."; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; } delitem .tcg_item,@totalcost; dispbottom "Thank you for shopping."; dispbottom "You now have "+countitem(.tcg_item)+" TCG left."; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; end; OnInit: npcshopdelitem "TCG_SHOP",909; // Leave this alone set .name$,"[TCG Uppers]"; set .tcg_item,7227; // Input TCG ID setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order for(set .@i,0; .@i < getarraysize(.TCG_ITEMS); set .@i,.@i+1) { npcshopadditem "TCG_SHOP",.TCG_ITEMS[.@i],.ITEMPRICE[.@i]; } end; } - shop TCG_SHOP -1,909:20 zOmg Thank you . Now i Need a broadcaster The TCG script credits go to Emistry. I'm testing out my broadcaster, wait 5 mins ~ Okay , xDD http://pastebin.com/rCTjz5YB Done ;D Quote Link to comment Share on other sites More sharing options...
iFoxkun Posted November 27, 2011 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 189 Reputation: 16 Joined: 11/20/11 Last Seen: January 4, 2014 Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? A TCG Shop made by Emistry o_o from old eAthena Forums prontera,138,183,5 script TCG Uppers 793,{ mes .name$; mes "You currently have "+countitem(.tcg_item)+" TCG."; mes "Would you like to look at the shop?"; next; if(select("Yes:No") == 2) {close;} close2; callshop "TCG_SHOP",1; npcshopattach "TCG_SHOP"; dispbottom "You currently have "+countitem(.tcg_item)+" TCG."; end; OnBuyItem: for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.TCG_ITEMS); set @j,@j+1) { if(.TCG_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.ITEMPRICE[@j]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); break; } } } if(@totalcost > countitem(.tcg_item)) { dispbottom "You don't have enough TCG."; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; } delitem .tcg_item,@totalcost; dispbottom "Thank you for shopping."; dispbottom "You now have "+countitem(.tcg_item)+" TCG left."; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; end; OnInit: npcshopdelitem "TCG_SHOP",909; // Leave this alone set .name$,"[TCG Uppers]"; set .tcg_item,7227; // Input TCG ID setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order for(set .@i,0; .@i < getarraysize(.TCG_ITEMS); set .@i,.@i+1) { npcshopadditem "TCG_SHOP",.TCG_ITEMS[.@i],.ITEMPRICE[.@i]; } end; } - shop TCG_SHOP -1,909:20 Quote Link to comment Share on other sites More sharing options...
China Posted November 27, 2011 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Author Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? A TCG Shop made by Emistry o_o from old eAthena Forums prontera,138,183,5 script TCG Uppers 793,{ mes .name$; mes "You currently have "+countitem(.tcg_item)+" TCG."; mes "Would you like to look at the shop?"; next; if(select("Yes:No") == 2) {close;} close2; callshop "TCG_SHOP",1; npcshopattach "TCG_SHOP"; dispbottom "You currently have "+countitem(.tcg_item)+" TCG."; end; OnBuyItem: for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.TCG_ITEMS); set @j,@j+1) { if(.TCG_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.ITEMPRICE[@j]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); break; } } } if(@totalcost > countitem(.tcg_item)) { dispbottom "You don't have enough TCG."; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; } delitem .tcg_item,@totalcost; dispbottom "Thank you for shopping."; dispbottom "You now have "+countitem(.tcg_item)+" TCG left."; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; end; OnInit: npcshopdelitem "TCG_SHOP",909; // Leave this alone set .name$,"[TCG Uppers]"; set .tcg_item,7227; // Input TCG ID setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order for(set .@i,0; .@i < getarraysize(.TCG_ITEMS); set .@i,.@i+1) { npcshopadditem "TCG_SHOP",.TCG_ITEMS[.@i],.ITEMPRICE[.@i]; } end; } - shop TCG_SHOP -1,909:20 zOmg Thank you . Now i Need a broadcaster Quote Link to comment Share on other sites More sharing options...
iFoxkun Posted November 27, 2011 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 189 Reputation: 16 Joined: 11/20/11 Last Seen: January 4, 2014 Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? A TCG Shop made by Emistry o_o from old eAthena Forums prontera,138,183,5 script TCG Uppers 793,{ mes .name$; mes "You currently have "+countitem(.tcg_item)+" TCG."; mes "Would you like to look at the shop?"; next; if(select("Yes:No") == 2) {close;} close2; callshop "TCG_SHOP",1; npcshopattach "TCG_SHOP"; dispbottom "You currently have "+countitem(.tcg_item)+" TCG."; end; OnBuyItem: for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.TCG_ITEMS); set @j,@j+1) { if(.TCG_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.ITEMPRICE[@j]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); break; } } } if(@totalcost > countitem(.tcg_item)) { dispbottom "You don't have enough TCG."; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; } delitem .tcg_item,@totalcost; dispbottom "Thank you for shopping."; dispbottom "You now have "+countitem(.tcg_item)+" TCG left."; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; end; OnInit: npcshopdelitem "TCG_SHOP",909; // Leave this alone set .name$,"[TCG Uppers]"; set .tcg_item,7227; // Input TCG ID setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order for(set .@i,0; .@i < getarraysize(.TCG_ITEMS); set .@i,.@i+1) { npcshopadditem "TCG_SHOP",.TCG_ITEMS[.@i],.ITEMPRICE[.@i]; } end; } - shop TCG_SHOP -1,909:20 zOmg Thank you . Now i Need a broadcaster The TCG script credits go to Emistry. I'm testing out my broadcaster, wait 5 mins ~ Quote Link to comment Share on other sites More sharing options...
China Posted November 27, 2011 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Author Share Posted November 27, 2011 @TCG SHOP I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS @Broadcaster DarkRO version . do you guys have one ? A TCG Shop made by Emistry o_o from old eAthena Forums prontera,138,183,5 script TCG Uppers 793,{ mes .name$; mes "You currently have "+countitem(.tcg_item)+" TCG."; mes "Would you like to look at the shop?"; next; if(select("Yes:No") == 2) {close;} close2; callshop "TCG_SHOP",1; npcshopattach "TCG_SHOP"; dispbottom "You currently have "+countitem(.tcg_item)+" TCG."; end; OnBuyItem: for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.TCG_ITEMS); set @j,@j+1) { if(.TCG_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.ITEMPRICE[@j]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); break; } } } if(@totalcost > countitem(.tcg_item)) { dispbottom "You don't have enough TCG."; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; } delitem .tcg_item,@totalcost; dispbottom "Thank you for shopping."; dispbottom "You now have "+countitem(.tcg_item)+" TCG left."; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; end; OnInit: npcshopdelitem "TCG_SHOP",909; // Leave this alone set .name$,"[TCG Uppers]"; set .tcg_item,7227; // Input TCG ID setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order for(set .@i,0; .@i < getarraysize(.TCG_ITEMS); set .@i,.@i+1) { npcshopadditem "TCG_SHOP",.TCG_ITEMS[.@i],.ITEMPRICE[.@i]; } end; } - shop TCG_SHOP -1,909:20 zOmg Thank you . Now i Need a broadcaster The TCG script credits go to Emistry. I'm testing out my broadcaster, wait 5 mins ~ Okay , xDD Quote Link to comment Share on other sites More sharing options...
China Posted November 27, 2011 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Author Share Posted November 27, 2011 Is this a non-spammable broadcast? Thank you . Quote Link to comment Share on other sites More sharing options...
iFoxkun Posted November 27, 2011 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 189 Reputation: 16 Joined: 11/20/11 Last Seen: January 4, 2014 Share Posted November 27, 2011 Is this a non-spammable broadcast? Thank you . It gives a warning for spamming. I just made a warning so that players are still able to use it after, but if spammed, you can give them a Warning it and / or jail or ban them. ~ 1 Quote Link to comment Share on other sites More sharing options...
China Posted November 27, 2011 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Author Share Posted November 27, 2011 I see thanks > ! Quote Link to comment Share on other sites More sharing options...
iFoxkun Posted November 27, 2011 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 189 Reputation: 16 Joined: 11/20/11 Last Seen: January 4, 2014 Share Posted November 27, 2011 I see thanks > ! No Problem ;D Quote Link to comment Share on other sites More sharing options...
Yamzkie Posted December 1, 2011 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 35 Reputation: 0 Joined: 11/23/11 Last Seen: April 13, 2020 Share Posted December 1, 2011 suggestion u could just use tcg = cashpoints npc and use eathena shoper and change shop to cashshop then no sweat OMG?? Quote Link to comment Share on other sites More sharing options...
manabeast Posted December 25, 2011 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted December 25, 2011 about tgc i dunno use this. but i found another simple one. but that one cannot view item the item effect before buy. how to add the view item effect before buy? Quote Link to comment Share on other sites More sharing options...
superman54f Posted January 3, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 12/23/11 Last Seen: February 6, 2012 Share Posted January 3, 2012 Any guide on how to add items on the TCG shops??? Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 4, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted January 4, 2012 setarray .TCG_ITEMS[0],20001; // Item IDs - 128 max setarray .ITEMPRICE[0],30; // Item prices - Should followe ID's order Quote Link to comment Share on other sites More sharing options...
Question
China
@TCG SHOP
I think it would be nice if its like a real shop. not a script code that ur going to talk to the npc and pick bla bla . THANKS
@Broadcaster
DarkRO version . do you guys have one ?
Link to comment
Share on other sites
13 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.