Thread: Altar that switches to lunar AND ancient

Results 1 to 4 of 4
  1. #1 Altar that switches to lunar AND ancient 
    Registered Member Delx's Avatar
    Join Date
    Jul 2011
    Age
    28
    Posts
    321
    Thanks given
    100
    Thanks received
    21
    Rep Power
    11
    Hello Guys, I was wondering if there is any tutorial on how to make that when players click your ancient altar a interface pops up and lets them chose if they want to switch to ancient or lunar
    I was looking on google and this forum but didn't find a tutorial on it if someone could tell me a if there is a tutorial or even tell me how i can do it..

    would be great , thank you people xp

    There's no sense getting Pissed off,
    every time a bunch of idiots give you a hard time.
    In the end, "The universe tends to unfold as it should".

    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Not that hard to do... make a nice looking interface add it to cache.
    add something like this to rsinterface:


    public static void Prayerswitch(TextDrawingArea[] TDA){
    RSInterface rsinterface = addTabInterface(id);
    addSprite(id, 1, "Location in cache");
    Thats not all for client side but it is a start.

    Then for server side it would be something like this:
    clickobject.java:


    case objectid:
    c.getPA().showInterface(interfaceid);
    break;

    If u added buttons to the interface, Click one of the buttons and look the actionbutton id at the bottom goto clickingbuttons.java and do:

    case buttonid:
    c.prayerBook = 0;
    break;

    for another button:
    case buttonid:
    c.prayerBook = 1;
    break;

    Or make 1 button and add a } else { to the case with a boolean to check which prayerbook u has

    Again this is not all do the rest urself
    Iam not familiar with interfaces so forgive me if i did something wrong. ucan also try searching google for tutorials about adding interfaces.


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Delx's Avatar
    Join Date
    Jul 2011
    Age
    28
    Posts
    321
    Thanks given
    100
    Thanks received
    21
    Rep Power
    11
    This helped me, thanks

    There's no sense getting Pissed off,
    every time a bunch of idiots give you a hard time.
    In the end, "The universe tends to unfold as it should".

    Reply With Quote  
     

  5. #4  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Ur welcome.


    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. Lunar Altar Object id
    By Orel in forum Requests
    Replies: 2
    Last Post: 05-31-2012, 08:09 PM
  2. Lunar Altar?..
    By adxoxocrisp in forum Help
    Replies: 8
    Last Post: 05-23-2012, 11:22 PM
  3. [PI]Can't use d bones on ancient altar[PI]
    By Larabeast in forum Help
    Replies: 2
    Last Post: 07-08-2011, 02:06 AM
  4. Changing Lunar Altar [562]
    By Impervious in forum Help
    Replies: 0
    Last Post: 06-12-2011, 09:07 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •