Monkeynutz

GADDvent Calendar

23 posts in this topic

GADDvent Calendar

Simple script.... It's an Advent calendar for Christmas!

It's been a while since i gave you all something. I spent the past few days creating this. Follow the instructions, shoot me a message on Discord if you need help!

https://github.com/GamingAtDeathsDoor/GADDvent

Update: Added day check to success messages to no longer display "Come back tomorrow" if it's Christmas day. Just merge your ClaimGift.sqf with the new one.
Update: Fixed ExileServerStartTime variable not defined. Please re-read the instructions all the way to the bottom if you see this issue. You will need to download the addon again and grab the files from the mission side of the addon.
Update: Fixed description.ext to include missing sound file.
Update: Added a configurable option to weapons where you can have it spawn with magazines and also choose the number of mags it will spawn with.  To update, merge your ClaimGift.sqf.
Update: You can now choose the quantity of the items you wish to give players.

Edited by Monkeynutz
Update.
  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites
Advertisement

Bekomme Folgende Fehlermeldung:

Get the following error message

[09:23:46:092518 +02:00] [Thread 6416] extDB2: SQL_CUSTOM_V2: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_execute error	[mysql_stmt_error]: Incorrect integer value: 'any' for column 'gaddvent' at row 1	[mysql_stmt_errno]: 1366	[mysql_stmt_sqlstate]: HY000	[statemnt]: UPDATE account SET gaddvent = ? WHERE uid = ?
[09:23:46:092643 +02:00] [Thread 6416] extDB2: SQL_CUSTOM_V2: Wiping Statements + Session

 

Edited by [GC] lutz!p0

Share this post


Link to post
Share on other sites
18 minutes ago, [GC] lutz!p0 said:

Bekomme Folgende Fehlermeldung:

Get the following error message


[09:23:46:092518 +02:00] [Thread 6416] extDB2: SQL_CUSTOM_V2: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_execute error	[mysql_stmt_error]: Incorrect integer value: 'any' for column 'gaddvent' at row 1	[mysql_stmt_errno]: 1366	[mysql_stmt_sqlstate]: HY000	[statemnt]: UPDATE account SET gaddvent = ? WHERE uid = ?
[09:23:46:092643 +02:00] [Thread 6416] extDB2: SQL_CUSTOM_V2: Wiping Statements + Session

 

You need to update your db and add to exile ini some code.
 


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; GADDVent
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[gaddventGetNumber]
SQL1_1 = SELECT gaddvent FROM account WHERE uid = ?
Number Of Inputs = 1
SQL1_INPUTS = 1
OUTPUT = 1

[gaddventUpdateNumber]
SQL1_1 = UPDATE account SET gaddvent = ? WHERE uid = ?
Number Of Inputs = 2
SQL1_INPUTS = 1,2

 

Share this post


Link to post
Share on other sites

should it really be

Spoiler

ALTER TABLE `tanoa`.`account`

in GADDvent.sql or we should change it to the scheema we are using?

Using Chernarus 2035 map. Or this is Tanoa only addon?

Thanks

Edited by Brenner

Share this post


Link to post
Share on other sites
4 hours ago, [x] cit said:

I have all working, but trader show me only this: GADDvent Calendar", "Opening Gift for today! Stand by!

Then I hear music and no gift

Description.ext Network Messages need adding.

  • Like 1

Share this post


Link to post
Share on other sites

I fixed my description,
but have no result
server rpt clear
client rpt have:
 

19:02:44 Error in expression <id = getPlayerUID player; 
_dayOfXmas = ExileServerStartTime select 2;
_pinRando>
19:02:44   Error position: <ExileServerStartTime select 2;
_pinRando>
19:02:44   Error Undefined variable in an expression: exileserverstarttime
19:02:44 File mpmissions\__CUR_MP.Altis\custom\GADDvent\ClaimGift.sqf, line 7

19:02:47 Error in expression < GADDventNumber;

if (_GADDventNumber > _dayOfXmas) exitWith
{
["ErrorTitleAndTe>
19:02:47   Error position: <_dayOfXmas) exitWith
{
["ErrorTitleAndTe>
19:02:47   Error Undefined variable in an expression: _dayofxmas
19:02:47 File mpmissions\__CUR_MP.Altis\custom\GADDvent\ClaimGift.sqf, line 107

 

Share this post


Link to post
Share on other sites

Updated to fix Variable ExileServerStartTime missing. Some users who do not use status bars might experience an error where the variable is undefined. You will need to define it using the overrides provided in the repo.
Thanks @kuplion for the swift fix :P 

Edited by Monkeynutz
  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.