Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SHARE] Offline vend COMPLETE!

Experienced Elementalist
Joined
Jun 29, 2010
Messages
222
Reaction score
14
this is the complete nutrients that all the newbie dev needs,. if anyone will ask here, how to do it? well its time for you to look for another hobby. Its not for you trust me :ROFLMAO:

#kudostothesharer
#keepthecredits
 
Newbie Spellweaver
Joined
Mar 8, 2019
Messages
83
Reaction score
41
this is the complete nutrients that all the newbie dev needs,. if anyone will ask here, how to do it? well its time for you to look for another hobby. Its not for you trust me :ROFLMAO:

#kudostothesharer
#keepthecredits
indeed
 
Banned
Banned
Joined
May 7, 2019
Messages
132
Reaction score
44
Hello just want to ask questions.

1. Is it fixed for duplicate?

2. Does it work even you have 2nd character while vending the main one?

3. It is saving the data whenever you login again after your vend?

4. Are you able to login while vending?

Thank you and for sharing. More power
 
Newbie Spellweaver
Joined
Mar 8, 2019
Messages
83
Reaction score
41
while vending the main
Hello just want to ask questions.

1. Is it fixed for duplicate?

2. Does it work even you have 2nd character while vending the main one?

3. It is saving the data whenever you login again after your vend?

4. Are you able to login while vending?

Thank you and for sharing. More power
1. So far, people who uses it said NO.

2. No as of now, but possible if code was improved.

3. Yup it does.

4. Once you've login the character that is vending, vend will be closed.

How does this offline vend works is this same with @autotrade in ragnarok??
I am not familiar with autotrade but, this works by vending and closing the game itself. It will leave you character on vend mode and saving progress about the items that've been vend.
 
Experienced Elementalist
Joined
Nov 8, 2023
Messages
245
Reaction score
36
Wdym duplicate ? Does it literally duplicates the item ?
 
Experienced Elementalist
Joined
Mar 10, 2011
Messages
229
Reaction score
50
compile success just tried merging it with the ran source in gitlab by gerger
1699583641936 - [SHARE] Offline vend COMPLETE! - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Supremacy Developer
[VIP] Member
Joined
Sep 13, 2020
Messages
59
Reaction score
18
Depends on the state of character to have a duplicate items:

1st instance: sold items and didn't save character state ( all items will be revert back to inventory ) same way as Field Bugtrap a.k.a Roll Back

2nd instance: every 1800sec or 30mins save database if character failed to save inventory and gold state it will duplicate all items vend.

to avoid this, every time player buys on the item you should do call function SaveCharDB.

Good luck using this.
 
Experienced Elementalist
Joined
Nov 8, 2023
Messages
245
Reaction score
36
Depends on the state of character to have a duplicate items:

1st instance: sold items and didn't save character state ( all items will be revert back to inventory ) same way as Field Bugtrap a.k.a Roll Back

2nd instance: every 1800sec or 30mins save database if character failed to save inventory and gold state it will duplicate all items vend.

to avoid this, every time player buys on the item you should do call function SaveCharDB.

Good luck using this.
Nice very informative , thankyou
 
Newbie Spellweaver
Joined
Mar 4, 2021
Messages
68
Reaction score
7
Reading from the code, It seems like we need to use a specific private market card to enable this offline vend

Code:
m_sPMarket.SetSaleType ( (GLPrivateMarket::EM_SALE_TYPE) pITEM->sSuitOp.wReModelNum );

For those who would like to integrate this source code, don't forget to add a new item wReModelNum to 1 EM_SALE_TYPE_PREMIUM
 

zet

Experienced Elementalist
Joined
Aug 25, 2010
Messages
251
Reaction score
24
Hello just want to ask questions.

1. Is it fixed for duplicate?

2. Does it work even you have 2nd character while vending the main one?

3. It is saving the data whenever you login again after your vend?

4. Are you able to login while vending?

Thank you and for sharing. More power

1. you get the answer here https://forum.ragezone.com/threads/share-offline-vend-split-source.1221751/

2. Yes you can play your 1 character while the other 1 is vending at the same time you can even buy in your own store

3. Yes it save data

4. Yes you can login your vendor character and your store will automatically close and the other 1 character online will disconnect

this is base on may test server
 
Junior Spellweaver
Joined
Nov 27, 2023
Messages
101
Reaction score
45
this is not complete :chomp:

1706168786505 - [SHARE] Offline vend COMPLETE! - RaGEZONE Forums



edit:
I fix it you forgot to include GLContrlPrivateMarket.h
and inside it just add

Code:
    //----- offline vend
    struct SNETPC_PMARKET_OPENCLOSE_AGT
    {
        NET_MSG_GENERIC        nmg;
        bool                bOPEN;
        bool                bPremium;

        SNETPC_PMARKET_OPENCLOSE_AGT () :
            bPremium ( false ),
            bOPEN ( false )
        {
            nmg.dwSize = sizeof(*this);
            nmg.nType = NET_MSG_GCTRL_PMARKET_OPEN_AGT;
            GASSERT(nmg.dwSize<=NET_DATA_BUFSIZE);
        }
    };
    //----- offline vend
 

Attachments

You must be registered for see attachments list
Last edited:
Back
Top