Home Download Forum My Account Store NPC/Item Drop Database

The letter collector event

READ FIRST: L2Divine Forum Rules

The letter collector event

Post by landford on Fri Apr 14, 2017 02:34 PM

This's script for exchange complete letter.

Code: Select all
// ------------------------------------------------------------------
// Author: Landford - FE
// LV: -
// Version: 1.0
// Support Divine: 10.5.3 or higher
// Special Thanks: shevnall , zutsu , Zariche
// ------------------------------------------------------------------

// Start The Letter Collector Event
Start:
Msg(Console, "Let's go to exchange complete letter!")
Msg(Console, "Version 1.0")


CheckAngelCat:
If (CheckNPCRange(33873) > 500)
{
Msg(Console, "Angel Cat isn't in range. Please go to range 500 and start script again!")
Exit
}

If (CheckNPCRange(33873) <= 500)
{
MoveToTarget(100)
Delay(1000)
Jump("CheckLetter")
}


CheckLetter:
//NCSOFT
If (CountItem(3883) > 0 )
{
If (CountItem(3876) > 0 )
{
If (CountItem(3886) > 0 )
{
If (CountItem(3884) > 0 )
{
If (CountItem(3878) > 0 )
{
If (CountItem(3887) > 0 )
{
Jump("ExchangeNCSOFT")
}
}
}
}
}
}

// TOGETHER
If (CountItem(3887) > 1 )
{
If (CountItem(3884) > 0 )
{
If (CountItem(3879) > 0 )
{
If (CountItem(3877) > 0 )
{
If (CountItem(3880) > 0 )
{
If (CountItem(3885) > 0 )
{
Jump("ExchangeTOGETHER")
}
}
}
}
}
}

//LINEAGEII
If (CountItem(3882) > 0 )
{
If (CountItem(3881) > 0 )
{
If (CountItem(3883) > 0 )
{
If (CountItem(3877) > 1 )
{
If (CountItem(3875) > 0 )
{
If (CountItem(3879) > 0 )
{
If (CountItem(3888) > 0 )
{
Jump("ExchangeLINEAGEII")
}
}
}
}
}
}
}

Exit


ExchangeNCSOFT:
NpcDialog(33873)
Delay(3000)
SelectDialog(4)
Delay(3000)
CloseDialog()
Delay(1000)
Jump("CheckLetter")


ExchangeTOGETHER:
NpcDialog(33873)
Delay(3000)
SelectDialog(3)
Delay(3000)
CloseDialog()
Delay(1000)
Jump("CheckLetter")


ExchangeLINEAGEII:
NpcDialog(33873)
Delay(3000)
SelectDialog(2)
Delay(3000)
CloseDialog()
Delay(1000)
Jump("CheckLetter")


Exit:
Avatar
Moderator
 
Posts: 806
Joined: Fri May 28, 2010 10:53 PM


Who is online

In total there is 2 user online
Registered users: malihua, zenithmaster
Legend: , , , Registered User

2006-2017 ☻ L2DIVINE.COM