[ITEM/FUNCTION] Account Gold Bank - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Submissions (/Forum-Script-Submissions) +--- Thread: [ITEM/FUNCTION] Account Gold Bank (/Thread-ITEM-FUNCTION-Account-Gold-Bank) Pages: 1 2 |
RE: [ITEM/FUNCTION] Account Gold Bank - escribano - 09-08-2015 04:47 AM Hummmm it's strange... i've never done this way, i've created a "handler" to change the type back to t_eq_bank_box after the container closes. But it should be working... you have to remember that sphere sometimes changes the character list order (i don't understand why.. but sometimes the order is changed). You can compare the UID from the desired player insted of the number of the character list... this way is a little more slow, but its more acccurate! Code: [FUNCTION open_bank_char] RE: [ITEM/FUNCTION] Account Gold Bank - pointhz - 09-08-2015 04:52 AM Not working. I don't think there is a way to do it tbh xD To totally access another character bank without moving the items temporary to another container. Even with the TYPE of a container, another character would not be able to access it because it would be too far away. And even by moving all items to another container, unless that container was the player bankbox or backpack (which would cause weight/space issues), it wouldn't work because the item would've to be near the player. The only solution would be creating a static chest near city banks which could not be opened, but once double-clicked, would spawn the account character banks inside and open them for SRC. After X time the chests would return to each character bankbox. RE: [ITEM/FUNCTION] Account Gold Bank - escribano - 09-08-2015 05:00 AM There is no limits to open a container if its been opened by an script (as long as i know and tryied). You can do this too but i still don't think this is the best idea... i already had thousends of problems cuz of strange behaviors of sphere... i keep thinkg if this item transfer happens when sphere starts to save the world, if there is an resync or anything that could mess with the server processing could be a hudge problem. I've allready sayed my opinion: share the entire bank, create an systen to players improve theirs banks to store more itens and this kind of stuff If is there something more i could help, feel free to ask! See yah! Other thing you can do is this: 1) Creates a dialog that shows all the charactes 2) When the character is choosen, change the layer 29 (bank box) type to t_container, change the attr to invis and move the box to the player bank (inside the bank) 3) Open the box and create a event to "restore" the bank after the player logout (this is the best way to restore the bank back, its a little hard to trigger when the container is closed, this way the bank will always back to the right character) NOTE: You have to create some verifications to see if the box you want to open isn't already inside the bank of the player... if you won't do this there is a chance that some players "lost" theys boxes RE: [ITEM/FUNCTION] Account Gold Bank - XuN - 09-09-2015 05:54 PM I had this done since some years ago, it should keep working... Code: [function f_banktransfer] Just add f_banktransfer to a ON=@Login in a global event and you are done. This will move the entire bank to the character you are using now so everything will work 'as it should' in sphere's mind ... however if you already had some characters with banked items you'll have to create one 'installation' function to move the items of these characters to the bank of one of their account. @Pointhz: I don't know in other emus or OSI, but in Sphere the last character used is always on top of the list (character.0). RE: [ITEM/FUNCTION] Account Gold Bank - pointhz - 09-10-2015 12:46 AM Thanks Xun! I've scripted a chest allowing a character to do what I originally wanted: Temporarily access another character bank without having to login that character. Players double-click the scripted chest, pick which character bank they want to access through a custom dialog, and then all items from the chosen character bankbox are transferred to a new chest placed inside the scripted chest. After 5 minutes, all items remaining in that new chest will be transferred back to its original container/owner (the other character bankbox). The 5 minutes delay is merely to update the character bankbox. You are free to use the scripted chest as many times as you want. Isn't perfect, but I think it will do and has no bugs. If anyone wants it feel free to ask and I'll share. RE: [ITEM/FUNCTION] Account Gold Bank - dafty - 09-11-2015 09:26 PM if u can share so share please i want to test this one. tank u RE: [ITEM/FUNCTION] Account Gold Bank - pointhz - 09-11-2015 10:11 PM Ok, will do in a new topic soon, so it can be better explained |