Jump to content

RebornX

Member
  • Content count

    16
  • Joined

  • Last visited

  1. I didn't see a section for that, if it's not good feel free to move it! Thanks! :) Well, I need help to add Inferno Shoutbox. I'm on vBulletin 4.1.10 beta 1. My MSN: [email][email protected][/email] Thanks! :)
  2. Hmmm. Ok. Thanks. /Req Close.
  3. [quote name='korasi pr0dx']Client-Sided, Loader.java. Look for the IP string.[/QUOTE] I know for the client, but for the server (source)?
  4. Can someone tells me where's the folder to put the IP to run the server? Thanks
  5. If you want,, PM me your TV info. I will help you.
  6. Try to see this thread: [url]http://www.moparscape.org/smf/index.php/topic,540811.msg3960795.html#msg3960795[/url]
  7. Be sure to be connected with the good IP, Not 127.0.0.1. Be sure to have your IP connected on your client, and in the source.
  8. Hello, On my server, there's no wilderness area, anyone have an idea of where I could add it? On which folders I need to go to make the wilderness area? If you have idea, reply please. Thanks!
  9. I have a problem, wilderness it's not coded at all. I can't attack players into it. Also, I would like when they die, The killer gain 3 First of Guthix (FOG) tokens. These are my actually files of Wilderness.java: [SPOILER=wilderness.java]package com.rs.game.player.controlers; import com.rs.cache.loaders.ObjectDefinitions; import com.rs.game.Animation; import com.rs.game.Entity; import com.rs.game.ForceMovement; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.npc.NPC; import com.rs.game.item.Item; import com.rs.game.player.content.Pots; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Utils; public class Wilderness extends Controler { private boolean showingSkull; [MENTION=15855]Over[/MENTION]ride public void start() { checkBoosts(player); } public static void checkBoosts(Player player) { boolean changed = false; int level = player.getSkills().getLevelForXp(Skills.ATTACK); int maxLevel = (int) (level + 5 + (level * 0.15)); if (maxLevel < player.getSkills().getLevel(Skills.ATTACK)) { player.getSkills().set(Skills.ATTACK, maxLevel); changed = true; } level = player.getSkills().getLevelForXp(Skills.STRENGTH); maxLevel = (int) (level + 5 + (level * 0.15)); if (maxLevel < player.getSkills().getLevel(Skills.STRENGTH)) { player.getSkills().set(Skills.STRENGTH, maxLevel); changed = true; } level = player.getSkills().getLevelForXp(Skills.DEFENCE); maxLevel = (int) (level + 5 + (level * 0.15)); if (maxLevel < player.getSkills().getLevel(Skills.DEFENCE)) { player.getSkills().set(Skills.DEFENCE, maxLevel); changed = true; } level = player.getSkills().getLevelForXp(Skills.RANGE); maxLevel = (int) (level + 5 + (level * 0.1)); if (maxLevel < player.getSkills().getLevel(Skills.RANGE)) { player.getSkills().set(Skills.RANGE, maxLevel); changed = true; } level = player.getSkills().getLevelForXp(Skills.MAGIC); maxLevel = level + 5; if (maxLevel < player.getSkills().getLevel(Skills.MAGIC)) { player.getSkills().set(Skills.MAGIC, maxLevel); changed = true; } if (changed) player.getPackets().sendGameMessage( "Your extreme potion bonus has been reduced."); } [MENTION=15855]Over[/MENTION]ride public boolean login() { moved(); return false; } [MENTION=15855]Over[/MENTION]ride public boolean keepCombating(Entity target) { if (target instanceof NPC) return true; if (!canAttack(target)) return false; if (target.getAttackedBy() != player && player.getAttackedBy() != target) player.setWildernessSkull(); return true; } [MENTION=15855]Over[/MENTION]ride public boolean canAttack(Entity target) { if (target instanceof Player) { Player p2 = (Player) target; if (player.isCanPvp() && !p2.isCanPvp()) { player.getPackets().sendGameMessage( "That player is not in the wilderness."); return false; } if (canHit(target)) return true; // warning message here return false; } return true; } [MENTION=15855]Over[/MENTION]ride public boolean canHit(Entity target) { if (target instanceof NPC) return true; Player p2 = (Player) target; if (Math.abs(player.getSkills().getCombatLevel() - p2.getSkills().getCombatLevel()) > getWildLevel()) return false; return true; } [MENTION=15855]Over[/MENTION]ride public boolean processMagicTeleport(WorldTile toTile) { if (getWildLevel() > 20) { player.getPackets().sendGameMessage( "A mysterious force prevents you from teleporting."); return false; } if (player.getTeleBlockDelay() > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage( "A mysterious force prevents you from teleporting."); return false; } return true; } [MENTION=15855]Over[/MENTION]ride public boolean processItemTeleport(WorldTile toTile) { if (getWildLevel() > 20) { player.getPackets().sendGameMessage( "A mysterious force prevents you from teleporting."); return false; } if (player.getTeleBlockDelay() > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage( "A mysterious force prevents you from teleporting."); return false; } return true; } [MENTION=15855]Over[/MENTION]ride public boolean processObjectTeleport(WorldTile toTile) { Long teleblock = (Long) player.getTemporaryAttributtes().get( "TeleBlocked"); if (teleblock != null && teleblock > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage( "A mysterious force prevents you from teleporting."); return false; } return true; } public void showSkull() { player.getInterfaceManager().sendTab(player.getInterfaceManager().hasRezizableScreen() ? 10 : 19, 381); } public static boolean isDitch(int id) { return id >= 1440 && id <= 1444 || id >= 65076 && id <= 65087; } [MENTION=15855]Over[/MENTION]ride public boolean processObjectClick1(final WorldObject object) { if (isDitch(object.getId())) { player.setInfiniteStopDelay(); player.setNextAnimation(new Animation(6132)); final WorldTile toTile = new WorldTile(player.getX(), object.getY() - 1, object.getPlane()); player.setNextForceMovement(new ForceMovement( new WorldTile(player), 1, toTile, 2, 2)); final ObjectDefinitions objectDef = object.getDefinitions(); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.setNextFaceWorldTile(new WorldTile( object.getCoordFaceX(objectDef.getSizeX(), objectDef.getSizeY(), object.getRotation()), object.getCoordFaceY(objectDef.getSizeX(), objectDef.getSizeY(), object.getRotation()), object.getPlane())); removeIcon(); removeControler(); player.resetStopDelay(); } }, 2); return false; } return true; } [MENTION=15855]Over[/MENTION]ride public void sendInterfaces() { if (isAtWild(player)) showSkull(); } [MENTION=15855]Over[/MENTION]ride public boolean sendDeath() { removeIcon(); removeControler(); return true; // TODO custom dead without graves } [MENTION=15855]Over[/MENTION]ride public void moved() { boolean isAtWild = isAtWild(player); boolean isAtWildSafe = isAtWildSafe(); if (!showingSkull && isAtWild && !isAtWildSafe) { showingSkull = true; player.setCanPvp(true); showSkull(); player.getAppearence().generateAppearenceData(); } else if (showingSkull && (isAtWildSafe || !isAtWild)) { removeIcon(); } else if (!isAtWildSafe && !isAtWild) { player.setCanPvp(false); removeIcon(); removeControler(); } else if (Kalaboss.isAtKalaboss(player)) { removeIcon(); player.setCanPvp(false); removeControler(); player.getControlerManager().startControler("Kalab oss"); } } public void removeIcon() { if (showingSkull) { showingSkull = false; player.setCanPvp(false); player.getPackets() .closeInterface( player.getInterfaceManager().hasRezizableScreen() ? 10 : 19); player.getAppearence().generateAppearenceData(); player.getEquipment().refresh(null); } } [MENTION=15855]Over[/MENTION]ride public boolean logout() { return false; // so doesnt remove script } [MENTION=15855]Over[/MENTION]ride public void forceClose() { removeIcon(); } public static final boolean isAtWild(WorldTile tile) { return (tile.getX() >= 2940 && tile.getX() <= 3395 && tile.getY() >= 3525 && tile.getY() <= 4000) || (tile.getX() >= 3264 && tile.getX() <= 3279 && tile.getY() >= 3279 && tile.getY() <= 3672) || (tile.getX() >= 2756 && tile.getX() <= 2875 && tile.getY() >= 5512 && tile.getY() <= 5627) || (tile.getX() >= 3158 && tile.getX() <= 3181 && tile.getY() >= 3679 && tile.getY() <= 3697) || (tile.getX() >= 3280 && tile.getX() <= 3183 && tile.getY() >= 3883 && tile.getY() <= 3888); } public boolean isAtWildSafe() { return (player.getX() >= 2940 && player.getX() <= 3395 && player.getY() <= 3524 && player.getY() >= 3523); } public int getWildLevel() { return (player.getY() - 3520) / 8 + 1; } [MENTION=15855]Over[/MENTION]ride public boolean handleItemOption1(Player playerr, int slotId, int itemId, Item item) { if (itemId != item.getId()) return false; switch (itemId) { case -1: //Noobs return false; } return true; } } [/SPOILER] If you could help me, please PM me. A big thanks.
  10. They're not working... Both... Any others ideas?
  11. Hello everybody, I need help with player permissions. I can be admin for the people was admin in the source. That was already in the source (server). [PHP]if (username.equalsIgnoreCase("victoria")) { rights = 2;[/PHP] When I put that, save and compile, it doesn't work... [PHP]if (username.equalsIgnoreCase("RebornX")) { rights = 2;[/PHP] Any ideas?
  12. Yes, but where I should see them? in which folder?
  13. [quote name='Bravey']Hi , right click your compiler and click 'edit' and then go to control panel -> system > advanced settings -> environment settings -> copy the path and replace old java "code" in your "compiler" with your java "code". Please tell me more about the connection error.[/QUOTE] For the connection errors, It's only I can't connect it. The client just don't load. I try, re-try... It doesn't work. Where do I need to edit files, cause I think I did all.. :s
  14. I have a problem when I try to connect the servers. Also, the compiler seems not working. Add my Skype: Sabrina.Secret.Legacy MSN: [email][email protected][/email] I'll perhaps see to donate, if you help very good. Thanks :D
×