Jump to content

Kalamariss

Members
  • Posts

    5
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Kalamariss

  1. 19 hours ago, Kara said:

    Write the whole block. Wheres the if condition?

    if (targetChar == null || !(targetChar instanceof Player))
    				{
    					activeChar.sendPacket(SystemMessageId.TARGET_IS_INCORRECT); // incorrect target!
    					return false;
    				}
    				Player targetPlayer = (Player) targetChar;
    				
    				byte lvl = Byte.parseByte(val);
    				if (lvl >= 1 && lvl <= Experience.MAX_LEVEL)
    				{
    					long pXp = targetPlayer.getExp();
    					long tXp = Experience.LEVEL[lvl];
    					
    					if (pXp > tXp)
    						targetPlayer.removeExpAndSp(pXp - tXp, 0);
    					else if (pXp < tXp)
    						targetPlayer.addExpAndSp(tXp - pXp, 0);
    				}
    				else
    				{
    					activeChar.sendMessage("You must specify level between 1 and " + Experience.MAX_LEVEL + ".");
    					return false;
    				}
    			}
    			catch (NumberFormatException e)
    			{
    				activeChar.sendMessage("You must specify level between 1 and " + Experience.MAX_LEVEL + ".");
    				return false;
    			}

     

    the message i get You must specify level between 1 and " + Experience.MAX_LEVEL....it sends me to Experience.java but i have it at 90 levels idk why it says 81

  2. 40 minutes ago, Kara said:

    You receive in game message or on console? Print it here or search it in source.

    else
    				{
    					activeChar.sendMessage("You must specify level between 1 and " + Experience.MAX_LEVEL + ".");
    					return false;
    				}
    			}
    			catch (NumberFormatException e)
    			{
    				activeChar.sendMessage("You must specify level between 1 and " + Experience.MAX_LEVEL + ".");
    				return false;
    			}

    Nothing in console

    Screenshot_2.png

  3.  Hello,

    I have a problem in acis pack i'm trying to make level more than 80 and im getting message that the levels are from 1 - 81 for 100% xp bar. 

    is there anything else?

    i have edited the Expirience.java  

            4200000000L, // level 80
    		6299994999L,
    		10499905559L,
    		16800005559L,
    		27299995559L,
    		44100005559L, // level 85
    		71400000000L,
    		115500000000L,
    		186900000000L,
    		302400000000L,
    		489300000000L,// level 90
    		791700000000L
    	};
    	
    	public final static byte MAX_LEVEL = 90;	
    }

    and the base classes 1 by 1

    	<class id="109" parentId="37">
    		<set name="className" val="Ghost Sentinel" />
    		<set name="raceId" val="2" />
    		<set name="str" val="41" />
    		<set name="con" val="32" />
    		<set name="dex" val="34" />
    		<set name="int" val="25" />
    		<set name="wit" val="12" />
    		<set name="men" val="26" />
    		<set name="pAtk" val="4" />
    		<set name="pDef" val="80" />
    		<set name="mAtk" val="6" />
    		<set name="mDef" val="41" />
    		<set name="runSpd" val="122" />
    		<set name="walkSpd" val="85" />
    		<set name="swimSpd" val="50" />
    		<set name="spawnX" val="28377" />
    		<set name="spawnY" val="10916" />
    		<set name="spawnZ" val="-4224" />
    		<set name="radius" val="7.5" />
    		<set name="radiusFemale" val="7" />
    		<set name="height" val="24" />
    		<set name="heightFemale" val="23.5" />
    		<set name="baseLvl" val="76" />
    		<set name="hpTable" val="80;91.83;103.79;115.88;128.1;140.45;152.93;165.54;178.28;191.15;204.15;217.28;230.54;243.93;257.45;271.1;284.88;298.79;312.83;327;354.5;382.25;410.25;438.5;467;495.75;524.75;554;583.5;613.25;643.25;673.5;704;734.75;765.75;797;828.5;860.25;892.25;924.5;966.1;1008.02;1050.26;1092.82;1135.7;1178.9;1222.42;1266.26;1310.42;1354.9;1399.7;1444.82;1490.26;1536.02;1582.1;1628.5;1675.22;1722.26;1769.62;1817.3;1865.3;1913.62;1962.26;2011.22;2060.5;2110.1;2160.02;2210.26;2260.82;2311.7;2362.9;2414.42;2466.26;2518.42;2570.9;2623.7;2676.82;2730.26;2784.02;2838.1;2938.1;3038.1;3138.1;3238.1;3338.1;3438.1;3538.1;3638.1;3738.1;3838.1;3938.1" />
    		<set name="mpTable" val="30;35.46;40.98;46.56;52.2;57.9;63.66;69.48;75.36;81.3;87.3;93.36;99.48;105.66;111.9;118.2;124.56;130.98;137.46;144;153.9;163.89;173.97;184.14;194.4;204.75;215.19;225.72;236.34;247.05;257.85;268.74;279.72;290.79;301.95;313.2;324.54;335.97;347.49;359.1;378.6;398.25;418.05;438;458.1;478.35;498.75;519.3;540;560.85;581.85;603;624.3;645.75;667.35;689.1;711;733.05;755.25;777.6;800.1;822.75;845.55;868.5;891.6;914.85;938.25;961.8;985.5;1009.35;1033.35;1057.5;1081.8;1106.25;1130.85;1155.6;1180.5;1205.55;1230.75;1256.1;1356.1;1456.1;1556.1;1656.1;1756.1;1856.1;1956.1;2056.1;2156.1;2256.1;2356.1" />
    		<set name="cpTable" val="32;36.732;41.516;46.352;51.24;56.18;61.172;66.216;71.312;76.46;81.66;86.912;92.216;97.572;102.98;108.44;113.952;119.516;125.132;130.8;141.8;152.9;164.1;175.4;186.8;198.3;209.9;221.6;233.4;245.3;257.3;269.4;281.6;293.9;306.3;318.8;331.4;344.1;356.9;369.8;386.44;403.208;420.104;437.128;454.28;471.56;488.968;506.504;524.168;541.96;559.88;577.928;596.104;614.408;632.84;651.4;670.088;688.904;707.848;726.92;746.12;765.448;784.904;804.488;824.2;844.04;864.008;884.104;904.328;924.68;945.16;965.768;986.504;1007.368;1028.36;1049.48;1070.728;1092.104;1113.608;1135.24;1235.24;1335.24;1435.24;1535.24;1635.24;1735.24;1835.24;1935.24;2035.24;2135.24;2235.24" />
    		

     

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock