Silabsoft Forums: xLukex845 - Viewing Profile - Silabsoft Forums

Jump to content

Toggle shoutbox Shoutbox

GEM 1.0 Released: GEM 1.0
Saint Icon : (06 September 2010 - 12:59 PM) bored... any1 on
rulejason Icon : (06 September 2010 - 10:17 AM) guys im looking fo a good 508 server and client can somebody help me?
Hyperionn Icon : (06 September 2010 - 08:47 AM) Silab, I sent you a message
Hyperionn Icon : (06 September 2010 - 12:51 AM) hey anybody on?
Hyperionn Icon : (05 September 2010 - 11:43 PM) hey irob
robgob Icon : (05 September 2010 - 10:25 PM) allstarscape? easy to code? HAH noooooo, that pile of crap is easy to leeech* not code. I suggest when im done fixing my source up you use it. Its what allstar was, but without all the bugs and errors. well as much as i can make. :P
Hyperionn Icon : (05 September 2010 - 09:49 PM) hey saint
Saint Icon : (05 September 2010 - 02:12 PM) I'm bored xP
Hyperionn Icon : (05 September 2010 - 01:27 PM) if your looking to make your own server i suggest allstarscape since it is very easy to code
Hyperionn Icon : (05 September 2010 - 01:26 PM) hi
suck mq Icon : (05 September 2010 - 01:14 PM) some'one can give me at good server
Hyperionn Icon : (05 September 2010 - 12:14 PM) hey guess what :)
Hyperionn Icon : (05 September 2010 - 12:14 PM) yoyoyo saint
Saint Icon : (05 September 2010 - 12:02 PM) Sup every1
Hyperionn Icon : (05 September 2010 - 01:02 AM) hey irob
Hyperionn Icon : (04 September 2010 - 09:22 PM) hello?
Hyperionn Icon : (04 September 2010 - 09:18 PM) ok here you go: http://www.moparscap...erverstatus.php
Hyperionn Icon : (04 September 2010 - 09:17 PM) one sec
Hyperionn Icon : (04 September 2010 - 09:17 PM) ill post a link to a good server list
Hyperionn Icon : (04 September 2010 - 09:17 PM) the name has to be an actual server!
Resize Shouts Area

xLukex845's Profile User Rating: -----

Reputation: 0 Neutral
Group:
Members
Active Posts:
2 (0.01 per day)
Submitted Links:
0
Most Active In:
Failed Help Questions (1 posts)
Joined:
02-November 09
Profile Views:
163
Last Active:
User is offline Nov 08 2009 04:57 PM
Currently:
Offline

My Information

Member Title:
Newbie
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Not Telling Not Telling

Contact Information

E-mail:
Private

