Thread: donator ticket help

Results 1 to 9 of 9
  1. #1 donator ticket help 
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    Baseelta
    Problem:When u buy a item it says 2 prices and it cost coins and donor tickets and u buy 2 of them
    Errors(Compiling Errors):none...
    Other Information/Media(Pictures, etc): [Only registered and activated users can see links. ]

    if you dindnt understand video.. i made a Donor shop. i wanted ti to cost "donor tickets" so i coped my tokui method. but when i buy "1" it gives me two.. and when you click value it says cost 1 coin and 1 donor ticket.. i want it to just say donor ticket
    and when u buy it.. u need to have coins and it cost 1 coin and 1 donor ticket.

    there my code in client.java
    Code:
      if (MyShopID == 54) {
                        if (playerItemsN[Slot2] >= TotPrice2) {
                            if (freeSlots() > 0) {
                                deleteItem(12363, GetItemSlot(12363), 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 Donor Tickets for this item.");
                        }
                    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Anadyr's Avatar
    Join Date
    Nov 2009
    Posts
    683
    Thanks given
    31
    Thanks received
    100
    Rep Power
    675
    this is why half of this community will not get anywhere jumping into a language they do not understand smh

    OT how about you post the code we can help. we are not psychic and know exactly is on your source...
    Reply With Quote  
     

  3. #3  
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    ... its called help
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2009
    Age
    27
    Posts
    318
    Thanks given
    1
    Thanks received
    3
    Rep Power
    19
    This is a Really Easy Fix im not sure about the Buy 2 of them but i know why it cost coins

    1.
    this code.
    Code:
    if (MyShopID == 8)
    					sM(getItemName(removeID) + ": currently costs " + ShopValue
    							+ " tokkul" + ShopAdd);
    u have to have that code Well just Add a
    Code:
    break;
    at the end so it looks like this

    Code:
    if (MyShopID == 8)
    					sM(getItemName(removeID) + ": currently costs " + ShopValue
    							+ " tokkul" + ShopAdd);
                                                        break;
    that will stop The Coins From costing it
    Reply With Quote  
     

  5. #5  
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    it doesnt work.. this is what i have in client.java

    Code:
      if (MyShopID == 54) {
                        if (playerItemsN[Slot2] >= TotPrice2) {
                            if (freeSlots() > 0) {
                                deleteItem(12363, GetItemSlot(12363), 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 Donor Tickets for this item.");
                        }
                    }
    please try to help again
    Reply With Quote  
     

  6. #6  
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    Code:
        if (MyShopID == 54) {
                        if (playerItemsN[Slot2] >= TotPrice2) {
                            if (freeSlots() > 0) {
                                deleteItem(12363, GetItemSlot(12363), 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 Donor Tickets for this item.");
                        }
                    }
    			break;
    i added break; and i got a error..
    Code:
    .\client.java:10196: unreachable statement
                    if (MyShopID == 8) {
                    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  7. #7  
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    bump
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2010
    Posts
    627
    Thanks given
    170
    Thanks received
    53
    Rep Power
    29
    stop using delta anyway
    Reply With Quote  
     

  9. #9  
    Registered Member xXpkMastersXx's Avatar
    Join Date
    Feb 2011
    Posts
    78
    Thanks given
    1
    Thanks received
    0
    Rep Power
    5
    bump
    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. Replies: 5
    Last Post: 10-08-2010, 11:20 PM
  2. Take my ticket
    By allranger in forum Help
    Replies: 13
    Last Post: 07-17-2010, 12:44 AM
  3. My Donator ticket System
    By Neekage in forum Show-off
    Replies: 15
    Last Post: 01-01-2010, 01:21 AM
  4. [508] agility ticket trade [c&p]
    By iamthehat in forum Tutorials
    Replies: 16
    Last Post: 11-29-2008, 05:22 AM
  5. Replies: 63
    Last Post: 05-20-2008, 06:32 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
  •