Thread: How do I add a tokkul shop

Results 1 to 9 of 9
  1. #1 How do I add a tokkul shop 
    Registered Member
    Join Date
    Nov 2008
    Posts
    76
    Thanks given
    4
    Thanks received
    0
    Rep Power
    7
    I need help on how to make shops sell items for Tokkul but not all of the shops. If someone could show me how to do this, I would greatly appreciate it.
    Reply With Quote  
     

  2. #2  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Look at how delta does it.
    MY DISCORD:
    bluejay#1504
    Reply With Quote  
     

  3. #3  
    Austin_
    Guest
    Look at the tutorial by Benes that adds pk point shop, look how he loads the points. That's how you'll load tokkul.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2008
    Posts
    76
    Thanks given
    4
    Thanks received
    0
    Rep Power
    7
    I have this for the tokkul, 32 is my shop id.
    Code:
    for (int i = amount; i > 0; i--) {
                    TotPrice2 = (int) Math.floor(
                            GetItemShopValue(itemID, 0, fromSlot));
                    Slot = GetItemSlot(995);
                    Slot2 = GetItemSlot(6529);
                    Slot3 = GetItemSlot(6529);
                    if (Slot == -1 && MyShopID != 8 && MyShopID != 19) {
                        sM("You don't have enough coins.");
                        break;
                    }
                    if (Slot2 == -1 && MyShopID == 32) {
                        sM("You don't have enough tokkul.");
                        break;
                    }
    The shop still sells the item for gp.

    then, the tokkul code

    Code:
    if (MyShopID == 32) {
                        if (playerItemsN[Slot2] >= TotPrice2) {
                            if (freeSlots() > 0) {
                                deleteItem(6529, GetItemSlot(6529), TotPrice2);
                                addItem(itemID, 1);
                                server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1;
                                server.shopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0;
                                if ((fromSlot + 1)
                                        > server.shopHandler.ShopItemsStandard[MyShopID]) {
                                    server.shopHandler.ShopItems[MyShopID][fromSlot] = 0;
                                }
                            } else {
                                sM("Not enough space in your inventory.");
                                break;
                            }
                        } else {
                            sM("Not enough tokkul for this item.");
                        }
                    }
    So yeah, confused...

    Edit: I did look at it, but it doesn't work...?
    Reply With Quote  
     

  5. #5  
    Austin_
    Guest
    Yeh because it has nothing that says you can only buy items from that shop using Tokkul..
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2008
    Posts
    76
    Thanks given
    4
    Thanks received
    0
    Rep Power
    7
    So, how would I make it so they can only use tokkul to buy things from the shop?
    Reply With Quote  
     

  7. #7  
    Austin_
    Guest
    I won't be spoon-feeding you. Look what I posted about benes tutorial.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2008
    Posts
    76
    Thanks given
    4
    Thanks received
    0
    Rep Power
    7
    Quote Originally Posted by Austin. View Post
    I won't be spoon-feeding you. Look what I posted about benes tutorial.
    The codes are very similar, can't figure it out. :/ Can you give me a hint?
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2008
    Posts
    76
    Thanks given
    4
    Thanks received
    0
    Rep Power
    7
    Help anyone, please?
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •