mrlongshen Posted June 23, 2014 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted June 23, 2014 prontera,140,169,5 script Supplement 790,{ next; switch(select("Skills Catalyst:Alchemy:Cooking:Poison Herb:Smithing:Guidebook")) { case 1: callshop "Skills Catalyst", 0; end; case 2: callshop "Alchemy", 0; end; case 3: callshop "Cooking", 0; end; case 4: callshop "Poison Herb", 0; end; case 5: callshop "Smithing", 0; end; case 6: callshop "Guidebook", 0; end; close; } } - shop Skills Catalyst -,969:100 - shop Alchemy -,19521:100,19517:100,19507:1000 - shop Cooking -,2767:100 - shop Poison Herb -,2469:200,2007:1000 - shop Smithing -,2524:100,2421:100,5171:300 - shop Guidebook -,15025:200,2469:200,2007:1000 I dont want to open the buy and sell shop, i want when i choose the Skills Catalyst it will auto open the list of item. can someone fix for me ? Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted June 24, 2014 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted June 24, 2014 (edited) Try this... http://pastebin.com/MQwf3VYR Edited June 24, 2014 by Lelouch vi Britannia 1 Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted June 24, 2014 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Author Share Posted June 24, 2014 Try this... http://pastebin.com/MQwf3VYR thanks bro, why u change from 0 to 1 ? Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted June 26, 2014 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted June 26, 2014 Try this... http://pastebin.com/MQwf3VYR thanks bro, why u change from 0 to 1 ? Check it in your trunk/doc/script_commands.txt *callshop "<name>",<option>; These are a series of commands used to create dynamic shops. The 'callshop' function calls an invisible shop (view -1) as if the player clicked on it. The options are: 0 = The normal window (buy, sell and cancel) 1 = The buy window 2 = The sell window A shop called with this command will trigger the labels "OnBuyItem" and "OnSellItem" (as long as an npcshop* command is executed from that NPC, see note below). These labels, if used, will replace how the shop handles the buying and selling of items, allowing for the creation of dynamic shops. The label "OnBuyItem" sets the following arrays: @bought_nameid - item ID bought @bought_quantity - amount bought The label "OnSellItem" sets the following arrays: @sold_nameid - item ID sold @sold_quantity - amount sold @sold_refine - refine count @sold_attribute - if the item is broken (1) or not (0) @sold_identify - if the item is identified (1) or not (0) @sold_card1 - card slot 1 @sold_card2 - card slot 2 @sold_card3 - card slot 3 @sold_card4 - card slot 4 Note: These labels will only be triggered if an npcshop* command is executed because these commands set a special data on the shop NPC, named master_nd in the source. The above labels are triggered in the NPC whose master_nd is given in the shop. A full example of a dynamic shop can be found in doc/sample/npc_dynamic_shop.txt. Quote Link to comment Share on other sites More sharing options...
Question
mrlongshen
I dont want to open the buy and sell shop, i want when i choose the Skills Catalyst it will auto open the list of item. can someone fix for me ?
Link to comment
Share on other sites
3 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.