Thread: Drop party system

Results 1 to 2 of 2
  1. #1 Drop party system 
    Registered Member
    Join Date
    Jan 2010
    Posts
    112
    Thanks given
    5
    Thanks received
    1
    Rep Power
    0
    I got a PK server and i wanna make a chest where you click it it take like 50.k every time + some other stuff in ut bag ( like rune pl8 , legs etc..)

    so here is the code.. but the problem is.. i need the items to be saved on aother acc....

    Code:
    if(objectID == 104){
    if(playerHasItem(995)){
    if(playerHasItem(35)){
    deleteItem(995, 50000);
    deleteItem(35, 1);
    sendInterface("You gave 50.k to the Drop Party!!!");
    } else
    sM("Give 50.k to the Drop Party ? give more then bether drops will come");
    i need the cash and the ags to get to another acc.. can anyone help me whit the rest ?
    - Piratenpyro
    Reply With Quote  
     

  2. #2  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Make a static variable (preferably an integer).

    Code:
    private static int dropPartyPurse = 0;
    Then increment that amount (As because it's static, the value belongs to the class, rather than each and every instance.

    If it were me, however. I would create a new class to handle Drop parties, but a static variable would work just as well.
    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
  •