DysoForums Forum Index DysoForums
 
GalleryGallery   Donate to DysotopiaDonate   Dysotopia.com homepageDyso.com
SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStats   RegisterRegister 
 Login to check your private messagesLogin to check your private messages   LoginLogin 

Personal Chest

 
Post new topic   Reply to topic    DysoForums Forum Index -> Suggestions
View previous topic :: View next topic :: Hide signatures  
Author Message
Little Teapot
Deity


Joined: 11 Sep 2002
Posts: 2332

Level: 39
XP
EXP: 31 / 160 EXP: 31 / 160 EXP: 31 / 160
 19%
PostPosted: Mon Jul 07, 2003 1:23 am    Post subject: Personal Chest Reply with quote

I suggest that you put my Uber 1337 Personal chest placable in.
I've worked out most, if not all, of the bugs and it's ready to be put in some game or another


Dyso's as good (or better) a mod than any... and Glith already has it (in his inbox... his hotmail one, not his Whitestar one. I'm not sure which he uses for recieving Dyso related things...

in any case... it's really, really cool...

I promise ;0

[edit]apparently it's still eating items... so, not yet, my precious[/edit]
[edit 2]hehehe... apparently on the first run it was eating something as a sacrificial item... it's fixed...[/edit 2]
[edit 3] putting new and different features in the chest... it's really cool... much cooler than before[/edit 3]
_________________
Matthijs says:
   oh ja, ik weet het zonet nog niet
Matthijs says:
   het ziet er toch wel een beetje naar uit dat we nederlands praten
Matthijs says:
   mischien moet ik dan maar eens vaker nederlands gaan praten
Matthijs says:
   kan je me ook meteen niet op al mijn spellinsfouten wijzen
There you have it! indisputable proof Solo's a fascist!!!


Last edited by Little Teapot on Thu Jul 10, 2003 2:58 am, edited 3 times in total
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
TritiumOSU
Adept


Joined: 14 Feb 2003
Posts: 65

Level: 6
XP
EXP: 14 / 14 EXP: 14 / 14 EXP: 14 / 14
 100%
PostPosted: Mon Jul 07, 2003 2:43 am    Post subject: Reply with quote

I've seen it 'work', I will vouch for the uber-1337ness of the personal stash. It even says "Your Stash" on it.

but seriously it's wicked cool, and it would be good for people who either a) steal a lot of stuff they can't sell, or b) outgrow their items and want to sell them to PCs but not carry them around, ripe for stealage, or c) lazy bums who want to have a nice organized inventory.

there are probably more reasons why they would be Good Things but I came up with 3 so find them yourselves.
_________________
-timmy
Back to top
View users profile Send private message AIM Address MSN Messenger
Norrec
PostMon 07/07/03 3:04am
Could you post the script and everything here? icon_twisted.gif  Reply with quote
 
Shadowleaf
Hero


Joined: 14 Jan 2003
Posts: 634

Level: 23
XP
EXP: 1 / 65 EXP: 1 / 65 EXP: 1 / 65
 1%
PostPosted: Mon Jul 07, 2003 7:41 am    Post subject: Reply with quote

bad idea norrec. ppl have to do things themselves i mean, how good is a mod that has CNR tradeskills, HCR ruleset and the corpse system? its not too good cuz everyones using those systems. if the creators make their own stuff or 'outsource' it (hehe) like this case then its original and remains original. so what im saying is... NO TP! DON'T LISTEN TO HIMN HES TRYING TO TRICK YOU!


oh yeah, and i also recommend that dyso uses the personal stash... but dont call it "your stash" that brings back memories from d2... ugh i want to forget that game lol
_________________
Glorin wrote:
Marine you are such a great guy, i hope you don't get hit by a truck one day!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Celestial_Evil
Adept


Joined: 17 Apr 2003
Posts: 85

Level: 8
XP
EXP: 4 / 19 EXP: 4 / 19 EXP: 4 / 19
 21%
PostPosted: Mon Jul 07, 2003 9:08 am    Post subject: Reply with quote

Im sorry if this could be taken as SPAM but what are you guys talking about when you say my stash it sounds to me like drugs or something...anyone care to explain?
Back to top
View users profile Send private message
Ectovult
Elder


Joined: 18 Sep 2002
Posts: 755

Level: 24
XP
EXP: 57 / 68 EXP: 57 / 68 EXP: 57 / 68
 83%
PostPosted: Mon Jul 07, 2003 11:29 am    Post subject: Reply with quote

a big wOOt for TP!!!
So when will it be implemented in the game? uh? uh? I wanna know!!! icon_mrgreen.gif
_________________
"Nothing that is beautiful in life is taken away with death"
Back to top
View users profile Send private message Send email
Shadowleaf
Hero


Joined: 14 Jan 2003
Posts: 634

Level: 23
XP
EXP: 1 / 65 EXP: 1 / 65 EXP: 1 / 65
 1%
PostPosted: Wed Jul 09, 2003 3:26 am    Post subject: Reply with quote

Celestial: it is a treasue chest that you can put stuff in and it saves it to the database. only one person can open it at a time and when you open it the only things u see are the things that you put in. pretty sweet huh?
_________________
Glorin wrote:
Marine you are such a great guy, i hope you don't get hit by a truck one day!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Glorin
PostWed 07/09/03 3:41am
The personal stash is mega wicked cool i sawz it  Reply with quote
 
Celestial_Evil
PostWed 07/09/03 4:16am
Oh sounds good lets just make sure to make it bug-free dont want to see people getting other people's stuff...if you know what i mean...  Reply with quote
 
Little Teapot
Deity


Joined: 11 Sep 2002
Posts: 2332

Level: 39
XP
EXP: 31 / 160 EXP: 31 / 160 EXP: 31 / 160
 19%
PostPosted: Thu Jul 10, 2003 2:05 am    Post subject: Reply with quote

ok... Major changes to the chest... at least how it operates, not too much on how it looks from the outside... though the "empty/count Items in bags" thing needs to be tested, as well as a few features...

it should be prettymuch impossible to see anyone else's inventory items... unless they happen to have a name obviously meant to dupe it (acct. name "XenoalexX", player name "enoalex") it should be pretty easy to catch with DM's. Any problems with stealing anyone else's stuff has been taken care of already... as well as Duping/eating gold that the chest did. (also tried to fix a rare bug that ate one of my bags of holding... grrr...)

I'm trying to make this as cool a chest as possible...
any suggestions for features to put in the chest (except Uber item making/other outlandish crap) are welcome.

oh, and Ectovault: There's absolutely no guarantee (or word from Glith/Conrad at all) about putting the chest in Dyso. Please don't demand it of them.
_________________
Matthijs says:
   oh ja, ik weet het zonet nog niet
Matthijs says:
   het ziet er toch wel een beetje naar uit dat we nederlands praten
Matthijs says:
   mischien moet ik dan maar eens vaker nederlands gaan praten
Matthijs says:
   kan je me ook meteen niet op al mijn spellinsfouten wijzen
There you have it! indisputable proof Solo's a fascist!!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Nemor
Hero


Joined: 15 Feb 2003
Posts: 510

Level: 20
XP
EXP: 44 / 52 EXP: 44 / 52 EXP: 44 / 52
 84%
PostPosted: Thu Jul 10, 2003 2:45 am    Post subject: Reply with quote

How does it recognize the players stash? By their name? Wouldn't it be easier and safer if a persons stash is recognized by a key they have, so that it doesn't require their account or character name with a unique key they can open it with?

Just a thought...
_________________
Your friendly but rather insane office worker...



As illustrated...

Black Shadow - Rogue
Green Shadow - Mage
Bio - http://www.btinternet.com/~b.russell2k/Shadow.txt
Nemor - Druid
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
Nemor
Hero


Joined: 15 Feb 2003
Posts: 510

Level: 20
XP
EXP: 44 / 52 EXP: 44 / 52 EXP: 44 / 52
 84%
PostPosted: Thu Jul 10, 2003 2:47 am    Post subject: Reply with quote

PS. I'd gladly test it on my Arena mod, I know it's not the perfect place to try it but, there are certain items I'd like to have stashed by for when I'm running the server as a player and can't just drop items to the floor..

I have about 6 regulars that could test it also.
_________________
Your friendly but rather insane office worker...



As illustrated...

Black Shadow - Rogue
Green Shadow - Mage
Bio - http://www.btinternet.com/~b.russell2k/Shadow.txt
Nemor - Druid
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
AliZee'
High Elder


Joined: 17 Feb 2003
Posts: 1069

Level: 28
XP
EXP: 69 / 87 EXP: 69 / 87 EXP: 69 / 87
 79%
PostPosted: Thu Jul 10, 2003 5:28 am    Post subject: Reply with quote

this server wipes to often for a personal stash to work...i mean its a great idea...but every couple months theres a wipe...so how tha hell are you gonna get enough stuff to stash??
_________________



[quote:076179584b="Ogt"]farts leave the athmosfere because they have their OWN WILL, they are TIRED of being farts, and decieded that they would make their OWN PLANETS!!!!!!!!!![/quote]
GOLD!!!
Back to top
View users profile Send private message
Darkshadow666
Grandmaster


Joined: 31 Jan 2003
Posts: 297

Level: 16
XP
EXP: 5 / 39 EXP: 5 / 39 EXP: 5 / 39
 12%
PostPosted: Thu Jul 10, 2003 5:34 am    Post subject: Reply with quote

Sounds pretty cool TP...I like the idea a lot...I think a key would be best. It could be fixed to a character upon talking to an NPC and asking for a deposit box key. Kind of like asking for a soulstone. Have the key undroppable and un-PP'able too.

Would the chest be fixed to a certain location or multiple chests throughout the realms that lets your "magic key" produce your items?
_________________
Co-Creator of DragonsFall Mod
Back to top
View users profile Send private message Send email Visit posters website
Falkhor
DysoMOD|DM


Joined: 14 Sep 2002
Posts: 1264

Level: 30
XP
EXP: 83 / 99 EXP: 83 / 99 EXP: 83 / 99
 83%
PostPosted: Thu Jul 10, 2003 6:47 am    Post subject: Reply with quote

ACtually was looking for a persistent chest for Tuskan. Although i wanted mine actually openable by others with a key. Players could then buy a house from a Dm and opt for a chest to go along with the price. Anyone trying to rob them would have to have both the house key and the chest key to rob them but as I'm striving for realism in my mod, it would have to be robbable someway.
Also looking into persistent personal servants and guards to protect your property.
They would recognize their master and his partymembers as invitees and let them pass the gates safely and pound anyone else to a pulp.
I like the basic personal stash idea though so if Dyso isn't using it let's talk business.
Back to top
View users profile Send private message
Griff Inn
PostThu 07/10/03 4:40pm
TP, that's a cool thing you made there. Awesome work!

Griff
 Reply with quote
 
GorbGuy
Guest




Level: 51
XP
EXP: 189 / 280 EXP: 189 / 280 EXP: 189 / 280
 67%
PostPosted: Thu Jul 10, 2003 5:08 pm    Post subject: Reply with quote

Did you do it similar to this: (note, this is for NWNX)
Code:
//onDisturbed
#include "aps_include"

int GetIsItemStackable(object oItem)
{
    int iType = GetBaseItemType(oItem);
    if (iType == BASE_ITEM_GEM || iType == BASE_ITEM_POTIONS ||
        iType == BASE_ITEM_HEALERSKIT || iType == BASE_ITEM_THIEVESTOOLS ||
        iType == BASE_ITEM_SCROLL || iType == BASE_ITEM_ARROW ||
        iType == BASE_ITEM_BOLT || iType == BASE_ITEM_BULLET ||
        iType == BASE_ITEM_DART || iType == BASE_ITEM_THROWINGAXE ||
        iType == BASE_ITEM_SHURIKEN || iType == BASE_ITEM_GOLD)
        return TRUE;
    else
        return FALSE;
}

// Add item to the container
void addItem(string sContainerTag, object oItem)
{
    string sSQL;
    string id = IntToString(GetIdentified(oItem));

    // lookup item
    sSQL = "SELECT * FROM containers WHERE container='" + sContainerTag +
           "' AND item='" + GetTag(oItem) + "' AND identified=" + id;
    SQLExecDirect(sSQL);

    if (SQLFirstRow() == SQL_SUCCESS)
    {
        // existant, increment item counter in existing row
        int iCount = StringToInt(SQLGetData(3)) + 1;
        sSQL = "UPDATE containers SET count=" + IntToString(iCount) +
               " WHERE container='" + sContainerTag + "' AND item='" +
               GetTag(oItem) + "' AND identified=" + id;
        SQLExecDirect(sSQL);
    }
    else
    {
        // not existant, add new row
        sSQL = "INSERT INTO containers (container,item,count,identified) VALUES " +
               "('" + sContainerTag + "','" + GetTag(oItem) + "',1," + id + ")";
        SQLExecDirect(sSQL);
    }
}

// Remove item from container
void removeItem(string sContainerTag, object oItem)
{
    string sSQL;
    string id = IntToString(GetIdentified(oItem));

    // lookup item
    sSQL = "SELECT * FROM containers WHERE container='" + sContainerTag +
           "' AND item='" + GetTag(oItem) + "' AND identified=" + id;
    SQLExecDirect(sSQL);

    if (SQLFirstRow() == SQL_SUCCESS)
    {
        // existant, decrement item counter in existing row
        int iCount = StringToInt(SQLGetData(3)) - 1;
        if (iCount == 0)
        {
            sSQL = "DELETE FROM containers WHERE container='" +
                   sContainerTag + "' AND item='" + GetTag(oItem) +
                   "' AND identified=" + id;
        }
        else
        {
            sSQL = "UPDATE containers SET count=" + IntToString(iCount) +
                   " WHERE container='" + sContainerTag + "' AND item='" +
                   GetTag(oItem) + "' AND identified=" + id;
        }
        SQLExecDirect(sSQL);
    }
}

void main()
{
    object oPC = GetLastDisturbed();
    if (!GetIsPC(oPC))
        return;

    object oItem = GetInventoryDisturbItem();
    if (!GetIsObjectValid(oItem))
        return;

    // reject stackable items
    if (GetIsItemStackable(oItem))
    {
        SendMessageToPC(oPC, "Stackable items are not supported.");
        ActionGiveItem(oItem, oPC);
        return;
    }

    switch(GetInventoryDisturbType())
    {
        case INVENTORY_DISTURB_TYPE_ADDED:
            addItem(GetTag(OBJECT_SELF), oItem);
        break;

        case INVENTORY_DISTURB_TYPE_REMOVED:
        case INVENTORY_DISTURB_TYPE_STOLEN:
            removeItem(GetTag(OBJECT_SELF), oItem);
        break;
    }
}
Code:
//onUsed
#include "aps_include"

void main()
{
    object oItem = GetFirstItemInInventory();
    if (!GetIsObjectValid(oItem))
    {
        // container is empty:
        // load inventory from database and put it in container
        string sSQL;
        sSQL = "SELECT item, count, identified FROM containers " +
               "WHERE container='" + GetTag(OBJECT_SELF) + "'";
        SQLExecDirect(sSQL);

        string sItemTag;
        object oItem;
        int id;
        int i, iItemCount;
        int rc = SQLFirstRow();
        while (rc == SQL_SUCCESS)
        {
            sItemTag = SQLGetData(1);
            iItemCount = StringToInt(SQLGetData(2));
            id = StringToInt(SQLGetData(3));

            for (i = 0; i < iItemCount; i++)
            {
                oItem = CreateItemOnObject(sItemTag, OBJECT_SELF);
                if (GetIsObjectValid(oItem))
                    SetIdentified(oItem, id);
            }
            rc = SQLNextRow();
        }
    }
}
Back to top
Jon316
Guest




Level: 51
XP
EXP: 189 / 280 EXP: 189 / 280 EXP: 189 / 280
 67%
PostPosted: Thu Jul 10, 2003 9:06 pm    Post subject: Reply with quote

It's not hard to make a persistant chest for players alone, just make a script tying their account name to a placable, and make it unlock only for them when they try to use it, it will save whatever is in it infinitely, meaning if I make Skip Williams Under my Jon316 account and then Make Jonathan a day later, then put all his level 1 items in a personal chest then leave for a week, and come back with skip next week, I can check the chest and get Jonathan's items, and no one can open the chest but me.... I seen that in several modules, helps to transfer items without the need of other players or quickly rejoining with your other character, plus it's like a bank for storing stuff...

anywho
Back to top
Little Teapot
Deity


Joined: 11 Sep 2002
Posts: 2332

Level: 39
XP
EXP: 31 / 160 EXP: 31 / 160 EXP: 31 / 160
 19%
PostPosted: Fri Jul 11, 2003 1:57 am    Post subject: Reply with quote

