Skip to content

[Quest API] Add Last Login and First Login Flags to EVENT_CONNECT#4866

Merged
Akkadius merged 4 commits intomasterfrom
quest_api/event_connect_flags
May 15, 2025
Merged

[Quest API] Add Last Login and First Login Flags to EVENT_CONNECT#4866
Akkadius merged 4 commits intomasterfrom
quest_api/event_connect_flags

Conversation

@Kinglykrab
Copy link
Copy Markdown
Contributor

@Kinglykrab Kinglykrab commented Apr 17, 2025

Description

  • Adds last_login, seconds_since_last_login, and is_first_login to EVENT_CONNECT in Perl and Lua.

Perl

  • Add $last_login, $seconds_since_last_login, and $is_first_login to EVENT_CONNECT.

Perl Example

sub EVENT_CONNECT {
	quest::debug("last_login $last_login");
	quest::debug("seconds_since_last_login $seconds_since_last_login");
	quest::debug("is_first_login $is_first_login");
}

Lua

  • Add e.last_login, e.seconds_since_last_login, and e.is_first_login to event_connect.

Lua Example

function event_connect(e)
	eq.debug("last_login " .. tostring(e.last_login))
	eq.debug("seconds_since_last_login " .. tostring(e.seconds_since_last_login))
	eq.debug("is_first_login " .. tostring(e.is_first_login))
end

Type of change

  • New feature

Checklist

  • I have tested my changes
  • I have performed a self-review of my code. Ensuring variables, functions and methods are named in a human-readable way, comments are added only where naming of variables, functions and methods can't give enough context.
  • I own the changes of my code and take responsibility for the potential issues that occur

@Akkadius Akkadius force-pushed the quest_api/event_connect_flags branch from 01f2a4d to 6841a34 Compare May 15, 2025 01:35
@Akkadius Akkadius merged commit 3b617a6 into master May 15, 2025
2 checks passed
@Akkadius Akkadius deleted the quest_api/event_connect_flags branch May 15, 2025 01:46
@Akkadius Akkadius mentioned this pull request May 15, 2025
joligario added a commit to ProjectEQ/peqphpeditor that referenced this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants