Offline / Afk Vendor

Experienced Elementalist
Joined
Jan 1, 2014
Messages
220
Reaction score
18
No, put a position condition ... so that only GM / ADM can open 2 salespeople or more.


ok ok i never tested in normal players., thanks for the info



the only problem on this features here in source is the time expiration of the item. and auknown text -----fixed unknown text



this is weired the time is not sync https://ibb.co/S34cdv8
 
Last edited:
Experienced Elementalist
Joined
Jan 1, 2014
Messages
220
Reaction score
18

UPDATE:
I've notice that this features have minus ,

if i open all the programs and login create offline vendor and logout and back to login nothings problem when i click the vendor npc
when i closed all the programs and reopen again and login ingame when i click the vendor npc the client will freeze and it cause to crash the client
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830

Not entirely sure why your quoting my original post?

However most of your issues come down to poor copy/pasting and(or) not paying attention as I have added this and haven't experienced half the issues you claim it has. I also gave this to others before I posted this and they didn't have a majority of the issues you claim to have. While i do believe it contains some errors just not as many as your leading on to.

Do be sure to have all 3 of these from this source:
Code:
__VENDING_NPC
__ADDSHOPITEM
__VENDOR_UPDATE

Make sure perin buy bug is also disabled.

Any other issues you need to resolve yourself.
 
Last edited:
Newbie Spellweaver
Joined
Jul 8, 2011
Messages
29
Reaction score
0
i add this in files but i have a problem offline vend i think is in good condition but the problem is if offline vend is define and I used private shop the item i sold the penya will not go to my inventory and also in my bank .
 
Experienced Elementalist
Joined
Jan 1, 2014
Messages
220
Reaction score
18
i add this in files but i have a problem offline vend i think is in good condition but the problem is if offline vend is define and I used private shop the item i sold the penya will not go to my inventory and also in my bank .

just rework your MoverItem.cpp., actually if your offline the earning penya will go to bank if your offline, and if your online your penya will automatically procced to your inventory if ever you have already much penya your inventory. the earn money from your offline vending npc will automatically converted to perin., mine is already fix i just remove the features name __PLAYEROWNSHOP of my source.., i need little bit to rework for that,..,
 
Last edited:
Newbie Spellweaver
Joined
Jul 8, 2011
Messages
29
Reaction score
0

the main problem of mine is

Offline bendor is working good even if I'm online or offline it will go to mail but my problem is when I used private shop not offline vend the penya not go trough to inventory or even bank or mail
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
the main problem of mine is

Offline bendor is working good even if I'm online or offline it will go to mail but my problem is when I used private shop not offline vend the penya not go trough to inventory or even bank or mail

You have both of these defined?
Code:
__ADDSHOPITEM
__VENDOR_UPDATE

And CMover::AddGold looks like:
Code:
BOOL CMover::AddGold(int nGold, BOOL bSend)
{
	if (!IsValidObj(this))
		return FALSE;

	if (nGold == 0)
		return TRUE;

	__int64 i64Total = static_cast<__int64>(GetGold()) + static_cast<__int64>(nGold);

	if (i64Total > static_cast<__int64>(INT_MAX))
		i64Total = static_cast<__int64>(INT_MAX);
	else if (i64Total < 0)
		i64Total = 0;

	SetGold(static_cast<int>(i64Total));

	if (bSend)
	{
#ifdef __WORLDSERVER
#ifdef __VENDING_NPC
		if (i64Total >= INT_MAX)
			i64Total = INT_MAX;

		g_UserMng.AddSetPointParam(this, DST_GOLD, (int)i64Total);
#else
		g_UserMng.AddSetPointParam(this, DST_GOLD, static_cast<int>(i64Total));
#endif
#endif
	}

	return TRUE;
}

?
 
Newbie Spellweaver
Joined
Jul 8, 2011
Messages
29
Reaction score
0
i think only __ADDSHOPITEM
 
Newbie Spellweaver
Joined
Apr 28, 2014
Messages
27
Reaction score
5
Hello, Who would have the object (SpecItem) to create an AFK store?


APP_MESSAGEBOX_VENDOR (ResData.inc) I wonder if this is correct?

Code:
APP_MESSAGEBOX_VENDOR "WndTile00.tga" "" 1 192 224 0x2410000 26
{
// Title String
IDS_RESDATA_INC_009729
}
{
// ToolTip
IDS_RESDATA_INC_009730
}
{
    WTYPE_BUTTON WIDC_BUTTON "ButtGuildhousecargo.bmp" 0 131 8 170 47 0x220010 0 0 0 0 0 0 0
    {
    // Title String
    IDS_RESDATA_INC_009731
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009732
    }
    WTYPE_TEXT WIDC_TEXT "WndEditTile00.tga" 1 8 56 168 179 0x20000 0 0 0 0 255 255 255
    {
    // Title String
    IDS_RESDATA_INC_009733
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009734
    }
    WTYPE_EDITCTRL WIDC_EDIT "" 1 8 8 127 50 0x20000 0 0 0 0 255 255 255
    {
    // Title String
    IDS_RESDATA_INC_009735
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009736
    }
}

thanks in advance


 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830

V16+ ResData:
Code:
APP_MESSAGEBOX_VENDOR "WndTile00.tga" "" 1 320 208 0x2410000 26
{
// Title String
"To close the private shop"
}
{
// ToolTip
""
}
{
    WTYPE_BUTTON WIDC_BUTTON1 "ButtClose.tga" 0 119 139 192 160 0x220010 0 0 0 0 46 112 169
    {
    // Title String
    "Button"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_TEXT WIDC_TEXT1 "WndEditTile00.tga" 1 16 18 292 126 0x20000 0 0 0 0 46 112 169
    {
    // Title String
    "To close the private shop? The merchant will be returned to the post office."
    }
    {
    // ToolTip
    ""
    }
}

V19 spec item format is already included in the release itself.

If you need a different version you should specify which lol.
 
Newbie Spellweaver
Joined
Apr 28, 2014
Messages
27
Reaction score
5
The system is not working? with each purchase the WorldServer.exe crash. Who would have the solution please?
 
Initiate Mage
Joined
Jul 22, 2021
Messages
4
Reaction score
0
First of all thanks releasing this. Without you I wouldn't be able to apply this to my test server. It was working fine until I have decided to add this WEAPON RARITY thingy on my server. My only issue is, whenever I'm vending a weapon with Rarity attribute on my Offline vendor and close the vendor and I rebooted my server, The rarity always disappear for some reason.

May you have some solution for this?
 
Newbie Spellweaver
Joined
Dec 18, 2021
Messages
11
Reaction score
3
Thanks sir, and where can i find this client and resource file




i'm new here, and can you share this resource files for me, thank you very much.~~~