Jump to content

Release Auction House (MMO Style)


Creep

Recommended Posts

Everything seems to be in place, but I don't get any new options at the traders. I'm using Zupas ZSC 3.0 for single currency. No idea why none of the auction house buttons are showing up.

 

I'm waiting on someone to give me a little help with the extDB. I have it in my OA directory with the database field filled out. Is everyone who joins supposed to ad the @extDB to the launch parameters? I use Vilayer for hosting if that helps.

 

Thanks in advance!! ;-)

 

UPDATE: The overwrite files from ZUPA's 3.0 Single Currency were loading his fn_selfactions file. That why i didn't get the scroll options. extDB is setup and working on Vilayer.

 

Do you think it would be possible to add a way to look at what you have in the auction house and make a way that you can take it back if you later decide you don't want to sell it?

 

Thanks for the awesome mod!!!! ;-)

 

Hello!

You will be able to help me? How you install exDB on a vilayer server?

 

Will be able to write in detail the installation process exDB on vilayer?

Thank you!

Link to comment
Share on other sites

Hello!

You will be able to help me? How you install exDB on a vilayer server?

 

Will be able to write in detail the installation process exDB on vilayer?

Thank you!

 

 

  1. Copy @extDB to your Server.
  2. Edit @extDB\extdb-conf.ini to fit your needs
  3. Change Server Startup Parameters and put @extDB in the -mod section.

 

 

Example extdb-conf.ini:

 

[Main]
;Threads = 0  
; Default Value is the number of CPU Cores Detected (max value is 6, min value is 2)
; Linux Chroot Environment might only Detect 1 CPU Cores i.e bind /proc

Randomize Config File = false
;This is a legacy option to randomize config file for Arma2 Servers.


[Rcon]
;; This is functional, should be working fine. Just needs abit of testing on a live Server

Port = 2302
Password = password


[Steam]
;; This is for VAC Protocol for VAC Bans + Steam Friends.
;; This currently has a bug in it, will be fixed next version.
;; Think of it as tech preview option.
;; https://steamcommunity.com/dev/apikey
API Key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


[VAC]
;; This feature requires Steam + Rcon to be enabled.
;; Also this feature is called via SQF Code atm, i.e it doesn't auto detect players joining server yet....

Auto Ban = false

;; For Player to get banned ( their total VAC Bans => NumberOfVACBans)  AND ( Days Since their Last Ban was <= DaysSinceLastBan)
;; This is also used extDB Protocol VAC:VACBanned returned results
NumberOfVACBans = 1
DaysSinceLastBan = 999999999

BanDuration = 0
;; 0 = Forever, otherwise its x Minutes
BanMessage = Steam VAC Banned


[Log]
;; This is just config options for Rcon Logging + BE Logging
;;		Has no effect on extDB Logging
Mode = sync
;; sync / async
;;	ASync is just kinder on your Harddrive, may be lose of data in the event of a crash.


[Database1]
;; Example of SQLite
Type = SQLite
Name = sqlite.db

minSessions = 1
; minSession Default Value = 1

;maxSessions = 4
; maxSession Default Value = number of Main->Threads
; 	You really should leave this value alone
idleTime = 60
; idleTime no Default Value yet, needs to be defined.
; 	idleTime is the time before a database session is stopped if not used. 
;	If Database Sessions are greater than minSessions


[Database2]
;; Example of MySQL
;; 	AtlisLifeRPG uses Database2 by default
Type = MySQL
Name = overpoch9465

Username = Epoch_User
Password = password
IP = 127.0.0.1
Port = 3306

minSessions = 1
;maxSessions = 4
idleTime = 60

compress = false
; Should only use this if MySQL server is external. Also only for MySQL

Secure Auth = false
; Recommend you turn this on


[A3W]
Type = MySQL
Name = a3wasteland
Username = root
Password = password
IP = 127.0.0.1
Port = 3306
minSessions = 1
;maxSessions = 4
idleTime = 60

compress = false
; Should only use this if MySQL server is external. Also only for MySQL

Secure Auth = false
; Recommend you turn this on
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Nice thing there, thanks for sharing

I found one bug:
 
If you set the item that occupies more than one slot, it is exposed, but does not disappear from the inventory such as explosive charge at any bazooka.
Thus Dupe.
Can make the black list?
It can be fixed? Thanks in advance!
 
