Jump to content

artizan

Member
  • Content count

    92
  • Joined

  • Last visited

  1. artizan

    NPC Name In Dialogue

    you need to edit this throughout the cache, So what you need to do is take as example Frosty's cache editor. It allows you to create new npc's and items. Once you got frosty's cache editor then: 1- Load your cache 2- Choose npc's 3- Find the npc ID from who you want to change the name. *bad grammar lawl* 4- Click Edit, And change the npc's Name Then save it. close your rsps, and restart it. it is possible that if you start your server, and then your client that it wont start or not even load, that is couse the editor corrupted the cache, What you want to do is to take a random npc from the list, press edit. and just hit the save button. Then restart your server. Keep repeating till you can start it. Sorry for the bad explaination, if you can't get it. then add me on skype bjorn.schonenberg will show you how to do it.
  2. Hi there, i was wondering if people get the same error as i do and if you know how to fix it? its about frosty's cache editor, Every time if i pack npc's then everything go's fine untill the models. If i save the npc then every single setting is saved, except for the models that i choose. i Keep getting this error for mistypes. [IMG]https://scontent-b-ams.xx.fbcdn.net/hphotos-xpa1/t1.0-9/1525209_477633909048120_8201806428323327100_n.jpg[/IMG] Even if i copy all the settings from another npc then this error persists.. is there any way to fix this? all help is appreciated!
  3. artizan

    718 rsps cutscenes.

    Edit: Figured it all out now by time, Can be closed....
  4. Hi there, i was trying to do is, when a player interacts with a object, then the object will temporary spawns another object. on its place, Then if you use the new object, it turns out into another object temporary. So what i mainly did was i used woodcutting.java as a base. and no i do not want this to receive xp, and not as farming. this was just for trying making objects spawn other objects. [[CODE]package com.rs.game.player.actions; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.Animation; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.ForceTalk; import com.rs.utils.Utils; public final class EvilFarming extends Action { public static enum EvilFarmingDefinitions { SEEDLING1(1, 1800, -1, 20, 5, 11392, 1800, 1), SEEDLING2(1, 1800, -1, 20, 5, 11393, 1800, 2), SEEDLING3(1, 1800, -1, 20, 5, 11394, 1800, 3), SEEDLING4(1, 1800, -1, 20, 5, 11395, 1800, 4), EVILSEED1(1, 1800, -1, 20, 5, 11922, 1800, 5), EVILSEED2(1, 1800, -1, 20, 5, 11923, 1800, 6), EVILSEED3(1, 1800, -1, 20, 5, 11924, 1800, 7), EVILSEED4(1, 1800, -1, 120, 17, 11927, 1800, 1), IVYROCKS(1, 1800, -1, 120, 17, 38443, 1800, 10); private int level; private double xp; private int logsId; private int logBaseTime; private int logRandomTime; private int stumpId; private int respawnDelay; private int randomLifeProbability; private EvilFarmingDefinitions(int level, double xp, int logsId, int logBaseTime, int logRandomTime, int stumpId, int respawnDelay, int randomLifeProbability) { this.level = level; this.xp = xp; this.logsId = logsId; this.logBaseTime = logBaseTime; this.logRandomTime = logRandomTime; this.stumpId = stumpId; this.respawnDelay = respawnDelay; this.randomLifeProbability = randomLifeProbability; } public int getLevel() { return level; } public double getXp() { return xp; } public int getLogsId() { return logsId; } public int getLogBaseTime() { return logBaseTime; } public int getLogRandomTime() { return logRandomTime; } public int getStumpId() { return stumpId; } public int getRespawnDelay() { return respawnDelay; } public int getRandomLifeProbability() { return randomLifeProbability; } } private WorldObject tree; private EvilFarmingDefinitions definitions; private int emoteId; private boolean usingBeaver = false; private int axeTime; public EvilFarming(WorldObject tree, EvilFarmingDefinitions definitions) { this.tree = tree; this.definitions = definitions; } @Override public boolean start(Player player) { if (!checkAll(player)) return false; player.getPackets() .sendGameMessage( usingBeaver ? "Your beaver uses its strong teeth to chop down the tree..." : "You attempt to light the " + (EvilFarmingDefinitions.IVYROCKS == definitions ? "EvilFarming" : "EvilFarming") + "...", true); setActionDelay(player, getWoodcuttingDelay(player)); return true; } private int getWoodcuttingDelay(Player player) { int summoningBonus = player.getFamiliar() != null ? (player .getFamiliar().getId() == 6808 || player.getFamiliar().getId() == 6807) ? 10 : 0 : 0; int wcTimer = definitions.getLogBaseTime() - (player.getSkills().getLevel(8) + summoningBonus) - Utils.getRandom(axeTime); if (wcTimer < 1 + definitions.getLogRandomTime()) wcTimer = 1 + Utils.getRandom(definitions.getLogRandomTime()); wcTimer /= player.getAuraManager().getWoodcuttingAccurayMultiplier(); return wcTimer; } private boolean checkAll(Player player) { if (!setAxe(player)) { player.getPackets().sendGameMessage("You feed the seedling with fear, The seedling gets stronger!"); return false; } if (!hasFiremakingLevel(player)) return false; if (!player.getInventory().hasFreeSlots()) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return false; } return true; } private boolean hasFiremakingLevel(Player player) { if (definitions.getLevel() > player.getSkills().getLevel(8)) { player.getPackets().sendGameMessage("You need a Firemaking level of " + definitions.getLevel() + " to feed this seedling."); return false; } return true; } private boolean setAxe(Player player) { int level = player.getSkills().getLevel(1); int weaponId = player.getEquipment().getWeaponId(); if (weaponId != -1) { switch (weaponId) { case 23014: //Burning Log if (level >= 1) { emoteId = 11971; axeTime = 250; return true; } break; } } if (player.getInventory().containsOneItem(23014)) { if (level >= 1) { //Burning Log emoteId = 16700; axeTime = 13; return true; } } return false; } public static int getAxeAnim(Player player) { int level = player.getSkills().getLevel(8); int weaponId = player.getEquipment().getWeaponId(); if (weaponId != -1) { switch (weaponId) { case 23014: //Logs if (level >= 1) { return 2846; } break; } } if (player.getInventory().containsOneItem(23014)) { if (level >= 1) { return 2846; } } return -1; } private boolean hasAxe(Player player) { if (player.getInventory().containsOneItem(23014)) return true; int weaponId = player.getEquipment().getWeaponId(); if (weaponId == -1) return false; switch (weaponId) { case 23014://Logs return true; default: return false; } } @Override public boolean process(Player player) { player.setNextAnimation(new Animation(usingBeaver ? 1 : emoteId)); return checkTree(player); } private boolean usedDeplateAurora; @Override public int processWithDelay(Player player) { addLog(player); if (!usedDeplateAurora && (1 + Math.random()) < player.getAuraManager() .getChanceNotDepleteMN_WC()) { usedDeplateAurora = true; } else if (Utils.getRandom(definitions.getRandomLifeProbability()) == 0) { long time = definitions.respawnDelay * 600; World.spawnTemporaryObject( new WorldObject(definitions.getStumpId(), tree.getType(), tree.getRotation(), tree.getX(), tree.getY(), tree.getPlane()), time); if (tree.getPlane() < 3 && definitions != EvilFarmingDefinitions.IVYROCKS) { WorldObject object = World.getObject(new WorldTile(tree.getX() - 1, tree.getY() - 1, tree.getPlane() + 1)); if (object == null) { object = World.getObject(new WorldTile(tree.getX(), tree .getY() - 1, tree.getPlane() + 1)); if (object == null) { object = World.getObject(new WorldTile(tree.getX() - 1, tree.getY(), tree.getPlane() + 1)); if (object == null) { object = World.getObject(new WorldTile(tree.getX(), tree.getY(), tree.getPlane() + 1)); } } } if (object != null) World.removeTemporaryObject(object, time, false); } player.setNextAnimation(new Animation(-1)); return -1; } if (!player.getInventory().hasFreeSlots()) { player.setNextAnimation(new Animation(-1)); player.getPackets().sendGameMessage( "Not enough space in your inventory."); return -1; } return getWoodcuttingDelay(player); } private void addLog(Player player) { double xpBoost = 1.00; if (!hasFullOutfit(player) && player.getEquipment().getChestId() == 10939) xpBoost += 0.008; if (!hasFullOutfit(player) && player.getEquipment().getLegsId() == 10940) xpBoost += 0.006; if (!hasFullOutfit(player) && player.getEquipment().getHatId() == 10941) xpBoost += 0.004; if (!hasFullOutfit(player) && player.getEquipment().getBootsId() == 10933) xpBoost += 0.002; if (hasFullOutfit(player)) xpBoost += 1.500; if (player.getEquipment().getWeaponId() == 13661 && Utils.random(1000) < 300) { player.sendMessage("Your inferno adze burns the logs instantly."); player.getSkills().addXp(Skills.FIREMAKING, definitions.getXp() * xpBoost); } else { player.getSkills().addXp(Skills.FIREMAKING, definitions.getXp() * xpBoost); } if (definitions == EvilFarmingDefinitions.IVYROCKS) { player.getPackets().sendGameMessage("The seedling grows as it consumes all the fear.", true); } else { String logName = ItemDefinitions.getItemDefinitions(definitions.getLogsId()).getName().toLowerCase(); player.getPackets().sendGameMessage("The seedling grows as it consumes all the fear.", true); } } public boolean hasFullOutfit(Player player) { if (player.getEquipment().getChestId() == 10939 && player.getEquipment().getLegsId() == 10940 && player.getEquipment().getHatId() == 10941 && player.getEquipment().getBootsId() == 10933) return true; return false; } private boolean checkTree(Player player) { return World.getRegion(tree.getRegionId()).containsObject(tree.getId(), tree); } @Override public void stop(Player player) { setActionDelay(player, 3); } } [/CODE] [CODE] if (object.getId() == 11391) { player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.SEEDLING1)); } else if (id == 11392) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.SEEDLING2)); else if (id == 11393) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.SEEDLING3)); else if (id == 11394) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.SEEDLING4)); else if (id == 11395) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.EVILSEED1)); else if (id == 11922) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.EVILSEED2)); else if (id == 11923) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.EVILSEED3)); else if (id == 11924) player.getActionManager().setAction(new EvilFarming(object,EvilFarmingDefinitions.EVILSEED4));[/CODE] the result that i wanted to get was like in this photo. [IMG]https://scontent-a-ams.xx.fbcdn.net/hphotos-xaf1/t1.0-9/10462666_474569032687941_578874284207507060_n.jpg[/IMG] so if you used, object 1, it turns out in object 2, then use object 2 then it turns out in object 3. but momently it does not update the curent model to the next ID, when object 11391 turns into object 11392. then i cant use it anymore. But if i spawn object 11392 on another spot. then object 11392 turns into object 11393 after using. So my question was, is there any possible way of making this work? and not only that, is it possible to make objects spawn temporary objects *more then one*. Help is greatly appreciated!
  5. artizan

    718 Hide UI

    Y, but thats what i cant get to work, i had a command wich removed interfaces and their componend id's but then it crashes on a attempt of hiding the minimap etc.
  6. the tutorial is for PI i work on 718 :/
  7. Hi there, i was wondering is it possible to make npc's doing a animation looped? so not once, and not with a interaction. But just a looped animation. Like a idle animation??
  8. artizan

    718 Hide UI

    Hi there, Is it possible to hide the whole UI for the rsps? without having to use specific commands such as hiding interface ID: 1,1534,253 etc. Is there a way of hiding the full ui at once? Best regards Artizan. [IMG]https://dl-web.dropbox.com/get/runescape%20private%20server/hide%20inter.png?_subject_uid=309522189&w=AAAb-f0njuZQ7KW5a_5X7QfIjqs9iDFgm3dhUYedXM8X1A[/IMG]
  9. Hi there i had a issue with the chathead of the werewolf. Everytime if i make a dialogue with a new created npc *werewolf with the right chathat* then once you talk to him you will see a human mouth and a really tiny werewolf head. like this [ATTACH]10508[/ATTACH] how can i make it like, That the werewolf head is bigger, and the human head wont show?
  10. hi i want to get the animated background option for the client to always be toggled on, But if i only knew how to do it. Is there any way to make the animated background always play when the client gets started up? since on every client restart the button gets toggled off. [ATTACH=CONFIG]10465[/ATTACH] Thanks.
  11. artizan

    Dwarf Cannon

    Okey, Update: I got the setup working. i can set my cannon up but now i cant load the cannon so it starts shooting.. Maybe any 1 knows a specific part where i need to look? right now im really clueless...
  12. artizan

    Dwarf Cannon

    Hi there i think it is an easy fix but it is something that i cant figure out. Im trying to get the dwarfcannon to work but i keep getting 2 errors in player.java the code: [QUOTE] if (DwarfCannon == null) DwarfCannon = new DwarfCannon(this); [/QUOTE] Error: [ATTACH=CONFIG]10430[/ATTACH] its about a missing import but i have no clue about wich one... all help is appreciated :D
  13. Ressetting the modem+router Adding new port forward doesnt work, Still my Port 43594 stays Closed And keeps getting time-outs..
  14. Okey i just found out That canyouseeme.org cant see my 43594 port open, Even though i port forwarded it. So now im really out of knowledge here, Any 1 that wants to take the time to help That would be lovely, Skype: Bjorn.schonenberg *With voice, And TV8
  15. [COLOR=#333333]So i changed the client settings to the new IP adress, And its still port forwarded correctly, But now the clients cant connect at all, And yes i compiled the client. Read that line i port forwarded it correctly, From my Laptop Ip 192.168.*.* And port 43594, UDP and TCP On BOTH The lines are added in advanced Firewall, [/COLOR]
×