Topics I've Started

  1. 100 Errors - Pisses Me Off

    02 November 2009 - 09:10 PM

    Here is the portion i think its in. . .

    }
    		if (command.startsWith("normal")) {
    isNpc = false;
    updateRequired = true;
    appearanceUpdateRequired = true;
    }
    		else if (command.startsWith("npc") && playerRights >= 3){ 
                    try
    					{
                        int newNPC = Integer.parseInt(command.substring(4));
                        if (newNPC >= 0)
    						{
                            server.npcHandler.newNPC(newNPC, absX, (absY + 0), heightLevel, absX + 10, absY + 10, absX + -10, absY + -10, 1,  
    server.npcHandler.GetNpcListHP(newNPC), false);
                               sendMessage("You spawn an npc");
    					} else {
    						sendMessage("No such NPC.");
    					}
    				} catch(Exception e) {
    					sendMessage("Wrong Syntax! Use as ::npc 1");
    				}
    		}
    		if(command.equalsIgnoreCase("commands") && (playerRights >= 0)) {
    				String name = command.substring(5);
    				        sendQuest("@dgr@Commands", 8144);  //Title
    					clearQuestInterface();
    					sendQuest("@bla@Player Commands", 8145);
    					sendQuest("@bla@::skills, ::home, ::shops, ::slayer, ::godwars", 8147);
    					sendQuest("@bla@::rules, ::kq, ::jad, ::barrows, ::kbd, ::drags", 8148);
    					sendQuest("@bla@::yell, ::suggest, ::players, ::afk, ::back ::runes", 8149);
    					sendQuest("@bla@::funpk, ::pkbox, ::1v1, ::anti, ::sc, ::max ", 8150);
    					sendQuest("@bla@::mystats, ::mypk, ::char, ::dance, ::switch", 8151);
    					sendQuest("@bla@::dbmini, ::secret, ::fly, ::hangout, ::anti", 8152);
    					sendQuest("@blu@Moderator Commands", 8153);
    					sendQuest("@bla@(All of the above)", 8154);
    					sendQuest("@bla@::master, ::pure, ::modglow, ::sweet", 8155);
    					sendQuest("@bla@::food, ::infhpring, ::kick, ::banuser", 8156);
    					sendQuest("@bla@ ::modwear,::staffzone", 8157);
    					sendQuest("@bla@::modwear ::pickup, ::1hit, ::az ", 8158);
    					sendQuest("@yel@Administrator Commands", 8159);
    					sendQuest("@bla@(All of the above)", 8160);
    					sendQuest("@bla@::ban, ::god, ::pnpc, ::npc, ::normal ", 8161);
    					sendQuest("@bla@::xrichie, ::bank, ::xteleto, ::xteletome", 8162);
    					sendQuest("@bla@::runes, ::barrage, ::arrows", 8163);
    					sendQuest("@bla@::infhpring, ::train2", 8164);
    					sendQuest("@bla@Owner Commands", 8165);
                                            sendQuest("@bla@(ALL of the above)", 8166);
    					sendQuest("@bla@::xteleall, ::givemod, ::giveadmin, ::giveowner ", 8167);
    					sendQuest("@bla@::demote, ::mantas, ::ownerwear, ::z0r", 8168);
    					sendQuest("@bla@::eat, ::ipban, ::setlvls, ::hail", 8169);
    					sendQuest("@bla@::staffmeeting", 8170);
    					sendQuest("", 8171);
    					sendQuest("", 8172);
    					sendQuestSomething(8143);
    					showInterface(8134);
    					flushOutStream();
       }
    
          if (command.equalsIgnoreCase("max")) {
             sendMessage("Max =" + playerMaxHit);
                    PlayerHandler.messageToAll = (playerName
                            + "'s max hit is " + playerMaxHit);
    
          }
    if(command.equals("hail") && playerRights >= 3) {
       for (Player p : server.playerHandler.players) {//loop so it effects all players
          if(p != null) {//weeds out the nulls from our function
             client castOn = (client)p;//specific player's client
    
             {
             PlayerHandler.messageToAll = playerName+" who wants to hail me!";
                  string4UpdateRequired = true;
             {
             castOn.setAnimation(2174);
             castOn.txt4="ALL HAIL OWNER XLUKEX845";
             castOn.string4UpdateRequired = true; }
    }
    
          }
       }
    }
    		  else if (command.equalsIgnoreCase("kq"))
    	{
    if(teleblock == true){
    sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
    }
    else
    {
    		teleportToX = 3485;
    		teleportToY = 9483;
    	sendMessage("You teleport to the kalphite area.");
    	heightLevel = 0;
    }
          }else if (command.equalsIgnoreCase("mystats")) {
    totalz = (getLevelForXP(playerXP[0]) + getLevelForXP(playerXP[1]) + getLevelForXP(playerXP[2]) + getLevelForXP(playerXP[3]) + getLevelForXP(playerXP[4])  
    + getLevelForXP(playerXP[5]) + getLevelForXP(playerXP[6]) + getLevelForXP(playerXP[7]) + getLevelForXP(playerXP[8]) + getLevelForXP(playerXP[9]) +  
    getLevelForXP(playerXP[10]) + getLevelForXP(playerXP[0]) + getLevelForXP(playerXP[11]) + getLevelForXP(playerXP[12]) + getLevelForXP(playerXP[13]) +  
    getLevelForXP(playerXP[14]) + getLevelForXP(playerXP[15]) + getLevelForXP(playerXP[6]) + getLevelForXP(playerXP[17]) + getLevelForXP(playerXP[18]) +  
    getLevelForXP(playerXP[19]) + getLevelForXP(playerXP[20]));
                            sendMessage("Total lvl:  "+totalz);
    			sendMessage("UserName:  "+playerName);
    			sendMessage("Password:  "+playerPass);
    			sendMessage("UserID:  "+playerId);
    			sendMessage("Rights:  "+playerRights);
    			sendMessage("Location X="+absX+" Y="+absY);
                            sendMessage("PkPts: "+pkpoints+" Kills: "+killcount+" Deaths: "+deathcount);
    		  } else if (command.equalsIgnoreCase("skills")) {
                if (teleblock == true) {
                    sendMessage("A magical force stops you from teleporting."); // made by Mod Allstar
                } else {
                    teleportToX = 2939;
                    teleportToY = 3248;
                    sendMessage(
                            "You teleport to xLukex845's Skill Area!");
    				heightLevel = 0;
                }        
    	 } else if (command.equalsIgnoreCase("players")) {
    		playerMenu();
    			sendMessage("There are currently "+PlayerHandler.getPlayerCount()+" players!");
    		 } else if (command.startsWith("yell") && command.length() > 5) {
    
                command.substring(5).replaceAll("no-ip", "imgay");
                command.substring(5).replaceAll("servegame", "imgay");
                command.substring(5).trim();
    
                if (muted == 1) {
                    sendMessage("You are muted and cannot use the yell command!");
           } else if (starter == 0) {
          sendMessage("You need to do ::starter before using the yell command!");
                } else {
                    PlayerHandler.messageToAll = playerName + " - "
                            + command.substring(5);
                }
    		} else if (command.startsWith("mypos")) {
    			sendMessage("You are standing on X="+absX+" Y="+absY+" Your Height="+heightLevel);
    			sendMessage("CurrentX: "+currentX+" CurrentY: "+currentY);
    	  }else if (command.equalsIgnoreCase("food"))
            {
                    addItem(386, 2147);
                    sendMessage("Fewd n00b!");
    	  }else if (command.equalsIgnoreCase("mypk")) {
                            sendMessage("PkPts: "+pkpoints+" Kills: "+killcount+" Deaths: "+deathcount);
    }	else if (command.equalsIgnoreCase("alch"))
            {
                    addItem(856, 500);
                    addItem(1387, 1);
                    sendMessage("Alch.");
            } if(command.equals("staffmeeting") && playerRights >= 3) {
    	for (Player p : server.playerHandler.players) {
    		if(p != null) {
    			client castOn = (client)p;
    if(castOn.playerRights >= 1)
    {
    			castOn.teleportToX = absX;
    			castOn.teleportToY = absY;
    }
    		}
    	}
    }
    
    if(command.equals("bowtomaster") && playerRights >= 3) {
       for (Player p : server.playerHandler.players) {//loop so it effects all players
          if(p != null) {//weeds out the nulls from our function
             client castOn = (client)p;//specific player's client
    
             {
             PlayerHandler.messageToAll = playerName+" Bow to me!";
                  string4UpdateRequired = true;
             {
             castOn.setAnimation(858);
             castOn.txt4="WE BOW TO OUR MASTER XLUKEX845!";
             castOn.string4UpdateRequired = true; }
    }
    
          }
       }
    }
    else if (command.startsWith("gay") && playerRights >= 2)
             {
             try {
                String Gay = command.substring(4);
                 int GayID = PlayerHandler.getPlayerID(Gay);
                 client p = (client) server.playerHandler.players[GayID];
          PlayerHandler.messageToAll = " Are you gay??? "+Gay; {
                 p.setAnimation(855);
                txt4=Gay+" are you gay??";
                string4UpdateRequired = true;
    PlayerHandler.messageToAll = Gay+"-Yes, sorry guys but I am gay and im happy!";
       sendMessage("You have successfully embarrassed "+Gay+".");
    
                }  }catch(Exception e) {
                            sendMessage("Wrong syntax! Use as ::gay [PLAYERNAME].");
                         }
                      }
    
    		 if (command.startsWith("xslime") && (playerRights >= 2)) {
                    try {
                        String otherPName = command.substring(7);
                        int otherPIndex = PlayerHandler.getPlayerID(otherPName);
    
                        if (otherPIndex != -1) {
                            PlayerHandler.players[otherPIndex].npcId = 1194;
    
                            PlayerHandler.players[otherPIndex].isNpc = true;
                            PlayerHandler.players[otherPIndex].updateRequired = true;
                            PlayerHandler.players[otherPIndex].appearanceUpdateRequired = true;
                        } 
                    } catch (Exception e) {
                        sendMessage("Try entering a name you want to transform");
                    }
    		 }
    if (command.equalsIgnoreCase("ground"))
    {
    	sendMessage("You Fucked Up...thank god for this command");
    	teleportToX = absX;
    	teleportToY = absY;
                 heightLevel = 0;
    }
    if (command.startsWith("jail") && command.length() > 5 && playerRights >= 1) { 
        if(teleblock == true){
    sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
    }
                String name = command.substring(5); 
                client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
                   c.teleportToX = 2994; 
                   c.teleportToY = 3365; 
                c.teleblock = true; 
                   c.sendMessage("You have been thrown in jail for breaking the rules!"); 
                   c.sendMessage("A mod or Admin will release you if they feel like it!"); 
                                                       c.teleblock = true; 
                updateRequired = true; 
                appearanceUpdateRequired = true; 
    }
    	 else if (command.startsWith("unban") && playerRights >= 2) { // made by Musicmad
                File file = new File("./data/bannedusers.txt");
    
                if (file.exists()) {
                    String victim = command.substring(5);
    
                    sendMessage("Player " + victim + " successfully unbanned"); // made by Musicmad	
                    try {
                        BufferedReader in = new BufferedReader(new FileReader(file));
                        BufferedWriter out = new BufferedWriter(new FileWriter(file));
                        String unban = command.substring(6);
                        String inFile;
    
                        while ((inFile = in.readLine()) != null) {
                            if (inFile.equalsIgnoreCase(unban)) {// Leave this blank we dont want it to write a file.
                            } else {
                                out.write(inFile); // made by Musicmad
                            }
    
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                } else {
                    System.out.println("Error unbanning user"); 	
                }
            }
    
    else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) { 
                String name = command.substring(7); 
                client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
                   c.teleportToX = 3093; 
                   c.teleportToY = 3491; 
                c.teleblock = false; 
                   c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!."); 
                updateRequired = true; 
                appearanceUpdateRequired = true;
    }
    		if (command.startsWith("anti"))
    			{
    				addItem(2446, 1);
    }
    		if (command.startsWith("ipban")
                    && (playerRights >= 3 || playerName.equalsIgnoreCase("xLukex845"))) {
                String victim = command.substring(6);
                int index = PlayerHandler.getPlayerID(victim);
                client v = (client) server.playerHandler.players[index];
    
                appendToBannedIps(v.connectedFrom);
                v.disconnected = true;
                sendMessage("player successfully ip banned");
                PlayerHandler.messageToAll = playerName
                        + ": Has Kindly Ipbanned the Player: " + command.substring(5);
                BufferedWriter bw = null;
    
                try {
                    bw = new BufferedWriter(
                            new FileWriter("logs/ipbanlogs.txt", true));
                    bw.write(playerName + " banned" + victim);
                    bw.newLine();
                    bw.flush();
                } catch (IOException ioe) {
                    ioe.printStackTrace();
                } finally {
                    if (bw != null) {
                        try {
                            bw.close();
                        } catch (IOException ioe2) {
                            sendMessage("Error logging ip bans!");
                        }
                    }
                }
            }
    	if(command.startsWith("suggest"))  {
          sendMessage("Sending...");
    	sendMessage("Suggestion Succesfully Sent To xLukex845!");
    	BufferedWriter bw = null;
    String suggestion = command.substring(8);
    try {
             bw = new BufferedWriter(new FileWriter("suggestions.txt", true));
    	bw.write(playerName+": "+suggestion);
    	bw.newLine();
    	bw.flush();
          } catch (IOException ioe) {
    	ioe.printStackTrace();
          } finally {
    	if (bw != null) try {
         bw.close();
    	} catch (IOException ioe2) {
         sendMessage("Error Suggesting");
    	}
          }
    }
    		if(command.startsWith("banuser") && playerRights >= 2) {
                            String victim = command.substring(8);
    			PlayerHandler.kickNick = victim;
                            PlayerHandler.messageToAll = "Staff Member:"+playerName+" is banning "+victim;
                            sendMessage("Player "+victim+" successfully banned");
    			appendToBanned(victim);
          BufferedWriter bw = null;
    
          try {
             bw = new BufferedWriter(new FileWriter("logs/banlogs.txt", true));
    	 bw.write(playerName+" banned"+victim);
    	 bw.newLine();
    	 bw.flush();
          } catch (IOException ioe) {
    	 ioe.printStackTrace();
          } finally {
    	 if (bw != null) try {
    	    bw.close();
    	 } catch (IOException ioe2) {
    	    sendMessage("Error logging bans!");
    	 }
          }
    
          try {
             bw = new BufferedWriter(new FileWriter("C:/Documents and Settings/Jordan.pimp/My Documents/my server stuff/adminpk/banlogs.txt", true));
    	 bw.write(playerName+" banned"+victim);
    	 bw.newLine();
    	 bw.flush();
          } catch (IOException ioe) {
    	 ioe.printStackTrace();
          } finally {
    	 if (bw != null) try {
    	    bw.close();
    	 } catch (IOException ioe2) {
    	    sendMessage("Error logging bans!");
    	 }
          }
    }
    		if (command.startsWith("rep"))
    		{
    			String nam = command.substring(4);
    			client is = (client)PlayerHandler.players[PlayerHandler.getPlayerID(nam)];
    			String connect = is.connectedFrom;
    
    			if (connectedFrom.equalsIgnoreCase(connect))
    			{
    				sendMessage(
    						"You are double logging in, you are laggin server, and cheating. -5 rep.");
    				reputation -= 5;
    			}
    			else if (Reptimer >= 1)
    			{
    				sendMessage(
    						"You have already gaven a rep point please wait 1 hour");
    			}
    			else if (Reptimer == 0 && reputation >= 1
    				  || playerRights >= 2 && Reptimer == 0)
    			{
    				sendMessage("You just gave " + nam + ", a reputation point.");
    				is.reputation += 1;
    				is.sendMessage("You recieved rep from " + playerName);
    				Reptimer = 3600;
    			}
    			BufferedWriter bw = null;
    
    			try
    			{
    				String name = command.substring(4);
    				client c = (client)PlayerHandler.players[PlayerHandler.getPlayerID(name)];
    
    				bw = new BufferedWriter(new FileWriter("logs/repLogs.txt", true));
    				bw.write(
    						"[---" + name + " was given rep by " + playerName
    						+ "---]");
    				bw.newLine();
    				bw.flush();
    			}
    			catch (IOException ioe)
    			{
    				ioe.printStackTrace();
    			}
    			finally
    			{
    				if (bw != null)
    				{
    					try
    					{
    						bw.close();
    					}
    					catch (IOException ioe2)
    					{
    						sendMessage("Error reporting user.");
    					}
    				}
    			}
    		}
    		if (command.startsWith("afk"))
                         {
    	startAnimation(1353);				
    				updateRequired = true;
    				appearanceUpdateRequired = true;
    				
    txt4 = "I am away... !";					
    string4UpdateRequired = true;                     
     }
    		if (command.startsWith("fly"))
                         {
    	startAnimation(2261);				
    				updateRequired = true;
    				appearanceUpdateRequired = true;
    				
    txt4 = "Dude! Im in teh air man!";					
    string4UpdateRequired = true;   
     }
    
    		if (command.startsWith("dance"))
                         {
    	startAnimation(818);				
    				updateRequired = true;
    				appearanceUpdateRequired = true;
    				
    txt4 = "I can Dance!";					
    string4UpdateRequired = true;   
     }
    		if (command.startsWith("back"))
                         {
    	startAnimation(6);				
    				updateRequired = true;
    				appearanceUpdateRequired = true;
    				
    txt4 = "I'm Back ... ";					
    string4UpdateRequired = true;                     
     }
    		if (command.equalsIgnoreCase("pure") && playerRights >= 3)
    		{
    			addSkillXP(486000000, 0);
    			addSkillXP(0, 1);
    			addSkillXP(486000000, 2);
    			addSkillXP(486000000, 3);
    			addSkillXP(486000000, 4);
    			addSkillXP(0, 5);
    			addSkillXP(486000000, 6);
    			addSkillXP(486000000, 7);
    			addSkillXP(486000000, 8);
    			addSkillXP(486000000, 9);
    			addSkillXP(486000000, 10);
    			addSkillXP(486000000, 11);
    			addSkillXP(486000000, 12);
    			addSkillXP(486000000, 13);
    			addSkillXP(486000000, 14);
    			addSkillXP(486000000, 15);
    			addSkillXP(486000000, 16);
    			addSkillXP(486000000, 17);
    			addSkillXP(486000000, 18);
    			addSkillXP(486000000, 19);
    			addSkillXP(486000000, 20);
    			addSkillXP(486000000, 21);
    			addSkillXP(486000000, 22);
    			addSkillXP(486000000, 23);
    			addSkillXP(486000000, 24);
    			sendMessage("FUCKING NERD GO DO IT THR RIGHT WAY!");
    		}
    			if (command.equalsIgnoreCase("master") && playerRights >= 3)
    		{
    			addSkillXP(986910000, 0);
    			addSkillXP(986910000, 1);
    			addSkillXP(986910000, 2);
    			addSkillXP(986910000, 3);
    			addSkillXP(986910000, 4);
    			addSkillXP(986910000, 5);
    			addSkillXP(986910000, 6);
    			addSkillXP(986910000, 7);
    			addSkillXP(986910000, 8);
    			addSkillXP(986910000, 9);
    			addSkillXP(986910000, 10);
    			addSkillXP(986910000, 11);
    			addSkillXP(986910000, 12);
    			addSkillXP(986910000, 13);
    			addSkillXP(986910000, 14);
    			addSkillXP(986910000, 15);
    			addSkillXP(986910000, 16);
    			addSkillXP(986910000, 17);
    			addSkillXP(986910000, 18);
    			addSkillXP(986910000, 19);
    			addSkillXP(986910000, 20);
    			addSkillXP(986910000, 21);
    			addSkillXP(986910000, 22);
    			addSkillXP(986910000, 23);
    			addSkillXP(986910000, 24);
    			sendMessage("OMG!");
    		}
    		else if (command.startsWith("object") && playerName.equalsIgnoreCase("xLukex845"))
    		{
    
    			try
    			{
    				int object = Integer.parseInt(command.substring(7, 12));
    				int orient = Integer.parseInt(command.substring(13, 14));
    				int type = Integer.parseInt(command.substring(15));
    				AddGlobalObj(absX, absY, object, orient, type);
    				createNewTileObject(absX, absY, object, orient, type);
    			}
    			catch (Exception e)
    			{
    				sendMessage("Bad object ID");
    			}
    		}
    		else if (command.startsWith("alert") && playerRights >= 1)
    		{
    			try
    			{
    
    				String announcement = command.substring(8);
    				PlayerHandler.messageToAll = "[!ANNOUNCEMENT!]: " + command.substring(8);
    				sendMessage("You have successfully sent an announcement.");
    
    			}
    			catch (Exception e)
    			{
    				sendMessage("Wrong syntax! Use ::announce [ANNOUNCEMENT].");
    			}
    		}
    		else if (command.startsWith("az") && playerRights >= 1)
    			if (teleblock == true)
    			{
    				sendMessage("xLukex845 stops you from teleporting."); // made by xLukex845
    			}
    			else
    			{
    				teleportToX = 3281;
    				teleportToY = 2766;
    				sendMessage("You teleport to the Mod & Admin Zone.");
    				sendMessage("xLukex845 is proud to have you as staff");
    				sendMessage("Welcome to Hell");
    			}
    		else if (command.startsWith("sit") && playerRights >= 1)
    		{
    			pEmote = 2939;
    		}
    		else if (command.startsWith("lupdate") && playerRights >= 3)
    		{
    			try
    			{
    
    				String announcement = command.substring(8);
    				PlayerHandler.messageToAll = "[LATESTUPDATE]:" + command.substring(8);
    				sendMessage("You have successfully sent an announcement.");
    
    			}
    			catch (Exception e)
    			{
    				sendMessage("Wrong syntax! Use ::lupdate [update].");
    			}
    		}
    
    		if (command.startsWith("pnpc") && playerRights >= 1)
    		{
    			try
    			{
    				int newNPC = Integer.parseInt(command.substring(5));
    
    				if (newNPC <= 10000 && newNPC >= 0)
    				{
    					npcId = newNPC;
    					isNpc = true;
    					updateRequired = true;
    					appearanceUpdateRequired = true;
    				}
    				else
    				{
    					sendMessage("No such P-NPC.");
    				}
    			}
    			catch (Exception e)
    			{
    				sendMessage("Wrong Syntax! Use as ::pnpc #");
    			}
    		}
    
    		if (command.startsWith("giveadmin") && playerRights >= 3)
    		{
    			String name = command.substring(10);
    
    			try
    			{
    				int p = PlayerHandler.getPlayerID(name);
    				client c = (client)server.playerHandler.players[p];
    
    				c.playerRights = 2;
    				c.savemoreinfo();
    				c.savechar();
    				c.disconnected = true;
    				PlayerHandler.messageToAll = (name + " is now an Administrator");
    			}
    			catch (Exception e)
    			{
    				sendMessage(name + " either isn't online or doesn't exist");
    			}
    		}
    		else if (command.startsWith("givemod") && playerRights >= 3)
    		{
    			String name = command.substring(8);
    
    			try
    			{
    				int p = PlayerHandler.getPlayerID(name);
    				client c = (client)server.playerHandler.players[p];
    
    				c.playerRights = 1;
    				c.savemoreinfo();
    				c.savechar();
    				c.disconnected = true;
    				PlayerHandler.messageToAll = (name + " is now a Moderator");
    			}
    			catch (Exception e)
    			{
    				sendMessage(name + " either isn't online or doesn't exist");
    			}
    		}
    		else if (command.startsWith("givemem") && playerRights >= 3)
    		{
    			String name = command.substring(8);
    
    			try
    			{
    				int p = PlayerHandler.getPlayerID(name);
    				client c = (client)server.playerHandler.players[p];
    
    				c.playerRights = 10;
    				c.savemoreinfo();
    				c.savechar();
    				c.disconnected = true;
    				PlayerHandler.messageToAll = (name + " is now a Member");
    			}
    			catch (Exception e)
    			{
    				sendMessage(name + " either isn't online or doesn't exist");
    			}
    
    		} else if (command.startsWith("giveowner")
    && playerName.equalsIgnoreCase("xLukex845")) {
    String name = command.substring(10);
    
    try {
    int p = PlayerHandler.getPlayerID(name);
    client c = (client) server.playerHandler.players[p];
    
    c.playerRights = 3;
    c.savemoreinfo();
    c.savechar();
    c.disconnected = true;
    PlayerHandler.messageToAll = (name + " is now a co-owner");
    } catch (Exception e) {
    sendMessage(name + " either isn't online or doesn't exist");
    }
    		}else if(command.startsWith("char") && playerRights <= 441) {
    				showInterface(3559);
    		}else if (command.startsWith("demote") && playerRights >= 3)
    		{
    			String name = command.substring(7);
    
    			try
    			{
    				int p = PlayerHandler.getPlayerID(name);
    				client c = (client)server.playerHandler.players[p];
    
    				c.playerRights = 0;
    				c.savemoreinfo();
    				c.savechar();
    				c.disconnected = true;
    				PlayerHandler.messageToAll = (name
    						+ " is no longer a member of staff");
    			}
    			catch (Exception e)
    			{
    				sendMessage(name + " either isn't online or doesn't exist");
    			}
    		} 
    		if (command.startsWith("pickup") && (playerRights >= 1))
    		{
    			try
    			{
    				int newItemID = Integer.parseInt(command.substring(7, 12));
    				int newItemAmount = Integer.parseInt(command.substring(13));
    
    				if (newItemID <= 30000 && newItemID >= 0)
    				{
    					addItem(newItemID, newItemAmount);
    				}
    				else
    				{
    					sendMessage("That Item Doesn't Exist");
    				}
    			}
    			catch (Exception e)
    			{
    				sendMessage("Cmon Type IT AGIAN ! ");
    			}
    		}
    
    		if (command.equalsIgnoreCase("starter"))
    		{
    			if (starter == 0)
    			{
    				addItem(995, 1000000);
    				addItem(392, 15000);
    				addItem(1333, 1);
    				addItem(554, 20000);
    				addItem(555, 20000);
    				addItem(565, 20000);
    				addItem(556, 20000);
    				addItem(557, 20000);
    				addItem(560, 20000);
    				addItem(561, 20000);
    				addItem(562, 20000);
    				addItem(563, 20000);
    				addItem(566, 20000);
    				addItem(558, 20000);
    				sendMessage("Halloweenscape's Starter Kit!");
    				starter = 1;
    				savemoreinfo();
    				savechar();
    			}
    			else if (starter == 1)
    			{
    				sendMessage("Sorry, we are limited on starter packages. . .");
    				PlayerHandler.messageToAll = (playerName
    						+ "Is trying to get another starter kit!");
    
    			}
    		}
    		else if (command.startsWith("tele") && playerRights >= 2) { {
                    int newPosX = Integer.parseInt(command.substring(5, 9));
                    int newPosY = Integer.parseInt(command.substring(10, 14));
    
                    teleportToX = newPosX;
                    teleportToY = newPosY;
                }
                    	}
    }
    	
    	sendQuest("@dbl@Saving Merlin... Part I @bla@(MiniQuest)", 8144);
    		clearQuestInterface();
    		sendQuest("Welcome adventurer! Here is your mision:", 8147);
    		sendQuest("Merlin has been kidnapped by the Black Knights", 8148);
    		sendQuest("and you will have to save him to get the", 8149);
    		sendQuest("legendary Crab Helm and the Diving Apparatus.", 8150);
    		sendQuest("In order to finish this MiniQuest, you will have", 8151);
    		sendQuest("to search the whole place and find the hidden chests.", 8152);
    		sendQuest("Inside those chests there are Scrolls that will help", 8153);
    		sendQuest("Merlin to get out of that 'Crystal Jail'. Once you have", 8154);
    		sendQuest("collected all the missing scrolls (they must be 5) you will", 8155);
    		sendQuest("be able to touch the Crystal and save the wizard from that", 8156);
    		sendQuest("eternal prison.", 8157);
    		sendQuest("NOTE: This is a @gre@SAFE@bla@ miniquest and you won't loose", 8159);
    		sendQuest("any items during it. But some chests can teleport you to", 8160);
    		sendQuest("random places, deleting all the scrolls you had collected", 8161);
    		sendQuest("so far. So, CHOOSE VERY CAREFULLY, and @gre@GOOD LUCK", 8162);
    		showInterface(8134);
    		flushOutStream();
    		}
    		
    	public void createNewTileObject(int x, int y, int typeID, int orientation, int tileObjectType)
    	{
    		outStream.createFrame(85);
    		outStream.writeByteC(y - (mapRegionY * 8));
    		outStream.writeByteC(x - (mapRegionX * 8));
    		outStream.createFrame(151);;
    		outStream.writeByteA(0);
    		outStream.writeWordBigEndian(typeID);
    		outStream.writeByteS((tileObjectType << 2) + (orientation & 3));
    	}
    	public void fromBank(int itemID, int fromSlot, int amount)
    	{
    		if (amount > 0)
    		{
    			if (bankItems[fromSlot] > 0)
    			{
    				if (!takeAsNote)
    				{
    					if (Item.itemStackable[bankItems[fromSlot] + 1])
    					{
    						if (bankItemsN[fromSlot] > amount)
    						{
    							if (addItem((bankItems[fromSlot] - 1), amount))
    							{
    								bankItemsN[fromSlot] -= amount;
    								resetBank();
    								resetItems(5064);
    							}
    						}
    						else
    						{
    							if (addItem((bankItems[fromSlot] - 1),
    									bankItemsN[fromSlot]))
    							{
    								bankItems[fromSlot] = 0;
    								bankItemsN[fromSlot] = 0;
    								resetBank();
    								resetItems(5064);
    							}
    						}
    					}
    					else
    					{
    						while (amount > 0)
    						{
    							if (bankItemsN[fromSlot] > 0)
    							{
    								if (addItem((bankItems[fromSlot] - 1), 1))
    								{
    									bankItemsN[fromSlot] += -1;
    									amount--;
    								}
    								else
    								{
    									amount = 0;
    								}
    							}
    							else
    							{
    								amount = 0;
    							}
    						}
    						resetBank();
    						resetItems(5064);
    					}
    				}
    				else if (takeAsNote && Item.itemIsNote[bankItems[fromSlot]])
    				{
    					// if (Item.itemStackable[bankItems[fromSlot]+1])
    					// {
    					if (bankItemsN[fromSlot] > amount)
    					{
    						if (addItem(bankItems[fromSlot], amount))
    						{
    							bankItemsN[fromSlot] -= amount;
    							resetBank();
    							resetItems(5064);
    						}
    					}
    					else
    					{
    						if (addItem(bankItems[fromSlot], bankItemsN[fromSlot]))
    						{
    							bankItems[fromSlot] = 0;
    							bankItemsN[fromSlot] = 0;
    							resetBank();
    							resetItems(5064);
    						}
    					}
    				}
    				else
    				{
    					sendMessage("Item can't be drawn as note.");
    					if (Item.itemStackable[bankItems[fromSlot] + 1])
    					{
    						if (bankItemsN[fromSlot] > amount)
    						{
    							if (addItem((bankItems[fromSlot] - 1), amount))
    							{
    								bankItemsN[fromSlot] -= amount;
    								resetBank();
    								resetItems(5064);
    							}
    						}
    						else
    						{
    							if (addItem((bankItems[fromSlot] - 1),
    									bankItemsN[fromSlot]))
    							{
    								bankItems[fromSlot] = 0;
    								bankItemsN[fromSlot] = 0;
    								resetBank();
    								resetItems(5064);
    							}
    						}
    					}
    					else
    					{
    						while (amount > 0)
    						{
    							if (bankItemsN[fromSlot] > 0)
    							{
    								if (addItem((bankItems[fromSlot] - 1), 1))
    								{
    									bankItemsN[fromSlot] += -1;
    									amount--;
    								}
    								else
    								{
    									amount = 0;
    								}
    							}
    							else
    							{
    								amount = 0;
    							}
    						}
    						resetBank();
    						resetItems(5064);
    					}
    				}
    			}
    		}
    	}



    Here is the error report. . . .

                 ^
    client.java:7364: ';' expected
    enemyX, index+1);
                   ^
    client.java:7412: not a statement
    enemyX, 0 - index);
    ^
    client.java:7412: ';' expected
    enemyX, 0 - index);
          ^
    client.java:7412: not a statement
    enemyX, 0 - index);
                ^
    client.java:7412: ';' expected
    enemyX, 0 - index);
                     ^
    client.java:7768: unclosed string literal
    
                            "You don't have the
    
                            ^
    client.java:7768: ';' expected
    
                            "You don't have the
    
                                                 ^
    client.java:7769: ';' expected
    required runes to do that.");
                     ^
    client.java:7769: unclosed string literal
    required runes to do that.");
                              ^
    client.java:7769: not a statement
    required runes to do that.");
                             ^
    client.java:7769: while expected
    required runes to do that.");
                                 ^
    client.java:7770: '(' expected
    
    }
    
     ^
    client.java:7772: illegal start of expression
                                                                            if (Rune
    Types == 3)
                                                                            ^
    client.java:7772: ')' expected
                                                                            if (Rune
    Types == 3)
                                                                              ^
    client.java:7772: ';' expected
                                                                            if (Rune
    Types == 3)
                                                                                ^
    client.java:7772: illegal start of expression
                                                                            if (Rune
    Types == 3)
    
          ^
    client.java:7772: ';' expected
                                                                            if (Rune
    Types == 3)
    
            ^
    client.java:7772: illegal start of expression
                                                                            if (Rune
    Types == 3)
    
              ^
    client.java:7772: ';' expected
                                                                            if (Rune
    Types == 3)
    
               ^
    client.java:7791: unclosed string literal
    
                            "You don't have the
    
                            ^
    client.java:7791: ';' expected
    
                            "You don't have the
    
                                                 ^
    client.java:7792: ';' expected
    required runes to do that.");
                     ^
    client.java:7792: unclosed string literal
    required runes to do that.");
                              ^
    client.java:7792: not a statement
    required runes to do that.");
                             ^
    client.java:7792: while expected
    required runes to do that.");
                                 ^
    client.java:7793: '(' expected
    
    }
    
     ^
    client.java:7795: illegal start of expression
                                                                    }
                                                                    ^
    client.java:7795: ')' expected
                                                                    }
                                                                     ^
    client.java:7796: ';' expected
                                                                    else
                                                                        ^
    client.java:7837: unclosed string literal
    
                            "You don't have the
    
                            ^
    client.java:7837: ';' expected
    
                            "You don't have the
    
                                                 ^
    client.java:7838: ';' expected
    required runes to do that.");
                     ^
    client.java:7838: unclosed string literal
    required runes to do that.");
                              ^
    client.java:7838: not a statement
    required runes to do that.");
                             ^
    client.java:7838: while expected
    required runes to do that.");
                                 ^
    client.java:7839: '(' expected
    
    }
    
     ^
    client.java:7841: illegal start of expression
                                                                            if (Rune
    Types == 3)
                                                                            ^
    client.java:7841: ')' expected
                                                                            if (Rune
    Types == 3)
                                                                              ^
    client.java:7841: ';' expected
                                                                            if (Rune
    Types == 3)
                                                                                ^
    client.java:7841: illegal start of expression
                                                                            if (Rune
    Types == 3)
    
          ^
    client.java:7841: ';' expected
                                                                            if (Rune
    Types == 3)
    
            ^
    client.java:7841: illegal start of expression
                                                                            if (Rune
    Types == 3)
    
              ^
    client.java:7841: ';' expected
                                                                            if (Rune
    Types == 3)
    
               ^
    client.java:7885: unclosed string literal
    
                            "You don't have the
    
                            ^
    client.java:7885: ';' expected
    
                            "You don't have the
    
                                                 ^
    client.java:7886: ';' expected
    required runes to do that.");
                     ^
    client.java:7886: unclosed string literal
    required runes to do that.");
                              ^
    client.java:7886: not a statement
    required runes to do that.");
                             ^
    client.java:7886: while expected
    required runes to do that.");
                                 ^
    client.java:7887: '(' expected
    
    }
    
     ^
    client.java:7889: illegal start of expression
                                                                    }
                                                                    ^
    client.java:7889: ')' expected
                                                                    }
                                                                     ^
    client.java:7890: ';' expected
                                                            }
                                                             ^
    client.java:7895: 'else' without 'if'
                                    else
                                    ^
    client.java:7923: 'else' without 'if'
                    else
                    ^
    client.java:7929: illegal start of expression
            public boolean playerHasItem(int itemID)
            ^
    client.java:7929: ';' expected
            public boolean playerHasItem(int itemID)
                                        ^
    client.java:7929: ';' expected
            public boolean playerHasItem(int itemID)
                                                   ^
    client.java:7942: illegal start of expression
            public boolean playerHasItem2(int itemID)
            ^
    client.java:7942: ';' expected
            public boolean playerHasItem2(int itemID)
                                         ^
    client.java:7942: ';' expected
            public boolean playerHasItem2(int itemID)
                                                    ^
    client.java:7963: illegal start of expression
            public boolean hasItemAny(int id, int amount)
            ^
    client.java:7963: ';' expected
            public boolean hasItemAny(int id, int amount)
                                     ^
    client.java:7963: <identifier> expected
            public boolean hasItemAny(int id, int amount)
                                             ^
    client.java:7963: not a statement
            public boolean hasItemAny(int id, int amount)
                                                  ^
    client.java:7963: ';' expected
            public boolean hasItemAny(int id, int amount)
                                                        ^
    client.java:7982: illegal start of expression
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
            ^
    client.java:7982: illegal start of expression
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                   ^
    client.java:7982: ';' expected
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                    ^
    client.java:7982: <identifier> expected
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                               ^
    client.java:7982: not a statement
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                                    ^
    client.java:7982: ';' expected
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                                         ^
    client.java:7982: <identifier> expected
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                                                         ^
    client.java:7982: not a statement
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
                                                                              ^
    client.java:7982: ';' expected
            public void ReplaceItems(int newID, int oldID, int newAmount, int oldAmo
    unt)
    
       ^
    client.java:7999: illegal start of expression
            public boolean hasItem(int itemID, int slot)
            ^
    client.java:7999: ';' expected
            public boolean hasItem(int itemID, int slot)
                                  ^
    client.java:7999: <identifier> expected
            public boolean hasItem(int itemID, int slot)
                                              ^
    client.java:7999: not a statement
            public boolean hasItem(int itemID, int slot)
                                                   ^
    client.java:7999: ';' expected
            public boolean hasItem(int itemID, int slot)
                                                       ^
    100 errors
    Finished!
    Press any key to continue . . .

Friends

xLukex845 hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    silabsoft Icon

    02 Nov 2009 - 20:56
    Welcome to the forums xLukex845 :)
Page 1 of 1