Thread: 317 pi clicking buttons help

Results 1 to 9 of 9
  1. #1 317 pi clicking buttons help 
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Code:
      if (c.dialogueAction == 67){
        if (c.KC >= 500) {
        c.getShops().openShop(30);
        c.sendMessage("you open this awesome shop");
         c.KC -= 500;
         c.KC += 500;
        } else
        c.sendMessage("you need a kill count of 500 to enter this shop");
        c.getPA().removeAllWindows();
        }

    shop wont open dafuq code looks okay to me
    Reply With Quote  
     

  2. #2  
    Server developer


    Join Date
    Jul 2010
    Posts
    881
    Thanks given
    265
    Thanks received
    55
    Rep Power
    94
    Code:
      if (c.dialogueAction == 67){ <---- is the actionID right in firstNpcClick?
        if (c.KC >= 500) {
        c.getShops().openShop(30);
        c.sendMessage("you open this awesome shop");
         c.KC -= 500; <---- those two don't make sense?
         c.KC += 500;
        } else { <---- does this make sense that you forgot it?
        c.sendMessage("you need a kill count of 500 to enter this shop");
        c.getPA().removeAllWindows();
        }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    880
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    whats the point of

    c.KC -= 500;
    c.KC += 500;

    thats just basically adding 0 KC..
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by The Reason View Post
    whats the point of

    c.KC -= 500;
    c.KC += 500;

    thats just basically adding 0 KC..
    no when i use the tele it takes away 500 kc and i fixed it by puting there + 500 again
    Reply With Quote  
     

  5. #5  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    c.getPA().removeAllWindows();

    thats your problem
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2013
    Posts
    880
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Quote Originally Posted by ipkmills View Post
    no when i use the tele it takes away 500 kc and i fixed it by puting there + 500 again
    c.KC -= 500;
    c.KC += 500;

    is basically taking abway 500 and readding 500. lol.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    thats what i said
    Reply With Quote  
     

  8. #8  
    Donator

    Defiled RSPS's Avatar
    Join Date
    Oct 2013
    Posts
    465
    Thanks given
    32
    Thanks received
    30
    Rep Power
    94
    Patrick how are you hosting if you cant even code mate.
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by tekkit View Post
    Patrick how are you hosting if you cant even code mate.
    lol how are you hosting if you are leacing my release and can't even fix the simplest bug i implented morron 040
    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. 317 pi clicking buttons help
    By _Patrick_ in forum Help
    Replies: 12
    Last Post: 10-11-2013, 01:27 AM
  2. [PI]Clicking Buttons Help
    By Ired in forum Help
    Replies: 8
    Last Post: 05-13-2013, 12:06 AM
  3. Replies: 2
    Last Post: 04-23-2013, 08:23 PM
  4. [PI] Clicking buttons help!
    By Acquittal in forum Help
    Replies: 7
    Last Post: 07-09-2011, 11:45 AM
  5. [PI] Clicking Button
    By Nighel in forum Help
    Replies: 19
    Last Post: 06-23-2010, 08:04 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
  •