aaand it works
aaand i cant post the imgur link~ soooo approve thinky~ <.<
i try it again "imgur. com/FaZ QQL0"
aaand it works
aaand i cant post the imgur link~ soooo approve thinky~ <.<
i try it again "imgur. com/FaZ QQL0"
Last edited by DarkIrata; 10-12-2013 at 08:55 AM.
One problem I've seen (And got super upset about ;-
Is that you can't shift-click items into/out of Piggy Banks/Safes
I was in the dungeon, and was shift-clicking my items into my safe (OR SO I THOUGHT)
They just went into the garbage.. :c
It wasn't a big deal, I didn't lose anything tooooo important.
But if you could look into that?
I found some time to quickly look into it.
if(player[myPlayer].chest = -1) no chest is open
if(player[myPlayer].chest = -2) piggy bank is open
if(player[myPlayer].chest = -3) vault is open
I believe these items get stored in player[myplayer].bank and bank2
the piggy bank and vault behave uniquely compared to chests so so it will require some extra digging.
Once I find more time, i'll try to bang it out.
I wonder if it could just be so easy as to add an OR (||) statement to each if statement where it checks to see if a chest is open..
and change some of the other chest methods to match the safe and bank within your code also adding the or statement for each, maybe that'll work?Code:else if (player[myPlayer].chest > -1 || player[myPlayer].chest > -2 || player[myPlayer].chest > -3))
Your else if logic would break there. The code would run if player.chest is equal -1 which is when the player has no chest open.
I could do something like this
Only problem is that this would only work for inventory to chest.Code:else if(player[myPlayer].chest != -1)) { Item[] currentOpenChestItems; if(player[myplayer].chest >-1) currentOpenChestItems = chest[player[myPlayer].chest]; else if(player[myplayer].chest == -2) currentOpenChestItems = player[myPlayer].bank; else if(player[myplayer].chest == -3) currentOpenChestItems = player[myPlayer].bank2; //blah blah blah }
To get it working in the other direction, I have to find the code that handles the items getting clicked in the piggy bank and the vault separately. Also I have to look into how these actions are handled in multiplayer. I havn't used the piggy bank and vault, but from my understanding, piggy bank items are stored on the server and vault items are stored to the character. I'll start hacking away :P
Last edited by chatrat12; 10-12-2013 at 06:23 PM.
I got it all working. There was no extra network work for the piggy banks and vaults. None of that data actually reaches the server. So there are 2 new blocks of code where the user clicks on a piggy bank item or a vault item. the code is very similar to putting items from moving items from the chest to the inventory. Explaining where to put all of the code would be kind of annoying. What if I post the Main.cs and the .exe so other people can use it. Am I aloud to do that?
Yep, i'm thinking about adding this feature to so this would be kinda cool.
You can past in your code here
Pastebin.com - #1 paste tool since 2002!
Edit:
I really fucked this up:
Last edited by infinest; 10-12-2013 at 09:43 PM.
Lol, is that from trying to add shift clicking? The Main.cs is 36,000 lines long, seems like too much for pastebin. And like I said, explaining where to put it all would be a pain. I released the mod on the Terraria Online forum here. I'll be posting the Main.cs in that thread. I decided to put it there because this forum is more about hacking than modding :P
Last edited by chatrat12; 10-12-2013 at 10:17 PM.
Alright! And nope i think you'd have to be kinda stupid to fuck up lighting when trying to accomplish something that has nothing to do with it
Just made a little mistake, when adding a mouseflashlight.
Anyways good to hear you'll be posting it, also if pastebin doesn't allow that long pastes, just upload it to media fire.