Gorb:
I'm not sure... it's kinda hard to tell, what with me not knowing exactly what the SQL functions do...

but... it does kind of appear so... but more standard NWN-scripty

it also has a specific DB inventory for each player... so it's not "locked" for anyone.

if anybody knows a way to assign a "Close this chest" command, I'm open... right now they can look, but not touch...
_________________
Matthijs says:
   oh ja, ik weet het zonet nog niet
Matthijs says:
   het ziet er toch wel een beetje naar uit dat we nederlands praten
Matthijs says:
   mischien moet ik dan maar eens vaker nederlands gaan praten
Matthijs says:
   kan je me ook meteen niet op al mijn spellinsfouten wijzen
There you have it! indisputable proof Solo's a fascist!!!


Last edited by Little Teapot on Fri Jul 11, 2003 2:01 am, edited 1 time in total
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Raven
PostFri 07/11/03 2:00am
What's the point? According to some "respected" DMs, THEY MOD IS GONNA DIE.  Reply with quote
 
Glorin
PostFri 07/11/03 2:01am
no this is for the new mod im guessing  Reply with quote
 
Little Teapot
Deity


Joined: 11 Sep 2002
Posts: 2332

Level: 39
XP
EXP: 31 / 160 EXP: 31 / 160 EXP: 31 / 160
 19%
PostPosted: Fri Jul 11, 2003 2:03 am    Post subject: Reply with quote

Glorin wrote:
no this is for the new mod im guessing

this is for nearly anyone who will take it, with a few (read: many) exceptions...
_________________
Matthijs says:
   oh ja, ik weet het zonet nog niet
Matthijs says:
   het ziet er toch wel een beetje naar uit dat we nederlands praten
Matthijs says:
   mischien moet ik dan maar eens vaker nederlands gaan praten
Matthijs says:
   kan je me ook meteen niet op al mijn spellinsfouten wijzen
There you have it! indisputable proof Solo's a fascist!!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
Nemor
Hero


Joined: 15 Feb 2003
Posts: 510

Level: 20
XP
EXP: 44 / 52 EXP: 44 / 52 EXP: 44 / 52
 84%
PostPosted: Fri Jul 11, 2003 2:31 am    Post subject: Reply with quote

TP, you'll be glad to hear I got to work on my mod again. I only have 2 areas done mind you icon_cry.gif
_________________
Your friendly but rather insane office worker...



As illustrated...

Black Shadow - Rogue
Green Shadow - Mage
Bio - http://www.btinternet.com/~b.russell2k/Shadow.txt
Nemor - Druid
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
GorbGuy
Guest




Level: 51
XP
EXP: 189 / 280 EXP: 189 / 280 EXP: 189 / 280
 67%
PostPosted: Fri Jul 11, 2003 4:40 am    Post subject: Reply with quote

Raven wrote:
What's the point? According to some "respected" DMs, THEY MOD IS GONNA DIE.
Yes, that is correct. However, sharing info is a good thing. icon_wink.gif Why recreate what someone else has already done.
Back to top
Little Teapot
Deity


Joined: 11 Sep 2002
Posts: 2332

Level: 39
XP
EXP: 31 / 160 EXP: 31 / 160 EXP: 31 / 160
 19%
PostPosted: Fri Jul 11, 2003 5:13 pm    Post subject: Reply with quote

GorbGuy wrote:
Why recreate what someone else has already done.

because often you can make it better icon_wink.gif
_________________
Matthijs says:
   oh ja, ik weet het zonet nog niet
Matthijs says:
   het ziet er toch wel een beetje naar uit dat we nederlands praten
Matthijs says:
   mischien moet ik dan maar eens vaker nederlands gaan praten
Matthijs says:
   kan je me ook meteen niet op al mijn spellinsfouten wijzen
There you have it! indisputable proof Solo's a fascist!!!
Back to top
View users profile Send private message Send email AIM Address MSN Messenger
GorbGuy
Guest




Level: 51
XP
EXP: 189 / 280 EXP: 189 / 280 EXP: 189 / 280
 67%
PostPosted: Fri Jul 11, 2003 5:16 pm    Post subject: Reply with quote

Little Teapot wrote:
because often you can make it better icon_wink.gif
Yes, that's called innovation. icon_wink.gif
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DysoForums Forum Index -> Suggestions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.2 © 2001, 2002 phpBB Group