Jump to content
  • 0

you are not allowed to use the attendance system


Question

7 answers to this question

Recommended Posts

  • 0
Posted
12 hours ago, Sir Meliodas said:

Yes I put the same date as CheckAttendance.lub

CheckAttendance.lub

Config = {StartDate = 20181101, EndDate = 20181130}

attendance.yml

Start: 20181101
    End: 20181130

Check at some folder 

-first conf\battle\feature.conf, check is the feature already on

Quote

// Attendance System (Note 1)
// Requires: 2018-03-07bRagexeRE or later
feature.attendance: on

-second db\re\attendace.yml, check the date and item reward

Spoiler
Quote

Header:
  Type: ATTENDANCE_CONF
  Version: 1
  
Attendance:
  - Start: 20181101
    End: 20181130
    Rewards:
      - Day: 1
        ItemId: 22979
      - Day: 2
        ItemId: 6316
      - Day: 3
        ItemId: 12265
        Amount: 5
      - Day: 4
        ItemId: 23047
        Amount: 5
      - Day: 5
        ItemId: 23038
      - Day: 6
        ItemId: 23043
      - Day: 7
        ItemId: 23340
        Amount: 3
      - Day: 8
        ItemId: 12516
        Amount: 5
      - Day: 9
        ItemId: 23307
        Amount: 5
      - Day: 10
        ItemId: 12610
      - Day: 11
        ItemId: 14533
        Amount: 2
      - Day: 12
        ItemId: 23012
        Amount: 3
      - Day: 13
        ItemId: 23048
        Amount: 5
      - Day: 14
        ItemId: 12264
        Amount: 5
      - Day: 15
        ItemId: 23046
        Amount: 5
      - Day: 16
        ItemId: 12515
        Amount: 5
      - Day: 17
        ItemId: 12522
        Amount: 5
      - Day: 18
        ItemId: 12523
        Amount: 5
      - Day: 19
        ItemId: 6234
      - Day: 20
        ItemId: 22845
 

 

-third at system\checkattendance.lub, same as db folder check the date and item reward

Spoiler
Quote

Config = {
    StartDate = 20181101,
    EndDate = 20181130
}

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, 12610, 1 },
    { 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, 6234, 1 },
    { 20, 22845, 1 }
}

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

 

here my ss

Spoiler

screenrAthena099.thumb.jpg.b5a2324057dbe08ca9e4ee67962a3693.jpg

 

  • 0
Posted
1 hour ago, Normynator said:

Have you checked the attendance.yml ? 

Yes I put the same date as CheckAttendance.lub

CheckAttendance.lub

Config = {StartDate = 20181101, EndDate = 20181130}

attendance.yml

Start: 20181101
    End: 20181130

  • 0
Posted

Is this still working or there is an update? I still get an error message that I am not allowed to use the system.

I added this in db/import/attendance.yml

Quote

Header:
  Type: ATTENDANCE_DB
  Version: 1
Attendance:
  - Start: 20190423
    End: 20191130
    Rewards:
      - Day: 1
        ItemId: 22979
      - Day: 2
        ItemId: 6316
      - Day: 3
        ItemId: 12265
        Amount: 5
      - Day: 4
        ItemId: 23047
        Amount: 5
      - Day: 5
        ItemId: 23038
      - Day: 6
        ItemId: 23043
      - Day: 7
        ItemId: 23340
        Amount: 3
      - Day: 8
        ItemId: 12516
        Amount: 5
      - Day: 9
        ItemId: 23307
        Amount: 5
      - Day: 10
        ItemId: 12610
      - Day: 11
        ItemId: 14533
        Amount: 2
      - Day: 12
        ItemId: 23012
        Amount: 3
      - Day: 13
        ItemId: 23048
        Amount: 5
      - Day: 14
        ItemId: 12264
        Amount: 5
      - Day: 15
        ItemId: 23046
        Amount: 5
      - Day: 16
        ItemId: 12515
        Amount: 5
      - Day: 17
        ItemId: 12522
        Amount: 5
      - Day: 18
        ItemId: 12523
        Amount: 5
      - Day: 19
        ItemId: 6234
      - Day: 20
        ItemId: 22845

Quote

Config = {
    StartDate = 20190423,
    EndDate = 20191230
}

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,    12610,    1    },
    { 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,    6234,    1     },
    { 20,    22845,    1    }
}

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

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...