Thread: PI wild level.

Results 1 to 9 of 9
  1. #1 PI wild level. 
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    I got something with my wild levels it just sais 100000000000000000000.... And i dont know what to do.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Mar 2015
    Posts
    456
    Thanks given
    45
    Thanks received
    49
    Rep Power
    58
    Show us the method that handles that sprite and text.
    Reply With Quote  
     

  3. #3  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by pariswitlove View Post
    Show us the method that handles that sprite and text.
    uhm sorry dont knowany client where it can be?
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Mar 2015
    Posts
    456
    Thanks given
    45
    Thanks received
    49
    Rep Power
    58
    Quote Originally Posted by Real Slim View Post
    uhm sorry dont knowany client where it can be?
    I don't know exactly where it is at, but you can check your cache. Your cache will then lead you to the loading of the sprite. The sprite will lead you to the method .
    Reply With Quote  
     

  5. #5  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by pariswitlove View Post
    I don't know exactly where it is at, but you can check your cache. Your cache will then lead you to the loading of the sprite. The sprite will lead you to the method .
    Code:
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) 
    
    import java.util.Random;
    
    public final class TextDrawingArea extends DrawingArea {
    
            public TextDrawingArea(boolean flag, String s, StreamLoader streamLoader) {
            try {
            int length = (s.equals("hit_full") || s.equals("critical_full")) ? 58 : 256;
            aByteArrayArray1491 = new byte[length][];
            anIntArray1492 = new int[length];
            anIntArray1493 = new int[length];
            anIntArray1494 = new int[length];
            anIntArray1495 = new int[length];
            anIntArray1496 = new int[length];
            aRandom1498 = new Random();
            aBoolean1499 = false;
            Stream stream = new Stream(streamLoader.getDataForName(s + ".dat"));
            Stream stream_1 = new Stream(streamLoader.getDataForName("index.dat"));
            stream_1.currentOffset = stream.readUnsignedWord() + 4;
            int k = stream_1.readUnsignedByte();
            if(k > 0)
                    stream_1.currentOffset += 3 * (k - 1);
            for(int l = 0; l < length; l++) {
                    anIntArray1494[l] = stream_1.readUnsignedByte();
                    anIntArray1495[l] = stream_1.readUnsignedByte();
                    int i1 = anIntArray1492[l] = stream_1.readUnsignedWord();
                    int j1 = anIntArray1493[l] = stream_1.readUnsignedWord();
                    int k1 = stream_1.readUnsignedByte();
                    int l1 = i1 * j1;
                    aByteArrayArray1491[l] = new byte[l1];
                    if(k1 == 0) {
                            for(int i2 = 0; i2 < l1; i2++)
                                    aByteArrayArray1491[l][i2] = stream.readSignedByte();
    
                            } else if(k1 == 1) {
                                    for(int j2 = 0; j2 < i1; j2++) {
                                            for(int l2 = 0; l2 < j1; l2++)
                                            aByteArrayArray1491[l][j2 + l2 * i1] = stream.readSignedByte();
                                    }
                            }
                            if(j1 > anInt1497 && l < 128)
                                    anInt1497 = j1;
                            anIntArray1494[l] = 1;
                            anIntArray1496[l] = i1 + 2;
                            int k2 = 0;
                            for(int i3 = j1 / 7; i3 < j1; i3++)
                                    k2 += aByteArrayArray1491[l][i3 * i1];
                            if(k2 <= j1 / 7) {
                                    anIntArray1496[l]--;
                                    anIntArray1494[l] = 0;
                            }
                            k2 = 0;
                            for(int j3 = j1 / 7; j3 < j1; j3++)
                                    k2 += aByteArrayArray1491[l][(i1 - 1) + j3 * i1];
                            if(k2 <= j1 / 7)
                                    anIntArray1496[l]--;
                    }
                    if(flag) {
                            anIntArray1496[32] = anIntArray1496[73];
                    } else {
                            anIntArray1496[32] = anIntArray1496[105];
                    }
            } catch (Exception _ex) {}
            }
    
    	public void method380(String s, int i, int j, int k) {
    		method385(j, s, k, i - method384(s));
    	}
    
    	public void drawText(int i, String s, int k, int l) {
    		method385(i, s, k, l - method384(s) / 2);
    	}
    
    	public void method382(int i, int j, String s, int l, boolean flag) {
    		method389(flag, j - getTextWidth(s) / 2, i, s, l);
    	}
    
    	public void drawChatInput(int i, int j, String s, int l, boolean flag) {
    		method389(flag, j, i, s, l);
    	}
    
    	public int getTextWidth(String s) {
    		if(s == null)
    			return 0;
    		int j = 0;
    		for(int k = 0; k < s.length(); k++)
    			if(s.charAt(k) == '@' && k + 4 < s.length() && s.charAt(k + 4) == '@')
    				k += 4;
    			else
    				j += anIntArray1496[s.charAt(k)];
    		return j;
    	}
    
    	public int method384(String s) {
    		if(s == null)
    			return 0;
    		int j = 0;
    		for(int k = 0; k < s.length(); k++)
    			j += anIntArray1496[s.charAt(k)];
    		return j;
    	}
    
    	public void method385(int i, String s, int j, int l) {
    		if(s == null)
    			return;
    		j -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++) {
    			char c = s.charAt(i1);
    			if(c != ' ')
    				method392(aByteArrayArray1491[c], l + anIntArray1494[c], j + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], i);
    			l += anIntArray1496[c];
    		}
    	}
    
    	public void method386(int i, String s, int j, int k, int l) {
    		if(s == null)
    			return;
    		j -= method384(s) / 2;
    		l -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++) {
    			char c = s.charAt(i1);
    			if(c != ' ')
    				method392(aByteArrayArray1491[c], j + anIntArray1494[c], l + anIntArray1495[c] + (int)(Math.sin((double)i1 / 2D + (double)k / 5D) * 5D), anIntArray1492[c], anIntArray1493[c], i);
    			j += anIntArray1496[c];
    		}
    	}
    
    	public void method387(int i, String s, int j, int k, int l) {
    		if(s == null)
    			return;
    		i -= method384(s) / 2;
    		k -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++) {
    			char c = s.charAt(i1);
    			if(c != ' ')
    				method392(aByteArrayArray1491[c], i + anIntArray1494[c] + (int)(Math.sin((double)i1 / 5D + (double)j / 5D) * 5D), k + anIntArray1495[c] + (int)(Math.sin((double)i1 / 3D + (double)j / 5D) * 5D), anIntArray1492[c], anIntArray1493[c], l);
    			i += anIntArray1496[c];
    		}
    	}
    
    	public void method388(int i, String s, int j, int k, int l, int i1) {
    		if(s == null)
    			return;
    		double d = 7D - (double)i / 8D;
    		if(d < 0.0D)
    			d = 0.0D;
    		l -= method384(s) / 2;
    		k -= anInt1497;
    		for(int k1 = 0; k1 < s.length(); k1++) {
    			char c = s.charAt(k1);
    			if(c != ' ')
    				method392(aByteArrayArray1491[c], l + anIntArray1494[c], k + anIntArray1495[c] + (int)(Math.sin((double)k1 / 1.5D + (double)j) * d), anIntArray1492[c], anIntArray1493[c], i1);
    			l += anIntArray1496[c];
    		}
    	}
    
    	public void method389(boolean flag1, int i, int j, String s, int k) {
    		aBoolean1499 = false;
    		int l = i;
    		if(s == null)
    			return;
    		k -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++)
    			if(s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
    				int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
    				if(j1 != -1)
    					j = j1;
    				i1 += 4;
    			} else {
    				char c = s.charAt(i1);
    				if(c != ' ') {
    					if(flag1)
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c] + 1, k + anIntArray1495[c] + 1, anIntArray1492[c], anIntArray1493[c], 0);
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c], k + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], j);
    				}
    				i += anIntArray1496[c];
    			}
    		if(aBoolean1499)
    			DrawingArea.method339(k + (int)((double)anInt1497 * 0.69999999999999996D), 0x800000, i - l, l);
    	}
    
    	public void method390(int i, int j, String s, int k, int i1) {
    		if(s == null)
    			return;
    		aRandom1498.setSeed(k);
    		int j1 = 192 + (aRandom1498.nextInt() & 0x1f);
    		i1 -= anInt1497;
    		for(int k1 = 0; k1 < s.length(); k1++)
    			if(s.charAt(k1) == '@' && k1 + 4 < s.length() && s.charAt(k1 + 4) == '@') {
    				int l1 = getColorByName(s.substring(k1 + 1, k1 + 4));
    				if(l1 != -1)
    					j = l1;
    				k1 += 4;
    			} else {
    				char c = s.charAt(k1);
    				if(c != ' ') {
    					method394(192, i + anIntArray1494[c] + 1, aByteArrayArray1491[c], anIntArray1492[c], i1 + anIntArray1495[c] + 1, anIntArray1493[c], 0);
    					method394(j1, i + anIntArray1494[c], aByteArrayArray1491[c], anIntArray1492[c], i1 + anIntArray1495[c], anIntArray1493[c], j);
    				}
    				i += anIntArray1496[c];
    				if((aRandom1498.nextInt() & 3) == 0)
    					i++;
    			}
    	}
    
    	private int getColorByName(String s) {
    		if(s.equals("369"))//color code, use as @###@
    			return 0x336699;//hex code
    		if(s.equals("mon"))
    			return 0x00ff80;
    		if(s.equals("pur"))
    			return 0x9900CC;
    		if(s.equals("red"))
    			return 0xff0000;
    		if(s.equals("gre"))
    			return 65280;
    		if(s.equals("blu"))
    			return 255;
    		if(s.equals("yel"))
    			return 0xffff00;
    		if(s.equals("cya"))
    			return 65535;
    		if(s.equals("mag"))
    			return 0xff00ff;
    		if(s.equals("whi"))
    			return 0xffffff;
    		if(s.equals("bla"))
    			return 0;
    		if(s.equals("lre"))
    			return 0xff9040;
    		if(s.equals("dre"))
    			return 0x800000;
    		if(s.equals("dbl"))
    			return 128;
    		if(s.equals("or1"))
    			return 0xffb000;
    		if(s.equals("or2"))
    			return 0xff7000;
    		if(s.equals("or3"))
    			return 0xff3000;
    		if(s.equals("gr1"))
    			return 0xc0ff00;
    		if(s.equals("gr2"))
    			return 0x80ff00;
    		if(s.equals("gr3"))
    			return 0x40ff00;
    		if(s.equals("str"))
    			aBoolean1499 = true;
    		if(s.equals("end"))
    			aBoolean1499 = false;
    		return -1;
    	}
    
    	private void method392(byte abyte0[], int i, int j, int k, int l, int i1) {
            int j1 = i + j * width;
            int k1 = width - k;
            int l1 = 0;
            int i2 = 0;
            if (j < topY) {
                int j2 = topY - j;
                l -= j2;
                j = topY;
                i2 += j2 * k;
                j1 += j2 * width;
            }
            if (j + l >= bottomY)
                l -= ((j + l) - bottomY);
            if (i < topX) {
                int k2 = topX - i;
                k -= k2;
                i = topX;
                i2 += k2;
                j1 += k2;
                l1 += k2;
                k1 += k2;
            }
            if (i + k >= bottomX) {
                int l2 = ((i + k) - bottomX);
                k -= l2;
                l1 += l2;
                k1 += l2;
            }
            if (!(k <= 0 || l <= 0)) {
                method393(pixels, abyte0, i1, i2, j1, k, l, k1, l1);
            }
        }
    
    	private void method393(int ai[], byte abyte0[], int i, int j, int k, int l, int i1, int j1, int k1) {
    		int l1 = -(l >> 2);
    		l = -(l & 3);
    		for(int i2 = -i1; i2 < 0; i2++) {
    			for(int j2 = l1; j2 < 0; j2++) {
    				if(abyte0[j++] != 0)
    					ai[k++] = i;
    				else
    					k++;
    				if(abyte0[j++] != 0)
    					ai[k++] = i;
    				else
    					k++;
    				if(abyte0[j++] != 0)
    					ai[k++] = i;
    				else
    					k++;
    				if(abyte0[j++] != 0)
    					ai[k++] = i;
    				else
    					k++;
    			}
    			for(int k2 = l; k2 < 0; k2++)
    			if(abyte0[j++] != 0)
    				ai[k++] = i;
    			else
    				k++;
    
    			k += j1;
    			j += k1;
    		}
    	}
    
    	private void method394(int i, int j, byte abyte0[], int k, int l, int i1,
                               int j1) {
            int k1 = j + l * width;
            int l1 = width - k;
            int i2 = 0;
            int j2 = 0;
            if (l < topY) {
                int k2 = topY - l;
                i1 -= k2;
                l = topY;
                j2 += k2 * k;
                k1 += k2 * width;
            }
            if (l + i1 >= bottomY)
                i1 -= ((l + i1) - bottomY);
            if (j < topX) {
                int l2 = topX - j;
                k -= l2;
                j = topX;
                j2 += l2;
                k1 += l2;
                i2 += l2;
                l1 += l2;
            }
            if (j + k >= bottomX) {
                int i3 = ((j + k) - bottomX);
                k -= i3;
                i2 += i3;
                l1 += i3;
            }
            if (k <= 0 || i1 <= 0)
                return;
            method395(abyte0, i1, k1, pixels, j2, k, i2, l1, j1, i);
        }
    
    	private void method395(byte abyte0[], int i, int j, int ai[], int l, int i1, int j1, int k1, int l1, int i2) {
    		l1 = ((l1 & 0xff00ff) * i2 & 0xff00ff00) + ((l1 & 0xff00) * i2 & 0xff0000) >> 8;
    		i2 = 256 - i2;
    		for(int j2 = -i; j2 < 0; j2++) {
    				for(int k2 = -i1; k2 < 0; k2++)
    					if(abyte0[l++] != 0) {
    						int l2 = ai[j];
    						ai[j++] = (((l2 & 0xff00ff) * i2 & 0xff00ff00) + ((l2 & 0xff00) * i2 & 0xff0000) >> 8) + l1;
    					} else {
    						j++;
    					}
    				j += k1;
    				l += j1;
    		}
    	}
    
    	public byte[][] aByteArrayArray1491;
    	public int[] anIntArray1492;
    	public int[] anIntArray1493;
    	public int[] anIntArray1494;
    	public int[] anIntArray1495;
    	public int[] anIntArray1496;
    	public int anInt1497;
    	public Random aRandom1498;
    	public boolean aBoolean1499;
    }
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Post your inWild method
    Reply With Quote  
     

  7. #7  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Code:
    if (inWild()) {
    			int modY = absY > 6400 ? absY - 6400 : absY;
    			wildLevel = (((modY - 3520) / 8) + 1);
    			getPA().walkableInterface(197);
    			if (Config.SINGLE_AND_MULTI_ZONES) {
    				if (inMulti()) {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				} else if (inFunPK()) {
    					getPA().sendFrame126("<col=255125000>Fun PK", 199);
    				} else {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				}
    			} else {
    				getPA().multiWay(-1);
    				getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    			}
    			getPA().showOption(3, 0, "Attack", 1);
    		} else if (inDuelArena() && !inBarbDef()) {
    			getPA().walkableInterface(201);
    			if (duelStatus == 5) {
    				getPA().showOption(3, 0, "Attack", 1);
    			} else {
    				getPA().showOption(3, 0, "Challenge", 1);
    			}
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Reread here something here is wrong can't see from the eye what im on my phone:

    Code:
    if (inWild()) {
    			int modY = absY > 6400 ? absY - 6400 : absY;
    			wildLevel = (((modY - 3520) / 8) + 1);
    			getPA().walkableInterface(197);
    			if (Config.SINGLE_AND_MULTI_ZONES) {
    				if (inMulti()) {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				} else if (inFunPK()) {
    					getPA().sendFrame126("<col=255125000>Fun PK", 199);
    				} else {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				}
    			} else {
    				getPA().multiWay(-1);
    				getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    			}
    Reply With Quote  
     

  9. #9  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by ipkmills View Post
    Reread here something here is wrong can't see from the eye what im on my phone:

    Code:
    if (inWild()) {
    			int modY = absY > 6400 ? absY - 6400 : absY;
    			wildLevel = (((modY - 3520) / 8) + 1);
    			getPA().walkableInterface(197);
    			if (Config.SINGLE_AND_MULTI_ZONES) {
    				if (inMulti()) {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				} else if (inFunPK()) {
    					getPA().sendFrame126("<col=255125000>Fun PK", 199);
    				} else {
    					getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    				}
    			} else {
    				getPA().multiWay(-1);
    				getPA().sendFrame126("<col=200000000>Level: " + wildLevel, 199);
    			}
    I did many times even used other server one... Still cant get it fixed!

    CLOSE FIXED~!
    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. [PI] Increase Level Wild
    By DragonBorn in forum Help
    Replies: 5
    Last Post: 09-01-2011, 11:25 PM
  2. [pi]help with pkbox wild level![help]
    By Kaiser Btw in forum Help
    Replies: 5
    Last Post: 02-21-2011, 02:33 PM
  3. How to change PI wild level to 99?
    By x dh x in forum Help
    Replies: 3
    Last Post: 11-26-2010, 07:04 PM
  4. Replies: 0
    Last Post: 11-14-2010, 10:52 PM
  5. [PI] Wild Level Help
    By popdudej2 in forum Help
    Replies: 4
    Last Post: 10-24-2010, 02:06 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
  •