DemonChuck Posted September 8, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 10/14/12 Last Seen: April 23, 2022 Share Posted September 8, 2013 Pahingi nmn po ng Simpleng Currency Shop for Quest lng potapos gus2 ko po sana walang category ung pag click monndun na ung items rekta na thx po sa 22long sakin... Multi Currency Shop.txt Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 8, 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 September 8, 2013 Pahingi nmn po ng Simpleng Currency Shop for Quest lng po tapos gus2 ko po sana walang category ung pag click mo nndun na ung items rekta na thx po sa 22long sakin... Try : - shop dynamicshop -1,501:20000 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] ) 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,7227,100; // 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; } Add mo lahat ng items mo : setarray .items, 4001,5,7227,100; // Usage : <item id>,<price> Currency na gagamitin mo : set .currency, 7227; // TCG is used to buy items Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted September 8, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted September 8, 2013 Sir patskie kaw gumawa ng shop nyan? kya bang pa call func command yan? Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 8, 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 September 8, 2013 Yeap. Pwera sa checkweight idea. Kinuha ko kay @Skorm Quote Link to comment Share on other sites More sharing options...
DemonChuck Posted September 8, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 10/14/12 Last Seen: April 23, 2022 Author Share Posted September 8, 2013 Patskie Maraming salamat po sa reply...goin to try it BRB sorry po newbie AHAHAHA Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted September 8, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted September 8, 2013 OK sir patskie modify ko dagdag ko sa fishing yan tlga hanap ko maikli lang, ni re-write ko ulit, medyu nilinis na hehehe. Quote Link to comment Share on other sites More sharing options...
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.