SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Programming
Reload this Page [PI] Tiaras & configuration


[PI] Tiaras & configuration
Old
  (#1 (permalink))
phl0w is Offline
ARE YOU MAD?
image
 
phl0w's Avatar
 
Posts: 59
Cookies Given: 0
Cookies Received: 0
Time Online: 20 h 55 m
   
Default [PI] Tiaras & configuration - 01-24-2012, 12:13 PM

What you are adding:

to

WearItem.java:

Add:

Code:
		
if (c.wearSlot == c.playerHat) {
			c.getPA().setConfig(491, 0);
		}
		
		c.getPA().handleTiara();
PlayerAssistant.java:

Add:
Code:
    public void handleTiara() {
    	int[] tiaras = {5527, 5529, 5531, 5535, 5537, 5533, 5539, 5543, 5541, 5545, 5547};
    	if (c.wearId >= tiaras[0] && c.wearId <= tiaras[10]) {
    		for (int i = 0; i < tiaras.length; i++) {
    			if (c.wearId == tiaras[i]) {
    				int tempInt = 1;
    				int loc = i;
    				while (loc > 0) {
    					tempInt *= 2;
    					loc--;
    				}
    				c.getPA().setConfig(491, tempInt);
    			}
    		}
    	}
    }
If you do not have setConfig:
Code:
    public void setConfig(int id, int state) {
		c.outStream.createFrame(36);
		c.outStream.writeWordBigEndian(id);
		c.outStream.writeByte(state);
	}




~[email protected]
  
adsense code2.3
Closed Thread

Bookmarks

[PI] Tiaras & configuration

Programming




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
adsense2.6
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:59 PM.





Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.