Git Product home page Git Product logo

invsee's Introduction

InvSee

TShock plugin. Utilizes SSC technology to copy a player's inventory.

Commands

invsee (-s[ave])|<player name> - The main command. Will copy target player's inventory, if possible. Will also generate a backup of your character's inventory. The backup will only be generated if one is not in place - this prevents the loss of your precious items when copying multiple players in a row. If, while copying a player's inventory, you wish to make any changes to it, you may change it at will and then execute invsee -s to save any changes made to that player's inventory. Last but not least, use invsee with no parameters to restore your inventory, destroying the backup in the proccess (simple, huh?).

Inventories are automatically restored upon leaving. Crashes and connection losses are exceptions - try not to hang around with other's inventories for too long. A fix might be implemented in the future.

Permissions

invsee.main - Required to use the invsee command.

invsee.save - Required to save changes made to a player's inventory.

invsee.user - Combine with the above to allow copying offline players (users).

invsee's People

Contributors

axiskriel avatar bippity avatar marcus101rr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

invsee's Issues

Prefix Loss & Prefix Not Loading sometimes

Issue 1: When viewing another player's inventory, it fails to load the prefixes occasionally, and requires you to reuse the command twice or more to finally get their prefixes.

Issue 2: When restoring your own inventory, your prefixes are gone for good. This was fixed in TsHock apparently, but still affects Invsee.

InvSee only grabs info from database

Issue: You can invsee a player, however, it is only from the database that currently is saved. It doesn't load the active inventory of an online player. You must do /save first, and then /invsee to see an updated inventory.

Null Reference

                            TShock.CharacterDB.database.Query(
                                "UPDATE tsCharacter SET Health = @0, MaxHealth = @1, Mana = @2, MaxMana = @3, Inventory = @4, spawnX = @6, spawnY = @7, hair = @8, hairDye = @9, hairColor = @10, pantsColor = @11, shirtColor = @12, underShirtColor = @13, shoeColor = @14, hideVisuals = @15, skinColor = @16, eyeColor = @17, questsCompleted = @18 WHERE Account = @5;",
                                playerData.health, playerData.maxHealth, playerData.mana, playerData.maxMana, NetItem.ToString(playerData.inventory), player.UserID, player.TPlayer.SpawnX, player.TPlayer.SpawnY, player.TPlayer.hair, player.TPlayer.hairDye, TShock.Utils.EncodeColor(player.TPlayer.hairColor), TShock.Utils.EncodeColor(player.TPlayer.pantsColor), TShock.Utils.EncodeColor(player.TPlayer.shirtColor), TShock.Utils.EncodeColor(player.TPlayer.underShirtColor), TShock.Utils.EncodeColor(player.TPlayer.shoeColor), TShock.Utils.EncodeBitsByte(player.TPlayer.hideVisual), TShock.Utils.EncodeColor(player.TPlayer.skinColor), TShock.Utils.EncodeColor(player.TPlayer.eyeColor), player.TPlayer.anglerQuestsFinished);

player is null

We're begging

Can you update this plugin? This is so useful.. you are genius!

Sorry im new

Dude, where can i get the dll? im not an programmer, sorry.

Update

Please update this plugin, it's really useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.