(Sorry for my english! :) )
Link to comment
Share on other sites

Mind the missing bracket in what i posted

I found one bug:
 
If you set the item that occupies more than one slot, it is exposed, but does not disappear from the inventory such as explosive charge at any bazooka.
Thus Dupe.
Can make the black list?
It can be fixed? Thanks in advance!
 
(Sorry for my english!  :) )
Link to comment
Share on other sites

  • 2 months later...
I found one bug:
 
If you set the item that occupies more than one slot, it is exposed, but does not disappear from the inventory such as explosive charge at any bazooka.
Thus Dupe.
Can make the black list?
It can be fixed? Thanks in advance!
 
(Sorry for my english!  :) )

In file player_sellitem.sqf:

Over:

[_unit,_item] call BIS_fnc_invRemove;

Paste:

_item =  configFile >> "CfgMagazines" >> _item;

 

Should look like:

_item =  configFile >> "CfgMagazines" >> _item;

[_unit,_item] call BIS_fnc_invRemove; 

 

 

In you bank system Zupa in file trade_items.sqf (2 lines):

Over:

_removed = ([player,_name,1] call BIS_fnc_invRemove);

Paste:

_name =  configFile >> "CfgMagazines" >> _name;

 

Should look like:

_name =  configFile >> "CfgMagazines" >> _name;

_removed = ([player,_name,1] call BIS_fnc_invRemove);

 

Link to comment
Share on other sites

In file player_sellitem.sqf:

Over:

[_unit,_item] call BIS_fnc_invRemove;

Paste:

_item =  configFile >> "CfgMagazines" >> _item;

Should look like:

_item =  configFile >> "CfgMagazines" >> _item;

[_unit,_item] call BIS_fnc_invRemove; 

In you bank system Zupa in file trade_items.sqf (2 lines):

Over:

_removed = ([player,_name,1] call BIS_fnc_invRemove);

Paste:

_name =  configFile >> "CfgMagazines" >> _name;

Should look like:

_name =  configFile >> "CfgMagazines" >> _name;

_removed = ([player,_name,1] call BIS_fnc_invRemove);

Thank you!

The error in the RPT(installed Single Corrency 3.0)

22:14:13 Error in expression <UID =     getPlayerUID _player;

if (_item == "") then {

diag_log "Auction House: >
22:14:13   Error position: <== "") then {

diag_log "Auction House: >
22:14:13   Error Generic error in expression
22:14:13 File z\addons\dayz_server\compile\store\server_sellitem.sqf, line 11
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 1 year later...
20 hours ago, chi said:

Does this work with 1.0.6.2? And if not, could anyone update it to do so? PM me if you can make it happen please.

Thanks!!

Does not work as-is but its close..
I managed to sell items and collect money for them after some edits. can buy items and it now takes the money.. does not give the gear

Error in expression <then {

PVDZE_buyitem = [player, (_item select 0)]; 
publicVariableServer "PVDZE>
  Error position: <select 0)]; 
publicVariableServer "PVDZE>
  Error select: Type String, expected Array,Config entry
File mpmissions\__CUR_MP.Chernarus\custom\scripts\auctionhouse\player_buyitem.sqf, line 54


line53; PVDZE_buyitem = [player, (_item select 0)]; // _item select 0 = id
line54; publicVariableServer "PVDZE_buyitem";

 

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...
  • 8 months later...
  • 1 year later...

Here, this makes server tell players when they log in if they sold something and has coins.  :)

Name whatever you want or auction_sold.sqf and execute it in init.sqf  

waitUntil {uiSleep 30; !isNil ("Dayz_loginCompleted")};
PVDZE_claimmoney = [player,false];
publicVariableServer "PVDZE_claimmoney";
waitUntil {!isNil "PVDZE_claimmoneyResults"};
if (PVDZE_claimmoneyResults > 0) then {
    systemChat "Your auction items sold!";
    systemChat "Visit a laptop to collect your money.";
    [format["<t size='0.75' color='#00d3ff' align='center'>Funds waiting %1</t><br /><t size='0.6' color='#21d8ff' align='center'>You have sold items at the auction </t>",name player],0,0,10,0.5] spawn BIS_fnc_dynamicText;
};
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...