Jump to content

Search the Community

Showing results for tags 'definitions'.



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 11 results

  1. [CODE]package com.enso.game.player; import com.enso.cache.Cache; import com.enso.cache.loaders.VarBitDefinitions; public class VarsManager { private static final int[] masklookup = new int[32]; static { int i = 2; for (int i2 = 0; i2 < 32; i2++) { masklookup[i2] = i - 1; i += i; } } private int[] values; private Player player; public VarsManager(Player player) { this.player = player; values = new int[Cache.STORE.getIndexes()[2].getLastFileId(16) + 1]; } public void sendVar(int id, int value) { sendVar(id, value, false); } public void forceSendVar(int id, int value) { sendVar(id, value, true); } private void sendVar(int id, int value, boolean force) { if (id < 0 || id >= values.length) // temporarly return; if (force || values[id] == value) return; setVar(id, value); sendClientVarp(id); } public void setVar(int id, int value) { if (id == -1) // temporarly return; values[id] = value; } public int getValue(int id) { return values[id]; } public void forceSendVarBit(int id, int value) { setVarBit(id, value, 0x1 | 0x2); } public void sendVarBit(int id, int value) { setVarBit(id, value, 0x1); } public void setVarBit(int id, int value) { setVarBit(id, value, 0); } public int getBitValue(int id) { VarBitDefinitions defs = VarBitDefinitions.getClientVarpBitDefinitions(id); return values[defs.baseVar] >> defs.startBit & masklookup[defs.endBit - defs.startBit]; } private void setVarBit(int id, int value, int flag) { if (id == -1) // temporarly return; VarBitDefinitions defs = VarBitDefinitions.getClientVarpBitDefinitions(id); int mask = masklookup[defs.endBit - defs.startBit]; if (value < 0 || value > mask) value = 0; mask <<= defs.startBit; int varpValue = (values[defs.baseVar] & (mask ^ 0xffffffff) | value << defs.startBit & mask); if ((flag & 0x2) != 0 || varpValue != values[defs.baseVar]) { setVar(defs.baseVar, varpValue); if ((flag & 0x1) != 0) sendClientVarp(defs.baseVar); } } [MENTION=19271]supp[/MENTION]ressWarnings("deprecation") private void sendClientVarp(int id) { player.getPackets().sendVar(id, values[id]); } } [/CODE] [CODE]package com.enso.cache.loaders; import java.io.IOException; import java.util.concurrent.ConcurrentHashMap; import com.enso.cache.Cache; import com.enso.io.InputStream; public final class VarBitDefinitions { private static final ConcurrentHashMap<Integer, VarBitDefinitions> varpbitDefs = new ConcurrentHashMap<Integer, VarBitDefinitions>(); public int id; public int baseVar; public int startBit; public int endBit; public static final void main(String[] args) throws IOException { Cache.init(); System.out.println("There are currently: " + Cache.STORE.getIndexes()[22].getLastArchiveId() * 0x3ff + " bitConfigs."); // List<BitConfigDefinitions> configs = new // ArrayList<BitConfigDefinitions>(); for (int i = 0; i < Cache.STORE.getIndexes()[22].getLastArchiveId() * 0x3ff; i++) { VarBitDefinitions cd = getClientVarpBitDefinitions(i); if (cd.baseVar == 563) { System.out.println("BitConfig: " + i + ", from bitshift:" + cd.startBit + ", till bitshift: " + cd.endBit+", "+cd.baseVar); } } } public static final VarBitDefinitions getClientVarpBitDefinitions(int id) { VarBitDefinitions script = varpbitDefs.get(id); if (script != null)// open new txt document return script; byte[] data = Cache.STORE.getIndexes()[22].getFile(id >>> 1416501898, id & 0x3ff); script = new VarBitDefinitions(); script.id = id; if (data != null) script.readValueLoop(new InputStream(data)); varpbitDefs.put(id, script); return script; } private void readValueLoop(InputStream stream) { for (;;) { int opcode = stream.readUnsignedByte(); if (opcode == 0) break; readValues(stream, opcode); } } private void readValues(InputStream stream, int opcode) { if (opcode == 1) { baseVar = stream.readUnsignedShort(); startBit = stream.readUnsignedByte(); endBit = stream.readUnsignedByte(); } } private VarBitDefinitions() { } } [/CODE] player [CODE] private transient VarsManager varsManager;[/CODE] [CODE]varsManager = new VarsManager(this);[/CODE] [CODE] public VarsManager getVarsManager() { return varsManager; } [/CODE] creds to dkk
  2. I am trying to create a new npc but how do I give it a range, def, str level? I looked in the combatdifinitions.xml and all it ask for is health, max hit and the animations you are using?. I have combat added to my npc but it seems too weak so I want to make it stronger in its mage range and melee attacks but cant find out how to increase those parameters. were and how do i increase the str range and def of an npc. Thank you
  3. [b]Weight definition manager:[/b] [code]package com.runescape.world.entity.actor.player.util; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel.MapMode; import java.util.logging.Logger; /** * The weight definition manager. * [MENTION=52317]auth[/MENTION]or Cyberus * */ public class WeightDefinition { /** * Logger instance. */ private static final Logger logger = Logger.getLogger(WeightDefinition.class.getName()); /** * The count of items. */ public static final int ITEM_COUNT = 7956; /** * The definition array. */ private static WeightDefinition[] definitions; /** * Gets a definition for the specified id. * [MENTION=75098]Para[/MENTION]m id The id. * @return The definition. */ public static WeightDefinition forId(int id) { return definitions[id]; } /** * Loads the weight definitions. * @throws IOException if an I/O error occurs. */ public static void init() throws IOException { logger.info("Loading definitions..."); definitions = new WeightDefinition[ITEM_COUNT]; for(int i = 0; i < ITEM_COUNT; i++) { definitions[i] = new WeightDefinition(i, 0); } RandomAccessFile raf = new RandomAccessFile("data/weights.bin", "r"); try { ByteBuffer buffer = raf.getChannel().map(MapMode.READ_ONLY, 0, raf.length()); int count = buffer.getShort(); for(int i = 0; i < count; i++) { int id = buffer.getShort(); double weight = buffer.getDouble(); definitions[id] = new WeightDefinition(id, weight); } logger.info("Loaded " + definitions.length + " definitions."); } finally { raf.close(); } } /** * The id. */ private final int id; /** * The weight. */ private final double weight; /** * Creates the weight definition. * [MENTION=75098]Para[/MENTION]m id The id. * [MENTION=75098]Para[/MENTION]m name The weight. */ private WeightDefinition(int id, double weight) { this.id = id; this.weight = weight; } /** * Gets the id. * @return The id. */ public int getId() { return id; } /** * Gets the weight. * @return The weight. */ public double getWeight() { return weight; } } [/code] [b]317 packets:[/b] [code] /** * Sends the players weight. * [MENTION=75098]Para[/MENTION]m weight The weight of the player. * @return The action sender instance, for chaining. */ public ActionSender sendWeight(int weight) { player.write(new PacketBuilder(240).putShort(weight).toPacket()); return this; }[/code] [b]377 packets:[/b] [code] /** * Sends the players weight. * [MENTION=75098]Para[/MENTION]m weight The weight of the player. * @return The action sender instance, for chaining. */ public ActionSender sendWeight(int weight) { player.write(new PacketBuilder(174).putLEShort(weight).toPacket()); return this; }[/code] [b]Weight definitions:[/b] [url=http://205.196.121.39/bki323brmr3g/z3ei17dlkjpd60c/weights.bin]weights.bin[/url]
  4. Like the title says... The File Contains 2 Text Documents: 1) NPC Definitions (And yes has their stand and render anims so finding the rest for attacks and such is easy) 2) Emotes List (Includes Every Emote In The 728 Cache) Mediafire Link: [URL="http://www.mediafire.com/?q1117urrd21jfek"]HERE[/URL] I thought I would release this in case there is someone who is still looking for these.
  5. Since the shop is reading the price cache sided and not the price what your server loads, I decided to edit the item def editor of dkk. [IMG]http://i50.tinypic.com/25hfmlv.png[/IMG] [IMG]http://i45.tinypic.com/14kd309.png[/IMG] [IMG]http://i50.tinypic.com/2uyr6v4.png[/IMG] Download link: [url]http://uppit.com/f21dmc3j947e/Item_Def_Editor.zip[/url] Fixed all bugs! If you find another one just say, I will try to fix it. Credits me dragonkk
  6. What is RS

    Item definitions

    I have a 667 source, and I added a cache, but my main file for loader can't find item definition for item 35. Is this a common problem, and can it be fixed?
  7. Edit dl it here: [url]http://www.runelocus.com/forums/showthread.php?72712-Cache-Reader-Editor[/url] And add run batch yourself or dl old one and use that run batch. I wrote the editor from yesterday to today :) hope you enjoy it. Uses my lastest cache editor :). Released open source so maybe you can learn something. Includes option to generate "ukeys" for 614- client official client builts. About 614+ builts. Make generating "ukeys" yourself. This supports current runescape cache and other jagex's proprietity game caches so may be used for alot more than item defs editing :). Not sure if the item defs editor works with 503- because if im correct items defs were located on a different place of cache at 474 revision.. Download Link: [url]http://uppit.com/hayfpg5dq5c2/FileStore2.rar[/url] [IMG]http://i56.tinypic.com/dwds76.png[/IMG] Added 22314th item to cache: [IMG]http://i54.tinypic.com/316819v.png[/IMG] At whip changed models colors add: 944=1500; 1500 is pink :p. 944 is the original red color. Some extra ifnrom. Some model colors: yellow = 8128 blue = -28884 white = 127 green = 18215 red = 944 pink = 1500
  8. I am looking as to why all of my components in my summoning interface are null value pouches, while I should have them all able to summon with all of the charms, shards and pouches. Any ideas to why they're null? [IMG]http://puu.sh/pJU6[/IMG]
  9. hey guys i have recently download dragonkks item definiton editor and i get this error when i try to run [code]java.lang.ArrayIndexOutOfBoundsException: 19 at com.alex.utils.Utils.getItemDefinitionsSize(Utils.java:41) at com.alex.tools.itemsDefsEditor.Application.addAllItems(Application.ja va:183) at com.alex.tools.itemsDefsEditor.Application.initialize(Application.jav a:179) at com.alex.tools.itemsDefsEditor.Application.<init>(Application.java:54 ) at com.alex.tools.itemsDefsEditor.Application$1.run(Application.java:41) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) [/code] can any1 help?
  10. So..I'm trying to change my item bonuses for armour and when i edit it and save and compile it the item bonus is still the same.Is there any solution for this and if so how can i fix this?I cant update item bonuses whatsoever..I'm running on a 562 loading 657 if that helps at all.Thanks
  11. Yep 60% all npc combat definitions excluding emotes. [url]http://pastebin.com/TS4Q3bvT[/url] Credits to Sonicforce41 for getting alot lumby spawns emotes and making guards passive(wikipedia says theire agressive fp). Theyre organized by: 1.//npcId - hitpoints attackAnim defenceAnim deathAnim attackDelay deathDelay respawnDelay maxHit attackStyle attackGfx attackProjectile agressivenessType You just gotta add those to most npcs as some weve done ourselves: attackAnim defenceAnim deathAnim respawnDelay attackGfx attackProjectile. Everything else done :) for all npcs.
×