Thread: Lunar sideinterface help

Results 1 to 7 of 7
  1. #1 Lunar sideinterface help 
    Registered Member
    Join Date
    Apr 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    1
    Rep Power
    8
    Hey members of Rune-Server,

    So after minutes of figuring why the lunar spells interface would show an empty interface I'd thought I go and check the rsinterface class and see find out the real ID.

    So I went there and I found this:
    Spoiler for code:
    public static void constructLunar(){
    RSInterface Interface = addInterface(29999);
    Interface.totalChildren(70);
    setBounds(30000, 11, 10, 0, Interface);
    setBounds(30017, 40, 9, 1, Interface);
    setBounds(30025, 71, 12, 2, Interface);
    setBounds(30032, 103, 10, 3, Interface);
    setBounds(30040, 135, 12, 4, Interface);
    setBounds(30048, 165, 10, 5, Interface);
    setBounds(30056, 8, 38, 6, Interface);
    setBounds(30064, 39, 39, 7, Interface);
    setBounds(30075, 71, 39, 8, Interface);
    setBounds(30083, 103, 39, 9, Interface);
    setBounds(30091, 135, 39, 10, Interface);
    setBounds(30099, 165, 37, 11, Interface);
    setBounds(30106, 12, 68, 12, Interface);
    setBounds(30114, 42, 68, 13, Interface);
    setBounds(30122, 71, 68, 14, Interface);
    setBounds(30130, 103, 68, 15, Interface);
    setBounds(30138, 135, 68, 16, Interface);
    setBounds(30146, 165, 68, 17, Interface);
    setBounds(30154, 14, 97, 18, Interface);
    setBounds(30162, 42, 97, 19, Interface);
    setBounds(30170, 71, 97, 20, Interface);
    setBounds(30178, 101, 97, 21, Interface);
    setBounds(30186, 135, 98, 22, Interface);
    setBounds(30194, 168, 98, 23, Interface);
    setBounds(30202, 11, 125, 24, Interface);
    setBounds(30210, 42, 124, 25, Interface);
    setBounds(30218, 74, 125, 26, Interface);
    setBounds(30226, 103, 125, 27, Interface);
    setBounds(30234, 135, 125, 28, Interface);
    setBounds(30242, 164, 126, 29, Interface);
    setBounds(30250, 10, 155, 30, Interface);
    setBounds(30258, 42, 155, 31, Interface);
    setBounds(30266, 71, 155, 32, Interface);
    setBounds(30274, 103, 155, 33, Interface);
    setBounds(30282, 136, 155, 34, Interface);
    setBounds(30290, 165, 155, 35, Interface);
    setBounds(30298, 13, 185, 36, Interface);
    setBounds(30306, 42, 185, 37, Interface);
    setBounds(30314, 71, 184, 38, Interface);
    setBounds(30322, 104, 184, 39, Interface);
    setBounds(30001, 6, 184, 40, Interface);//hover
    setBounds(30018, 5, 176, 41, Interface);//hover
    setBounds(30026, 5, 176, 42, Interface);//hover
    setBounds(30033, 5, 163, 43, Interface);//hover
    setBounds(30041, 5, 176, 44, Interface);//hover
    setBounds(30049, 5, 176, 45, Interface);//hover
    setBounds(30057, 5, 176, 46, Interface);//hover
    setBounds(30065, 5, 176, 47, Interface);//hover
    setBounds(30076, 5, 163, 48, Interface);//hover
    setBounds(30084, 5, 176, 49, Interface);//hover
    setBounds(30092, 5, 176, 50, Interface);//hover
    setBounds(30100, 5, 176, 51, Interface);//hover
    setBounds(30107, 5, 176, 52, Interface);//hover
    setBounds(30115, 5, 163, 53, Interface);//hover
    setBounds(30123, 5, 176, 54, Interface);//hover
    setBounds(30131, 5, 163, 55, Interface);//hover
    setBounds(30139, 5, 163, 56, Interface);//hover
    setBounds(30147, 5, 163, 57, Interface);//hover
    setBounds(30155, 5, 176, 58, Interface);//hover
    setBounds(30163, 5, 176, 59, Interface);//hover
    setBounds(30171, 5, 176, 60, Interface);//hover
    setBounds(30179, 5, 163, 61, Interface);//hover
    setBounds(30187, 5, 176, 62, Interface);//hover
    setBounds(30195, 5, 149, 63, Interface);//hover
    setBounds(30203, 5, 176, 64, Interface);//hover
    setBounds(30211, 5, 163, 65, Interface);//hover
    setBounds(30219, 5, 163, 66, Interface);//hover
    setBounds(30227, 5, 176, 67, Interface);//hover
    setBounds(30235, 5, 149, 68, Interface);//hover
    setBounds(30243, 5, 176, 69, Interface);//hover
    /*
    setBounds(30251, 5, 5, 70, Interface);//hover
    setBounds(30259, 5, 5, 71, Interface);//hover
    setBounds(30267, 5, 5, 72, Interface);//hover
    setBounds(30275, 5, 5, 73, Interface);//hover
    setBounds(30283, 5, 5, 74, Interface);//hover
    setBounds(30291, 5, 5, 75, Interface);//hover
    setBounds(30299, 5, 5, 76, Interface);//hover
    setBounds(30307, 5, 5, 77, Interface);//hover
    setBounds(30323, 5, 5, 78, Interface);//hover
    setBounds(30315, 5, 5, 79, Interface);//hover*/
    }


    I noticed the ID's where different so I changed the ID in action handler to this:

    Code:
    case 410:
    			if(c.playerMagicBook == 0 && c.playerLevel[1] >= 1) {
    				c.playerMagicBook = 2;
    				c.startAnimation(645);
    				c.setSidebarInterface(6, 29999);
    				c.sendMessage("Lunar spells activated!");
    				c.getPA().resetAutocast();
    			} else {
    				c.startAnimation(645);
    				c.setSidebarInterface(6, 1151); //modern
    				c.playerMagicBook = 0;
    				c.sendMessage("You feel a strange drain upon your memory...");
    				c.autocastId = -1;
    				c.getPA().resetAutocast();
    			}	
    		break;
    Now my problem is that when I click the Lunar altar it would completely crash my client.

    When it does crash, I get these errors on the console:


    Anyone got any idea how to fix this? It's been forever and my players really would like some Lunar spells.
    Reply With Quote  
     

  2. #2  
    Go Big or Go Home

    Join Date
    Oct 2011
    Age
    26
    Posts
    1,108
    Thanks given
    266
    Thanks received
    142
    Rep Power
    6
    Im guessing you dont have the sprites in your cache
    Spoiler for I Respect:
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    1
    Rep Power
    8
    Ah, you guys are right! Would you guys happen to have the sprites so I can place it on to my cache please?

    Edit:

    My friend had given me his sprites, I places them under my interfaces folder in my cache. The problem is still happening though. I think my rsinterface class is wrong or not fully added properly. Could someone please have a look? I'd appreciate it!
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    1
    Rep Power
    8
    Bump - anyone please?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    1
    Rep Power
    8
    Someone must have a fix? I've looked everywhere!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2012
    Posts
    93
    Thanks given
    0
    Thanks received
    8
    Rep Power
    23
    same boat as you mate ill bump you so someone can hopefully help you.
    [CENTER]
    LOL
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    1
    Rep Power
    8
    I fixed mine.
    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 Help [PI]
    By squirt irl in forum Help
    Replies: 3
    Last Post: 02-02-2012, 07:52 PM
  2. [PI] Lunar
    By Bells in forum Requests
    Replies: 3
    Last Post: 01-17-2012, 11:19 PM
  3. Replies: 1
    Last Post: 09-23-2011, 01:51 PM
  4. [PI] Lunar
    By hellp45 in forum Help
    Replies: 5
    Last Post: 10-19-2010, 11:30 PM
  5. Lunar
    By Aeterna in forum Requests
    Replies: 3
    Last Post: 10-08-2009, 08:37 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
  •