Thread: Noob Shop question

Results 1 to 7 of 7
  1. #1 Noob Shop question 
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    okai im new to coding as you can see im asking about shops. Well when i add shops to my server i can trade and everythign items are there and all when i check value it gives me the price but if i have 0 coins in inventory i can still buy the items can someone help me with this not sure what i am doing wrong here is my shop.cfg..

    //-----ShopID---ShopName----------------------------------------Sell----Buy-----Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount
    /**Pk Store**/
    shop = 18 @blu@XeroXpkz Store 2 2 13858 100 13861 100 13864 100 13867 100 13870 100 13873 100 13876 100 13884 100 13890 100 13896 100 13902 100 13887 100 13893 100 13899 100 14641 100 14642 100 19780 100 19785 100 19786 100 11665 100 11664 100 11663 100 8842 100 11665 100 20072 100 19335 100 18333 100 18334 100 18335 100 15486 100 13744 100 13738 100 13742 100 13740 100 18349 100 18351 100 18353 100 18355 100 14484 100 11694 100
    /** DONATOR**/
    shop = 9 @gre@DONATOR_STORE 2 2 15441 10 15442 10 15443 10 15444 10 15701 10 15702 10 15703 10 15704 10 15600 10 15602 10 15604 10 15606 10 15608 10 15610 10 15612 10 15614 10 15616 10 15618 10 15620 10 15622 10 14936 10 14938 10 15332 10 15300 10 15020 10 15019 10 15018 10 15220 10 15272 10000
    /** Home Shops **/
    shop = 1 General_Store 1 1 590 100 1755 100 2347 100 952 100 946 100 1540 30 1523 100 228 10000 7947 10000 386 100000 7061 100000 314 10000 533 10000 2368 3
    shop = 2 Aubury's_Magic_Store 2 2 554 50000 555 50000 556 50000 557 50000 558 50000 559 50000 562 50000 563 50000 561 10000 565 10000 9075 10000 560 50000 1381 20 1383 20 1385 20 1387 20 4170 100 4089 200 4091 200 4093 200 4095 200 4097 200 2415 100 2416 100 2417 100 4099 200 4101 200 4103 200 4105 200 4107 200 6109 200 6107 200 6108 200 4109 200 4111 200 4113 200 4115 200 4117 200 6111 200 6110 200 4675 10
    shop = 7 Stall_Items 2 2 1897 1 1898 1 950 1 951 1 1635 1 1636 1 7650 1 7651 1 1613 1 1614 1
    shop = 3 Archer_Store 2 2 1133 100 10499 100 882 10000 884 10000 886 10000 888 10000 890 10000 892 5000 11212 500 861 200 9140 10000 9141 10000 9142 10000 9143 10000 9144 10000 9243 1000 9244 500 9185 200 1065 200 1099 200 1135 200 2487 200 2493 200 2497 200 1131 200 1129 200 2489 200 2495 200 2501 200 2491 200 2503 200 6328 200 4214 5 868 500
    shop = 4 Armour_Store 2 2 1153 100 1115 100 1067 100 1191 100 1165 100 1125 100 1077 100 1195 100 1159 100 1121 100 1071 100 1197 100 1163 100 1127 100 1079 100 1201 100 3749 100 3751 100 3753 100 3755 100 10828 100 5574 100 5575 100 5576 100 3122 50
    shop = 5 Weapon_Store 2 2 1323 200 1333 200 4587 200 1215 200 1231 100 1309 200 1319 200 1305 200 1434 200 3204 200 4153 100 6528 100 953 100 590 100 1755 100 2347 100 952 100 946 100 1540 30 1523 100 228 10000 7947 10000 386 100000 7061 100000 314 10000 533 10000 2368 3
    shop = 6 Supply_Store 2 2 3842 500 3840 500 2441 1000 2437 1000 2443 1000 3025 1000 2435 1000 2445 1000 3041 1000 7061 1000 533 1000 542 200 544 200 6107 200 6108 200 6110 200 6106 200 3105 200 1725 200 1731 200 5574 200 5575 200 5576 200 656 200 658 200 660 200 662 200 664 200 579 200 1017 200 7458 200 7459 200 7460 200 7461 5 2550 1000 6568 100
    shop = 8 Skilling_Store 2 2 590 100 1755 100 2347 100 946 100 1349 100 1359 100 1267 100 1275 100 228 100000 1437 100000 5291 100 5292 100 5293 100 5294 100 5295 100 5296 100 5297 100 5298 100 5299 100 5300 100 5301 100 5302 100 5303 100 5304 100 1623 10000 1621 10000 1619 10000 1617 10000 1631 10000 1745 10000 2505 10000 2507 10000 2509 10000 1733 1000 303 1000 311 1000 301 1000
    shop = 17 Mage_Arena_Store 2 2 6889 1 6914 1 6920 1 6918 1 6916 1 6924 1 6922 1
    shop = 9 Trimmed_Shop 2 2 2583 1 2585 1 2587 1 2589 1 2591 1 2593 1 2595 1 2597 1 2599 1 2601 1 2603 1 2605 1 2607 1 2609 1 2611 1 2613 1 2615 1 2617 1 2619 1 2621 1 2623 1 2625 1 2627 1 2629 1 7362 1 7364 1 7366 1 7368 1 7370 1 7372 1 7374 1 7376 1 7378 1 7380 1 7382 1 7384 1 7386 1 7388 1 7390 1 7392 1 7394 1 7396 1
    shop = 10 God_Shop 2 2 10458 1 10460 1 10462 1 10464 1 10466 1 10468 1 10360 1 10362 1 10364 1 10366 1 10368 1 10370 1 10372 1 10374 1 10456 1 10452 1 10454 1 10472 1 10474 1 10470 1 10378 1 10376 1 10380 1 10382 1 10384 1 10388 1 10386 1 10390 1 7398 1 7400 1 7399 1 10442 1 10444 1 10440 1 10446 1 10448 1 10450 1
    shop = 19 Donator_Store 2 2 6889 1 6914 1 6920 1 6918 1 6916 1 6924 1 6922 1
    [ENDOFSHOPLIST]
    Attached image

    Attached image
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    post your shop assistant

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    Attached image

    Attached image
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    any ideas?
    Attached image

    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2011
    Posts
    179
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    you need to add the interfase here i shal give u this guide that i used when i was still a noob

    First you want to open up your npc.cfg file. If the file is doesn't open, right click it and click Open With. Open it with notepad, and set notepad as your default program for opening .cfg files.




    Now look through your npc.cfg. Try finding a NPC that has a "Trade" option.(To figure this out use the ;;npc command ingame using the corresponding ID) For this tutorial I chose "Tribal_Weapon_Salesman" which is ID number 692.




    Once you have your NPC selected, open up the shops.cfg file. It should look something like this.






    Now add the following code into the shops.cfg. Make sure you use tabs when writing the code out, and the Shop ID number can be any random number not already used.
    Code:
    shop = (Your Shop ID) (Shop Name) 2 2
    This image has been resized. Click this bar to view the full image. The original image is sized 1366x768.






    After that last "2" use tab, and put an item ID of what you want, another tab, and the amount. You can do this several times until you have the items you want. It will look sort of like this.






    Now your done with shops.cfg, File>Save. If you want to set prices for the items you added, go to the prices.txt file in the CFG folder. Scroll to the bottom and click enter, enter the item ID then the amount you want it. If the item you want to change already has a price, and you want to change it. Just click "CTRL+F". Type in the item ID, and press search. Just edit the amount and your done.





    Now you want to go to spawn-config.cfg. This is where you will place your npc for your shop. To do this you will need the coordinates to the location. Most [PI] have a ;;mypos command, which give the coordinates. Copy the code below into the spawn-config.cfg and edit the () to your own.
    Code:
    spawn = (NPC ID) (X Coords) (Y Coords) 0 0 0 0 0 (Shop Name)
    It should look something like this now.







    Save Spawn-Config.cfg. Now we are going to get the interface for the shop. Go to SRC>Server>Model>Players and open up ActionHandler.java.
    Search for this:
    Code:
    c.getShops().openShop
    Add this under one of the break;
    Code:
    case (Npc ID):
    c.getShops().openShop((your shop ID));
    break;
    Now save ActionHandler.java




    Final Result!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2011
    Posts
    179
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    hit me up on skype if you need any other help
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2012
    Age
    28
    Posts
    274
    Thanks given
    121
    Thanks received
    10
    Rep Power
    12
    Try changing the shop Id , and in actionhandler under first click npc or whatever put case 500 ( whatever the npc I'd is ) then c.openShop(14) - not the exact code but u shud see some already there so copy that formatt
    Quote Originally Posted by AddictivePkz View Post
    This is disgusting. Terrible release.. I might as well download a cleaned PI and called it PussyScape and release it.. These horny little boys givin positive feedback cuz they think ur a girl? Even if ur a girl ur definatly fat with glasses and a shit load of acne with no friends.. Not trying to be mean or anything.. (Lmao)
    LOL
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Noob Question
    By Sup Nig in forum Help
    Replies: 1
    Last Post: 07-20-2012, 05:13 PM
  2. Help ( Noob Question )
    By DivinescapeOwner in forum Help
    Replies: 6
    Last Post: 01-19-2012, 10:07 PM
  3. Noob Question
    By Impervious in forum Application Development
    Replies: 6
    Last Post: 08-06-2011, 06:00 PM
  4. NOOB Question
    By Defiled-X in forum Help
    Replies: 7
    Last Post: 03-27-2011, 01:05 PM
  5. Replies: 5
    Last Post: 02-22-2011, 11:48 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •