Jump to content

Search the Community

Showing results for tags 'character'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 65 results

  1. I have this problem on my client and its really annoying me. I can see my custom sword i made through the character which is pretty annoying. [img]http://i911.photobucket.com/albums/ac316/antiworth/ModelGlitch_zps0a2d0ba0.png[/img] Thanks in advance!
  2. [SIZE=5]May not be a huge show-off to some of you guys but I don't see many others with this. It is just a little cool add to the server that gives players a sense of their own perosnality :) Also, please no flaming.[/SIZE] [center][url=http://www.youtube.com/watch?v=Q6i-uErIIA0]Citellum RSPS | Character Creation - YouTube[/url][/center] [SIZE=5]Didn't notice that I forgot to add the female option so here is female.[/SIZE] [center][IMG]http://i47.tinypic.com/2wciq6e.png[/IMG][/center]
  3. Sethy

    Choose My Character

    K so idk what to play in WoW atm, so I'm gonna let you guys choose for me. You need to pick between male/female, and then race/class. So you have 3 picks. [B]Races[/B] Human Dwarf Night Elf Gnome Draenie Worgen Pandaren Orc Undead Tauren Troll Blood Elf Goblin [b]Class[/b] Warrior Paladin Hunter Rogue Priest Shaman Mage Warlock Druid Death Knight
  4. Chaser1080

    Character Files

    How do you give like donator points or pc points to players on a 718 source?
  5. hey how can i change the blue transparent screen when you log in to the one that you can change your character looks like ::char but only on FIRST login not second or third (you get the point) im really new at this so dont flame me for using allstar and please if you are going to help make it detailed so i can understand.
  6. I am trying to manually edit some characters, but the my character files are *username*.p and they look like this when I open them in notepad++ [ATTACH=CONFIG]6903[/ATTACH] Does anyone know how to edit these?
  7. I recently added a custom item to my rsps that i made, whenever i look at my character from any direction i can see the model through the character. How do I fix this? Im using PI
  8. Lore

    [PI] Character Reset?

    I'm not sure why or how but sometimes I get reset. Maybe the save gets corrupted or something, because I believe it uses an auto-save. This only happens when I close the command prompt (I just close it and open a new one to restart), and even then it is very rare (1 in 50 restarts maybe). So how would I fix these resets? Do I disable auto-save, find a way to restart the server safer (system update perhaps), or something else?
  9. I'm currently messing around with a 317 [PI] & I'd like to change the character models , I've looked and looked on here,RuneServer & google. No luck . Please Help (:
  10. I use a custom class for MySQL just so I can track query count and all queries ran, but you can easily change this to use something else. I will take [I]constructive[/I] criticism. I'm sure this could have been done better, but it works. I ran some tests on how long it takes to load/save and the averages are the following: 8508444.4 ns = 8.5 ms = load 3447519.4 ns = 3.4 ms = save SQLWorldLoader [code]package org.rs2server.rs2; import java.io.UnsupportedEncodingException; import java.security.NoSuchAlgorithmException; import java.sql.SQLException; import org.rs2server.mysql.Login; import org.rs2server.rs2.model.Player; import org.rs2server.rs2.model.PlayerDetails; public class SQLWorldLoader implements WorldLoader { /** * TODO Offence checking */ @Override public LoginResult checkLogin(PlayerDetails pd) { Player player = null; int code = 2; try { if (!Login.verifyLogin(pd)) { code = 3; } } catch (NoSuchAlgorithmException e) { code = 55; } catch (UnsupportedEncodingException e) { code = 55; } catch (SQLException e) { e.printStackTrace(); code = 55; } if (code == 2) { player = new Player(pd); } return new LoginResult(code, player); } @Override public boolean loadPlayer(Player player) { try { Login.loadPlayer(player); return true; } catch (SQLException e) { e.printStackTrace(); return false; } } @Override public boolean savePlayer(Player player) { try { Login.savePlayer(player); return true; } catch (SQLException e) { e.printStackTrace(); return false; } } }[/code] Login [code]package org.rs2server.mysql; import java.io.UnsupportedEncodingException; import java.security.NoSuchAlgorithmException; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.LinkedList; import java.util.List; import org.rs2server.rs2.model.Item; import org.rs2server.rs2.model.Location; import org.rs2server.rs2.model.Player; import org.rs2server.rs2.model.Player.Rights; import org.rs2server.rs2.model.PlayerDetails; import org.rs2server.rs2.model.Skills; import org.rs2server.rs2.model.combat.CombatState.CombatStyle; import org.rs2server.rs2.model.container.Bank; import org.rs2server.rs2.model.container.Equipment; import org.rs2server.rs2.model.container.Inventory; import org.rs2server.rs2.util.TextUtils; public class Login { /** * Statements */ private static ThreadLocal<PreparedStatement> authStatement = new ThreadLocal<PreparedStatement>(); // verify login private static ThreadLocal<PreparedStatement> newUserStatement = new ThreadLocal<PreparedStatement>(); // insert new user private static ThreadLocal<PreparedStatement> updateDetailsStatement = new ThreadLocal<PreparedStatement>(); // update details private static ThreadLocal<PreparedStatement> updateSettingsStatement = new ThreadLocal<PreparedStatement>(); // update settings private static ThreadLocal<PreparedStatement> updateItemsStatement = new ThreadLocal<PreparedStatement>(); // update items private static ThreadLocal<PreparedStatement> selectDetailsStatement = new ThreadLocal<PreparedStatement>(); // select details private static ThreadLocal<PreparedStatement> selectSettingsStatement = new ThreadLocal<PreparedStatement>(); // select settings private static ThreadLocal<PreparedStatement> selectItemsStatement = new ThreadLocal<PreparedStatement>(); // select items static { authStatement.set(Mysql.prepareStatement("SELECT `id`, `username`, `password`, `password_salt` FROM `users` WHERE `username` = ?")); newUserStatement.set(Mysql.prepareStatement("INSERT INTO `users` (`username`, `password`, `password_salt`) VALUES (?, ?, ?)", Statement.RETURN_GENERATED_KEYS)); updateDetailsStatement.set(Mysql.prepareStatement("INSERT INTO `details` (`user_id`, `pos_x`, `pos_y`, `pos_z`, `skills`, `appearance`, `energy`, `prayer_points`) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE `pos_x` = values(pos_x), `pos_y` = values(pos_y), `pos_z` = values(pos_z), `skills` = values(skills), `appearance` = values(appearance), `energy` = values(energy), `prayer_points` = values(prayer_points);")); updateSettingsStatement.set(Mysql.prepareStatement("INSERT INTO `settings` (`user_id`, `auto_retaliate`, `fight_mode`, `mouse_buttons`, `chat_effects`, `split_pm`, `accept_aid`, `run_toggled`, `music_volume`, `effect_volume`, `screen_brightness`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, '0', '0', ?) ON DUPLICATE KEY UPDATE `auto_retaliate` = values(auto_retaliate), `fight_mode` = values(fight_mode), `mouse_buttons` = values(mouse_buttons), `chat_effects` = values(chat_effects), `split_pm` = values(split_pm), `accept_aid` = values(accept_aid), `run_toggled` = values(run_toggled), `screen_brightness` = values(screen_brightness);")); updateItemsStatement.set(Mysql.prepareStatement("INSERT INTO `items` (`user_id`, `equipment`, `inventory`, `bank`) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE `equipment` = values(equipment), `inventory` = values(inventory), `bank` = values(bank);")); selectDetailsStatement.set(Mysql.prepareStatement("SELECT * FROM `details` WHERE `user_id` = ?")); selectSettingsStatement.set(Mysql.prepareStatement("SELECT `auto_retaliate`, `fight_mode`, `mouse_buttons`, `chat_effects`, `split_pm`, `accept_aid`, `run_toggled`, `screen_brightness` FROM `settings` WHERE `user_id` = ?")); selectItemsStatement.set(Mysql.prepareStatement("SELECT `equipment`, `inventory`, `bank` FROM `items` WHERE `user_id` = ?")); } /** * Verify the login * @param pd The person trying to logins' player details * @return true if successful, false if failed * @throws NoSuchAlgorithmException * @throws UnsupportedEncodingException * @throws SQLException Throws if there is a sql error */ public static boolean verifyLogin(PlayerDetails pd) throws NoSuchAlgorithmException, UnsupportedEncodingException, SQLException { ResultSet result = null; try { authStatement.get().setString(1, pd.getName().toLowerCase()); result = Mysql.executeQuery(authStatement.get()); if (result.next()) { String password = pd.getPassword(); String passwordHash = TextUtils.MD5( TextUtils.MD5(result.getString("password_salt")) + TextUtils.MD5(password) ); if (passwordHash.equals(result.getString("password"))) { pd.setUserId(result.getInt("id")); return true; } else { return false; } } else { // Temp until site is up String password = pd.getPassword(); String passwordHash = TextUtils.MD5( TextUtils.MD5("abcdef") + TextUtils.MD5(password) ); PreparedStatement statement = newUserStatement.get(); statement.setString(1, pd.getName().toLowerCase()); statement.setString(2, passwordHash); statement.setString(3, "abcdef"); int insertId = Mysql.executeUpdate(statement); pd.setUserId(insertId); return true; } } finally { if (result != null) result.close(); } } /** * Saves a player * @param player The player * @throws SQLException Throws if there is a sql error */ public static void savePlayer(Player player) throws SQLException { PreparedStatement statement = null; statement = updateDetailsStatement.get(); // Update details statement.setInt(1, player.getUserId()); // user_id statement.setInt(2, player.getLocation().getX()); // pos_x statement.setInt(3, player.getLocation().getY()); // pos_y statement.setInt(4, player.getLocation().getZ()); // pos_z String[] skills = new String[Skills.SKILL_COUNT]; for(int i = 0; i < Skills.SKILL_COUNT; i++) { skills[i] = player.getSkills().getLevel(i) + "," + (double) player.getSkills().getExperience(i); } statement.setString(5, TextUtils.implodeArray(";", skills)); // skills statement.setString(6, TextUtils.implodeArray(",", player.getAppearance().getLook())); // appearance statement.setInt(7, player.getWalkingQueue().getEnergy()); // energy statement.setDouble(8, (double) player.getSkills().getPrayerPoints()); // prayer_points Mysql.executeUpdate(statement); statement = updateSettingsStatement.get(); // Update settings statement.setInt(1, player.getUserId()); // user_id statement.setInt(2, player.getSettings().isAutoRetaliating() ? 1 : 0); // auto_retaliate statement.setInt(3, player.getCombatState().getCombatStyle().getId()); // fight_mode statement.setInt(4, player.getSettings().twoMouseButtons() ? 1 : 0); // mouse_bottons statement.setInt(5, player.getSettings().chatEffects() ? 1 : 0); // chat_effects statement.setInt(6, player.getSettings().splitPrivateChat() ? 1 : 0); // split_pm statement.setInt(7, player.getSettings().isAcceptingAid() ? 1 : 0); // accept_aid statement.setInt(8, player.getWalkingQueue().isRunningToggled() ? 1 : 0); // run_toggled statement.setInt(9, player.getSettings().getBrightnessSetting()); // screen_brightness Mysql.executeUpdate(statement); statement = updateItemsStatement.get(); // Update item related things statement.setInt(1, player.getUserId()); // user_id List<String> equipment = new LinkedList<String>(); for(int i = 0; i < Equipment.SIZE; i++) { // Equipment start Item item = player.getEquipment().get(i); if (item == null) continue; equipment.add(i + "," + item.getId() + "," + item.getCount()); } statement.setString(2, TextUtils.implodeArray(";", equipment.toArray(new String[equipment.size()]))); // Equipment end List<String> inventory = new LinkedList<String>(); for(int i = 0; i < Inventory.SIZE; i++) { // Inventory start Item item = player.getInventory().get(i); if (item == null) continue; inventory.add(i + "," + item.getId() + "," + item.getCount()); } statement.setString(3, TextUtils.implodeArray(";", inventory.toArray(new String[inventory.size()]))); // Inventory end List<String> bank = new LinkedList<String>(); for(int i = 0; i < Bank.SIZE; i++) { // Bank Start Item item = player.getBank().get(i); if (item == null) continue; bank.add(i + "," + item.getId() + "," + item.getCount()); } statement.setString(4, TextUtils.implodeArray(";", bank.toArray(new String[bank.size()]))); // Bank end Mysql.executeUpdate(statement); } /** * Loads a users account * @param player The player to load * @throws SQLException Throws if there is a sql error */ public static void loadPlayer(Player player) throws SQLException { ResultSet result = null; selectDetailsStatement.get().setInt(1, player.getUserId()); // Select details result = Mysql.executeQuery(selectDetailsStatement.get()); if (result.next()) { // details int rights = result.getInt("rights"); player.setRights(rights == 2 ? Rights.ADMINISTRATOR : rights == 1 ? Rights.MODERATOR : Rights.PLAYER); // rights player.setMembers(result.getInt("member") == 1); // members player.setLocation(Location.create(result.getInt(4), result.getInt(5), result.getInt(6))); // location String[] look = result.getString(8).split(","); int looks[] = {0, 0, 0, 0, 0, 0, 0, 18, 26, 33, 36, 42, 14}; if (look.length == 13) { for (int i = 0; i < look.length; i++) { looks[i] = Integer.parseInt(look[i]); } } player.getAppearance().setLook(looks); // looks String[] skill = result.getString(7).split(";"); if (skill.length == Skills.SKILL_COUNT) { for (int i = 0; i < Skills.SKILL_COUNT; i++) { String[] skillInfo = skill[i].split(","); player.getSkills().setSkill(i, Integer.parseInt(skillInfo[0]), Double.parseDouble(skillInfo[1])); // skills } } player.getWalkingQueue().setEnergy(result.getInt(9)); // energy player.getSkills().setPrayerPoints(result.getDouble(10), false); // prayer_points } selectSettingsStatement.get().setInt(1, player.getUserId()); // Select settings result.close(); result = Mysql.executeQuery(selectSettingsStatement.get()); if (result.next()) { // settings player.getSettings().setAutoRetaliate(result.getInt(1) == 1); // auto retaliate player.getCombatState().setCombatStyle(CombatStyle.forId(result.getInt(2))); // combat style player.getSettings().setTwoMouseButtons(result.getInt(3) == 1); // mouse buttons player.getSettings().setChatEffects(result.getInt(4) == 1); // chat effects player.getSettings().setSplitPrivateChat(result.getInt(5) == 1); // split pm player.getSettings().setAcceptAid(result.getInt(6) == 1); // accept aid player.getWalkingQueue().setRunningToggled(result.getInt(7) == 1); // run toggled player.getSettings().setBrightnessSetting(result.getInt(8)); // brightness } selectItemsStatement.get().setInt(1, player.getUserId()); result.close(); result = Mysql.executeQuery(selectItemsStatement.get()); if (result.next()) { String[] equipment = result.getString(1).split(";"); for (int i = 0; i < equipment.length; i++) { String[] equipmentInfo = equipment[i].split(","); if (equipmentInfo.length != 3) continue; int id = Integer.parseInt(equipmentInfo[1]); int amt = Integer.parseInt(equipmentInfo[2]); Item item = new Item(id, amt); player.getEquipment().set(Integer.parseInt(equipmentInfo[0]), item); // equipment } String[] inventory = result.getString(2).split(";"); for(int i = 0; i < inventory.length; i++) { String[] inventoryInfo = inventory[i].split(","); if (inventoryInfo.length != 3) continue; int id = Integer.parseInt(inventoryInfo[1]); int amt = Integer.parseInt(inventoryInfo[2]); Item item = new Item(id, amt); player.getInventory().set(Integer.parseInt(inventoryInfo[0]), item); // inventory } String[] bank = result.getString(3).split(";"); for(int i = 0; i < bank.length; i++) { String[] bankInfo = bank[i].split(","); if (bankInfo.length != 3) continue; int id = Integer.parseInt(bankInfo[1]); int amt = Integer.parseInt(bankInfo[2]); Item item = new Item(id, amt); player.getBank().set(Integer.parseInt(bankInfo[0]), item); // bank } } if (result != null) result.close(); } }[/code] [code]-- phpMyAdmin SQL Dump -- version 3.5.2 -- [url]http://www.phpmyadmin.net[/url] -- -- Host: localhost -- Generation Time: Oct 27, 2012 at 07:15 PM -- Server version: 5.5.25a -- PHP Version: 5.4.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `runelegend` -- -- -------------------------------------------------------- -- -- Table structure for table `details` -- CREATE TABLE IF NOT EXISTS `details` ( `user_id` int(11) NOT NULL, `rights` tinyint(1) NOT NULL DEFAULT '0', `member` tinyint(1) NOT NULL DEFAULT '0', `pos_x` smallint(6) NOT NULL, `pos_y` smallint(6) NOT NULL, `pos_z` smallint(6) NOT NULL, `skills` mediumtext COLLATE utf8_unicode_ci NOT NULL, `appearance` tinytext COLLATE utf8_unicode_ci NOT NULL, `energy` smallint(6) NOT NULL, `prayer_points` smallint(6) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `items` -- CREATE TABLE IF NOT EXISTS `items` ( `user_id` int(11) NOT NULL, `equipment` mediumtext COLLATE utf8_unicode_ci NOT NULL, `inventory` mediumtext COLLATE utf8_unicode_ci NOT NULL, `bank` longtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE IF NOT EXISTS `settings` ( `user_id` int(11) NOT NULL, `auto_retaliate` tinyint(1) NOT NULL, `fight_mode` tinyint(11) NOT NULL, `mouse_buttons` tinyint(1) NOT NULL, `chat_effects` tinyint(1) NOT NULL, `split_pm` tinyint(1) NOT NULL, `accept_aid` tinyint(1) NOT NULL, `run_toggled` tinyint(1) NOT NULL, `music_volume` tinyint(4) NOT NULL, `effect_volume` tinyint(4) NOT NULL, `screen_brightness` tinyint(4) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(13) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_salt` varchar(15) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=0 ;[/code]
  11. This is probably a very advanced thing but has anyone succeed in making the character photo booth? The one that gives you a avatar on the runescape forums. It would be so epic if someone could remake that.
  12. Hello. There is one problem I have with the Character Menu. This menu is the one which runescape has right now. I think they still have it. The one with all the characters like archer, woodcutter, mage, etc... Well the one in the 667 is coded about 95%. The one issue is when you select it and finish in the end, when you where armour, your body goes back to normal. Can anyone help with this?
  13. ring men

    character creation

    Every time you log out then in you go to the character creation page and get the starter pack again but you remain in the coords you logged off in. what's the problem?
  14. on my 711 my charater files use .p and when it opens i cant read because its is a code and you cant make your self staff or anything soo anyone know how to make it so i can :o
  15. onlinenoob

    Character Help

    what i must do? my server dont save character never , always when i login and out then again login then my character new , server dont save character what i dooo? _____________________ My english is bad Im from estonia
  16. [IMG]http://i47.tinypic.com/kexnhx.png[/img] Hey, My character is monging out. I'm using Galkons Refractored with a Project Insanity source. How can I fix it?
  17. i got the rings, but dont wear it :( 562 source
  18. where he spawn when die, and when first time log in please 562
  19. [img]http://i967.photobucket.com/albums/ae151/Toxicturn/Char_game.png[/img]Update:[img]http://i967.photobucket.com/albums/ae151/Toxicturn/Char_game2.png[/img]Back:[img]http://i967.photobucket.com/albums/ae151/Toxicturn/Char_game2_Back.png[/img] Tell me what you think.. I personally think the head has to be changed... I'm working on that now. Kinda Reminds me of the Halo characters even so I wasn't originally going for that :]
  20. Yes as you can see I need to know when a Player dies on my server how do i add a command when the Player dies. For example Player is killing Corp and the player DIES when the Player dies he does a Command... I need help on that Please.
  21. I know this is really nooby but on every other source I've had it's simple when you go to character files you can easily change the rights, this one has all these random type's of symbols, something really weird and not understandable. There's more then this but this just an example, i'm trying to make myself an owner, not working out. See if this is fixable. [img]http://imgtool.in/images/wtff.png[/img]
  22. Hi, what is wrong with this commands, as it does not save the players appearance, when i relog, im back to normal. What do I have to add to get this working? Thanks [QUOTE] if (command[0].equals("char")) { ActionSender.sendWindowsPane(player, 1028, 0); ActionSender.sendAMask(player, 2, 1028, 45, 0, 204); ActionSender.sendAMask(player, 2, 1028, 111, 0, 204); ActionSender.sendAMask(player, 2, 1028, 107, 0, 204); player.getMask().setApperanceUpdate(true); }[/QUOTE]
  23. How in the hell do i change a new characters default settings? Like when they login, whats already set such as volume off/on, new hitsplats off/on, 10x hitting off or on ect.. What folder and under what? Think i found it...
  24. Today I wanted to play around with some coding on a RSPS base server. I'm using Standard Shards Revolutions source and client base. I wanted to edit my ingame character so I logged in at localhost and moved around and logged out, planning to create a save file. But, when I log back in with same username and password it restarts me as a new character everytime. What can be done to fix this? I'll give any additional details if needed.
  25. In Commands.java add in: [CODE]if (command[0].equals("char")) { ActionSender.sendWindowsPane(player, 1028, 0); ActionSender.sendAMask(player, 2, 1028, 45, 0, 204); ActionSender.sendAMask(player, 2, 1028, 111, 0, 204); ActionSender.sendAMask(player, 2, 1028, 107, 0, 204); }[/CODE] Anywhere around the top. Enjoy. :3 Note: You will have to make character appearances save in order for this to work properly. :] [ATTACH=CONFIG]4882[/ATTACH] Click to Enlarge.
×