Thread: [PI] Adding exp lock button server side [PI]

Results 1 to 5 of 5
  1. #1 [PI] Adding exp lock button server side [PI] 
    Registered Member
    Join Date
    Jul 2010
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I've added the exp lock button client side, however with PI I'm not entirely sure how to add it server side, I've messed around abit and doesn't seem to be working.

    I've looked on various sites, but can't find hep for PI base. Any help would be appreciated.

    Thanks.
    Reply With Quote  
     

  2. #2  
    Austin_
    Guest
    Hint: ActionsButtons
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    There's clickingbuttons and action handler...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2009
    Posts
    333
    Thanks given
    17
    Thanks received
    12
    Rep Power
    10
    Quote Originally Posted by Rapidshare View Post
    There's clickingbuttons and action handler...
    you get the case number, then make a method for your exp lock.

    So it'd look like this

    Code:
    case 69:
    expLockButton();
    break;
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    Try something like..

    Code:
            case clickingbuttonidhere:
    			if (c.expLock == false) {
    					c.expLock = true;
    			c.sendMessage("Your experience is now locked. You will not gain experience.");
    				} else {
    					c.expLock = false;
    			c.sendMessage("Your experience is now unlocked. You will gain experience.");
    			}
    			break;
    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
  •