Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] New triggers #1296

Open
canerksk opened this issue Sep 19, 2024 · 0 comments
Open

[Feature Request] New triggers #1296

canerksk opened this issue Sep 19, 2024 · 0 comments

Comments

@canerksk
Copy link
Contributor

canerksk commented Sep 19, 2024

@NpcShrink and @NpcUnShrink
I am making this request because I do not know whether the follower system is currently working or not.
I don't know exactly if @logout / @login triggers are triggered on NPCs.

@mount @DisMount is triggered on the mount, but when we switch to another mount while on our mount, we need triggers like @CharMount and @CharDismount on the character as well.

@OpenDialog


bool CClient::Dialog_Setup
{
..
..
..
	CScriptTriggerArgs OpenDialogArgs;
	//OpenDialogArgs.m_VarsLocal.SetStr("Mode", mode, false);
	//OpenDialogArgs.m_VarsLocal.SetStr("Dlg", pDlg, false);
	OpenDialogArgs.m_VarsLocal.SetStrNew("Name", pDlg->GetResourceName());
	OpenDialogArgs.m_VarsLocal.SetNumNew("Page", iPage);
	OpenDialogArgs.m_VarsLocal.SetNumNew("X", pDlg->m_x);
	OpenDialogArgs.m_VarsLocal.SetNumNew("Y", pDlg->m_y);
	if (pObj->OnTrigger("@OpenDialog", m_pChar, &OpenDialogArgs) == TRIGRET_RET_TRUE)
		return false;

maybe @Openbank

void CItemContainer::OnOpenEvent( CChar * pCharOpener, const CObjBaseTemplate * pObjTop )
{
	if ( IsType(IT_EQ_BANK_BOX) || IsType(IT_EQ_VENDOR_BOX))
	{
		if (IsType(IT_EQ_BANK_BOX))
		{
			pCharOpener->OnTrigger("@OpenBank", pChar, NULL);
		}
		..
		..
		..
	}
}

The codes here are purely examples. Although many have been tested, some may need to be rewritten.

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

No branches or pull requests

1 participant