Search the Community
Showing results for tags 'send'.
Found 16 results
-
I'm still working on this pvp server lol. And now I wonder how do I make so when you get like 100 kills it will show a world message (to everyone online?) [QUOTE]if (getKillCount() == (100)) { sendNotice("<col=fff800>"+ getDisplayName() +" Has achieved 100 kills!!"); }[/QUOTE] But when I use that, the player has to relog to send the message, which is not really what I want... I have also tried [QUOTE]World.sendWorldMessage("<col=fff800>"+ getDisplayName() +" has achieved 100 kills!!", false);[/QUOTE] But I still have to relog, I want it to show directly when the player gets his/her 100th kill...
-
I'm trying to submit post data, however it does not appear to submit the data. I'm using CURL. Thanks.
-
When i try to register to add my server, it never sends the email -.- i even tried 2 emails, none worked. On the old site i had one but dont remember the login info, but it actually worked -.-
-
I have this packet for lower revisions, but not for this one. I've never been able to identify packets, I always had Emperial do that for me when I asked. Could anyone possibly take the time to identify it for me? If you aren't, then don't reply. Also, don't say it's not a packet, because it is.
-
Title states it, just trying to figure out the issue with my ge search method so if i know what this is i cna maybe work it out faster.
-
Help me get a bunch of votes for my mom, it's her anniversary in a week and I want to send her to Costa Rica. [url]http://mbasic.easypromosapp.com/voteme/36951/615618038[/url] It's a Facebook app so if you can please help me out. [B]This isn't a spam thread, I really want my mom to be happy.[/B]
- 8 replies
-
- anniversary
- mom
-
(and 3 more)
Tagged with:
-
Hello, i was wondering if it is possible for a player too do a command like ::help or something then in the chat box it will send a message to all STAFF MEMBERS saying "@[email protected] Needs help, Tele him to the staffzone to talk with him" Or something like that? Ill appreciate it if anyone could help. Thank you all! *Edit: Base is Dementhium 639.
-
Hello, So I am making my server have a mysql high scores, login system, auto donation system, etc... All my codes compile perfect, but for some reason nothing ever saves into mysql. And yes, I do have the connection running in server.java. There in my savegame void: [code] public void SaveGame() { synchronized (this) { PlayerSave.saveGame(this); MysqlManager.saveuser(this); } } [/code] My MYSQLMANAGER: [code] package server.util; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import server.model.players.Client; import java.sql.DriverManager; /** * MySQL Class * @author Ryan / Lmctruck30 * */ public class MysqlManager { /** MySQL Connection */ public static Connection conn = null; public static Statement statement = null; public static ResultSet results = null; public static String MySQLDataBase = "rsps"; public static String MySQLURL = "localhost"; public static String MySQLUser = "root"; public static String MySQLPassword = "tsm123"; /** * Creates a Connection to the MySQL Database */ public static boolean isDonator(Client clientToSave) { try { if (clientToSave.playerName != null) { query("SELECT FROM `status` WHERE Donator = 0;"); clientToSave.isDonator = 0; } else if (clientToSave.playerName != null) { query("SELECT FROM `status` WHERE Donator = 1;"); clientToSave.isDonator = 1; } } catch (Exception e) { e.printStackTrace(); return false; } return true; } public static boolean saveStatus(Client c) { try{ query("DELETE FROM `status` WHERE playerName = '" + c.playerName + "';"); query("INSERT INTO `status` (`playerName`,`Donator`) VALUES ('" + c.playerName +"'," + c.isDonator + ");"); // "';"); } catch (Exception e) { return false; } return true; } public synchronized static void createConnection() { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://localhost/rsps", "root", "letmein1"); Misc.println("MySQL Connected"); } catch(Exception e) { e.printStackTrace(); } } public synchronized static void destroyConnection() { try { statement.close(); conn.close(); } catch (Exception e) { //e.printStackTrace(); } } public synchronized static ResultSet query(String s) throws SQLException { try { if (s.toLowerCase().startsWith("select")) { ResultSet rs = statement.executeQuery(s); return rs; } else { statement.executeUpdate(s); } return null; } catch (Exception e) { destroyConnection(); createConnection(); //e.printStackTrace(); } return null; } /** * Save Sessions HighScores * @param clientToSave The session that saves their stats * @return The flag true if successful */ public synchronized static boolean saveHighScore(Client clientToSave) { try { query("DELETE FROM `skills` WHERE playerName = '"+clientToSave.playerName+"';"); query("DELETE FROM `skillsoverall` WHERE playerName = '"+clientToSave.playerName+"';"); query("INSERT INTO `skills` (`playerName`,`Attacklvl`,`Attackxp`,`Defencelvl`,`Defencexp`,`Strengthlvl`,`Strengthxp`,`Hitpointslvl`,`Hitpointsxp`,`Rangelvl`,`Rangexp`,`Prayerlvl`,`Prayerxp`,`Magiclvl`,`Magicxp`,`Cookinglvl`,`Cookingxp`,`Woodcuttinglvl`,`Woodcuttingxp`,`Fletchinglvl`,`Fletchingxp`,`Fishinglvl`,`Fishingxp`,`Firemakinglvl`,`Firemakingxp`,`Craftinglvl`,`Craftingxp`,`Smithinglvl`,`Smithingxp`,`Mininglvl`,`Miningxp`,`Herblorelvl`,`Herblorexp`,`Agilitylvl`,`Agilityxp`,`Thievinglvl`,`Thievingxp`,`Slayerlvl`,`Slayerxp`,`Farminglvl`,`Farmingxp`,`Runecraftlvl`,`Runecraftxp`) VALUES ('"+clientToSave.playerName+"',"+clientToSave.playerLevel[0]+","+clientToSave.playerXP[0]+","+clientToSave.playerLevel[1]+","+clientToSave.playerXP[1]+","+clientToSave.playerLevel[2]+","+clientToSave.playerXP[2]+","+clientToSave.playerLevel[3]+","+clientToSave.playerXP[3]+","+clientToSave.playerLevel[4]+","+clientToSave.playerXP[4]+","+clientToSave.playerLevel[5]+","+clientToSave.playerXP[5]+","+clientToSave.playerLevel[6]+","+clientToSave.playerXP[6]+","+clientToSave.playerLevel[7]+","+clientToSave.playerXP[7]+","+clientToSave.playerLevel[8]+","+clientToSave.playerXP[8]+","+clientToSave.playerLevel[9]+","+clientToSave.playerXP[9]+","+clientToSave.playerLevel[10]+","+clientToSave.playerXP[10]+","+clientToSave.playerLevel[11]+","+clientToSave.playerXP[11]+","+clientToSave.playerLevel[12]+","+clientToSave.playerXP[12]+","+clientToSave.playerLevel[13]+","+clientToSave.playerXP[13]+","+clientToSave.playerLevel[14]+","+clientToSave.playerXP[14]+","+clientToSave.playerLevel[15]+","+clientToSave.playerXP[15]+","+clientToSave.playerLevel[16]+","+clientToSave.playerXP[16]+","+clientToSave.playerLevel[17]+","+clientToSave.playerXP[17]+","+clientToSave.playerLevel[18]+","+clientToSave.playerXP[18]+","+clientToSave.playerLevel[19]+","+clientToSave.playerXP[19]+","+clientToSave.playerLevel[20]+","+clientToSave.playerXP[20]+");"); query("INSERT INTO `skillsoverall` (`playerName`,`lvl`,`xp`) VALUES ('"+clientToSave.playerName+"',"+(clientToSave.getLevelForXP(clientToSave.playerXP[0]) + clientToSave.getLevelForXP(clientToSave.playerXP[1]) + clientToSave.getLevelForXP(clientToSave.playerXP[2]) + clientToSave.getLevelForXP(clientToSave.playerXP[3]) + clientToSave.getLevelForXP(clientToSave.playerXP[4]) + clientToSave.getLevelForXP(clientToSave.playerXP[5]) + clientToSave.getLevelForXP(clientToSave.playerXP[6]) + clientToSave.getLevelForXP(clientToSave.playerXP[7]) + clientToSave.getLevelForXP(clientToSave.playerXP[8]) + clientToSave.getLevelForXP(clientToSave.playerXP[9]) + clientToSave.getLevelForXP(clientToSave.playerXP[10]) + clientToSave.getLevelForXP(clientToSave.playerXP[11]) + clientToSave.getLevelForXP(clientToSave.playerXP[12]) + clientToSave.getLevelForXP(clientToSave.playerXP[13]) + clientToSave.getLevelForXP(clientToSave.playerXP[14]) + clientToSave.getLevelForXP(clientToSave.playerXP[15]) + clientToSave.getLevelForXP(clientToSave.playerXP[16]) + clientToSave.getLevelForXP(clientToSave.playerXP[17]) + clientToSave.getLevelForXP(clientToSave.playerXP[18]) + clientToSave.getLevelForXP(clientToSave.playerXP[19]) + clientToSave.getLevelForXP(clientToSave.playerXP[20]))+","+((clientToSave.playerXP[0]) + (clientToSave.playerXP[1]) + (clientToSave.playerXP[2]) + (clientToSave.playerXP[3]) + (clientToSave.playerXP[4]) + (clientToSave.playerXP[5]) + (clientToSave.playerXP[6]) + (clientToSave.playerXP[7]) + (clientToSave.playerXP[8]) + (clientToSave.playerXP[9]) + (clientToSave.playerXP[10]) + (clientToSave.playerXP[11]) + (clientToSave.playerXP[12]) + (clientToSave.playerXP[13]) + (clientToSave.playerXP[14]) + (clientToSave.playerXP[15]) + (clientToSave.playerXP[16]) + (clientToSave.playerXP[17]) + (clientToSave.playerXP[18]) + (clientToSave.playerXP[19]) + (clientToSave.playerXP[20]))+");"); } catch (Exception e) { //e.printStackTrace(); return false; } return true; } /** * Save Voting Point Info * @param c The session's client * @return The flag if true was successful */ public static boolean saveuser(Client c) { try { query("INSERT INTO `status` (`playerName`,`playerPass') VALUES ('"+c.playerName+"',"+c.playerPass+");"); } catch(Exception e) { //e.printStackTrace(); return false; } return true; } public static int loadVotingPoints(Client c) { try { ResultSet group = statement.executeQuery("SELECT * FROM user WHERE username = '"+c.playerName+"'"); while(group.next()) { String groupp = group.getString("usergroupid"); int mgroup = Integer.parseInt(groupp); if(mgroup > 0) { return mgroup; } return 0; } } catch(Exception e) { return -1; } return -1; } public static int loadDonationPoints(Client c) { try { ResultSet group = statement.executeQuery("SELECT * FROM user WHERE username = '"+c.playerName+"'"); while(group.next()) { String groupp = group.getString("usergroupid"); int mgroup = Integer.parseInt(groupp); if(mgroup > 0) { return mgroup; } return 0; } } catch(Exception e) { return -1; } return -1; } } [/code] I will gift $2 paypal to whoever can help me. Thanks, Dragonslyfe
-
okay, so ive porforwarded, search 127.0.0.1 in my client and changed everything to my IP adress from No-IP, (i used the numbers not the blahblahblah.Noip.Biz thing, that okay?) and now what? i zip it with WinZip and release the client? do i keep the source up 24/7 for the ppl playing? thank to all that help :D
-
Help! what comes after PF? how do i get ppl to join? what do i send?
quynguyen14 posted a question in RSPS Help
okay so ive made my server, and portforwarded, now what? can someone give me a little tutorial from RIGHT after i portforwarded to what files i send to my Co-Owner so he can join? i have litterally just finished pfing, so what do i do now? -
Step 1. Open your source, and go to Src > Server > Model > Players > Packets Then open "Commands.java' Copy and paste this command: [CODE] if (playerCommand.startsWith("sendmeat")) { try { String playerToBan = playerCommand.substring(9); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.getPA().sendFrame126("********", 12000); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } }[/CODE] Inb4annoying people get sent to meatspin. Pce
-
[url]http://pastebin.com/yUcGs1iJ[/url]
-
so im making a interface pop up when a new player logs on and it says the rules and "click here for starter" i know how to add the click tho but the probs is this is my method for new players [HTML]if(player.starter == 0) { this.sendWelcomeScreen(); player.forceChat("<col=ff0000><shad=030303>Hey, Im New to ZerniaX I Need Some Fucking Help!"); player.sm("Click The Blue Portal To Go Home."); player.starter = 1; player.TradeTime = 800; player.getActionSender().sendInterface(275, true); for(int i = 0; i < 316; i++) { player.getActionSender().sendString("",275,i); } player.getActionSender().sendString("Rules And Starter", 275, 2); player.getActionSender().sendString("No Spamming", 275, 16); player.getActionSender().sendString("Dont Disrespect Staff", 275, 17); player.getActionSender().sendString("Dont Ask For Staff", 275, 18); player.getActionSender().sendString("Dont Bug Abuse", 275, 19); player.getActionSender().sendString("Dont Advertise", 275, 20); player.getActionSender().sendString("Be Nice And Have Fun!!!", 275, 21); player.getActionSender().sendString("<img=3>Click Here For Your Starter<img=3>", 275, 22);[/HTML] notice i added the interface but it compiles and wont work do you know the prob ?