Jump to content
  • 0

I need help with daily login reward script.


dieyesti

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/23/20
  • Last Seen:  

How to get rid of that event period or how to edit it? 

Untitled.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

47 minutes ago, dieyesti said:

How to get rid of that event period or how to edit it? 

Untitled.png

attendance.yml + system folder attendance.lub/lua

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/23/20
  • Last Seen:  

On 9/14/2020 at 2:57 PM, Poring King said:

attendance.yml + system folder attendance.lub/lua

It only edits the items of the daily rewards not the descriptions, like that event period or that "Thank you for playing" text beside.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

1 minute ago, dieyesti said:

It only edits the items of the daily rewards not the descriptions, like that event period or that "Thank you for playing" text beside.

 

System/attendance.lub 

Config = {	
	StartDate = 20200801,
	EndDate = 20200831
}

Reward = {
	{ 1, 22979, 1 }, 
	{ 2, 6316, 1 }, 
	{ 3, 12265, 5 }, 
	{ 4, 23047, 5 }, 
	{ 5, 23038, 1 }, 
	{ 6, 23043, 1 }, 
	{ 7, 23340, 3 }, 
	{ 8, 12516, 5 }, 
	{ 9, 23307, 5 }, 
	{ 10, 23899, 3 }, 
	{ 11, 14533, 2 }, 
	{ 12, 23012, 3 }, 
	{ 13, 23048, 5 }, 
	{ 14, 12264, 5 }, 
	{ 15, 23046, 5 }, 
	{ 16, 12515, 5 }, 
	{ 17, 12522, 5 }, 
	{ 18, 12523, 5 }, 
	{ 19, 25464, 10 }, 
	{ 20, 25791, 1 }
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/23/20
  • Last Seen:  

15 minutes ago, Poring King said:

 

System/attendance.lub 


Config = {	
	StartDate = 20200801,
	EndDate = 20200831
}

Reward = {
	{ 1, 22979, 1 }, 
	{ 2, 6316, 1 }, 
	{ 3, 12265, 5 }, 
	{ 4, 23047, 5 }, 
	{ 5, 23038, 1 }, 
	{ 6, 23043, 1 }, 
	{ 7, 23340, 3 }, 
	{ 8, 12516, 5 }, 
	{ 9, 23307, 5 }, 
	{ 10, 23899, 3 }, 
	{ 11, 14533, 2 }, 
	{ 12, 23012, 3 }, 
	{ 13, 23048, 5 }, 
	{ 14, 12264, 5 }, 
	{ 15, 23046, 5 }, 
	{ 16, 12515, 5 }, 
	{ 17, 12522, 5 }, 
	{ 18, 12523, 5 }, 
	{ 19, 25464, 10 }, 
	{ 20, 25791, 1 }
}

 

-- Generated with Secret's Attendance Generator version 1.1.0
Config = { StartDate = 20200907, EndDate = 20200927 }
Reward = {
    { 1, 12208, 1 },
    { 2, 12210, 1 },
    { 3, 14500, 1 },
    { 4, 12211, 1 },
    { 5, 7621, 1 },
    { 6, 14002, 1 },
    { 7, 14003, 1 },
    { 8, 985, 1 },
    { 9, 984, 1 },
    { 10, 7776, 1 },
    { 11, 526, 1 },
    { 12, 607, 1 },
    { 13, 12075, 1 },
    { 14, 12080, 1 },
    { 15, 12085, 1 },
    { 16, 12090, 1 },
    { 17, 12095, 1 },
    { 18, 12100, 1 },
    { 19, 6697, 1 },
    { 20, 5474, 1 }
}

main = function()
    result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
    if not result == true then
        return false, msg
    end
    for k, rewardtbl in pairs(Reward) do
        result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
        if not result == true then
            return false, msg
        end
    end
    return true, "success"
end


Mine was this. but the event period at the top didnt change.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

4 minutes ago, dieyesti said:

-- Generated with Secret's Attendance Generator version 1.1.0
Config = { StartDate = 20200907, EndDate = 20200927 }
Reward = {
    { 1, 12208, 1 },
    { 2, 12210, 1 },
    { 3, 14500, 1 },
    { 4, 12211, 1 },
    { 5, 7621, 1 },
    { 6, 14002, 1 },
    { 7, 14003, 1 },
    { 8, 985, 1 },
    { 9, 984, 1 },
    { 10, 7776, 1 },
    { 11, 526, 1 },
    { 12, 607, 1 },
    { 13, 12075, 1 },
    { 14, 12080, 1 },
    { 15, 12085, 1 },
    { 16, 12090, 1 },
    { 17, 12095, 1 },
    { 18, 12100, 1 },
    { 19, 6697, 1 },
    { 20, 5474, 1 }
}

main = function()
    result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
    if not result == true then
        return false, msg
    end
    for k, rewardtbl in pairs(Reward) do
        result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
        if not result == true then
            return false, msg
        end
    end
    return true, "success"
end


Mine was this. but the event period at the top didnt change.

Like what i said you need to modify too on server side ! 
 

  Imports:
  - Path: db/pre-re/attendance.yml
    Mode: Prerenewal
  - Path: db/re/attendance.yml
    Mode: Renewal
  - Path: db/import/attendance.yml

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/23/20
  • Last Seen:  

10 minutes ago, Poring King said:

Like what i said you need to modify too on server side ! 
 


  Imports:
  - Path: db/pre-re/attendance.yml
    Mode: Prerenewal
  - Path: db/re/attendance.yml
    Mode: Renewal
  - Path: db/import/attendance.yml

 

Also the same result. I think this is some kind of text file. not sure. Im new to this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...