Jump to content

Search the Community

Showing results for tags 'magiconground'.



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 1 result

  1. I have added full magic on ground packet including tele grab which you need to do yourself (the actual spell). WorldPacketsDecoder: [CODE]else if (packetId == MAGIC_ON_GROUND_PACKET) { MagicOnGroundPacketHandler.handlePacket(player, stream, packetId); }[/CODE] Create [B]new file[/B] in com.rs.net.decoders.handlers. [CODE]package com.enso.net.decoders.handlers; import com.enso.game.item.Item; import com.enso.game.player.Player; import com.enso.game.player.content.MagicAbility; import com.enso.io.InputStream; /** * * [MENTION=52317]auth[/MENTION]or Fuzen Seth * [MENTION=3199]Sin[/MENTION]ce 9.12.2013 * [MENTION=33707]Cat[/MENTION]egory Represents a player using magic spell to a ground item. */ public class MagicOnGroundPacketHandler { /** * Tele grab spell id. */ public static final int TELE_GRAB = 44; /** * The regular spellbook. */ public static final int REGULAR_SPELLBOOK = 190; /** * The ancient spellbook. */ public static final int ANCIENT_SPELLBOOK = -1; /** * The lunar spellbook. */ public static final int LUNAR_SPELLBOOK = -1; /** * We handle the magic on ground packet. * [MENTION=75098]Para[/MENTION]m player * [MENTION=75098]Para[/MENTION]m stream * [MENTION=75098]Para[/MENTION]m packetId */ public static final void handlePacket(Player player, InputStream stream, int packetId) { int inventoryInter = stream.readInt() >> 16; int itemId = stream.readShort(); int junk = stream.readShort(); int itemSlot = stream.readShortLE(); int interfaceSet = stream.readIntV1(); int spellId = interfaceSet & 0xFFF; int magicInter = interfaceSet >> 16; Item item = new Item(itemId); switch (inventoryInter) { case REGULAR_SPELLBOOK: switch (spellId) { /** * Teleportation grab * Takes a item from ground by using magic. */ case TELE_GRAB: MagicAbility.preformTeleGrab(player, item); break; } break; default: if (player.isDeveloperMode()) System.out.println("Item:" + itemId + "slot:" + itemSlot + "spell:" + spellId + "i:" + interfaceSet + "l:" + magicInter + "x:" + junk + "k:" + inventoryInter); } } } [/CODE] Enjoy, [B]don't forget to replace imports from 'enso' to 'rs'.[/B]
×