Jump to content
  • 0

redsky just in town on little event.


Question

3 answers to this question

Recommended Posts

  • 0
Posted

You include a onEnter / onExit code in a given zone, or create a custom area.

 

Basically it could be :

 

protected void onEnter(L2Character character)
{
if (character instanceof L2PcInstance)
{
	//register yourself in a town zone
	character.setInsideZone(L2Character.ZONE_TOWN, true);

	// if event up, make the sky red for all people in this area
	if eventIsInProgress
		put redsky
}
}

protected void onExit(L2Character character)
{
if (character instanceof L2PcInstance)
{
	//register yourself in a town zone
	character.setInsideZone(L2Character.ZONE_TOWN, false);

	// if event up, make the sky red for all people in this area
	if eventIsInProgress
		remove redsky
}
}

 

Of course you have to code, as I take only exemple :

// if event up, make the sky red for all people in this area

if eventIsInProgress

remove redsky

  • 0
Posted

my code seens like this :

public boolean eventStart(L2PcInstance player)
{
	if (character instanceof L2PcInstance)
	{
	//register yourself in a town zone
	player.setInsideZone(L2Character.ZONE_TOWN, true);

	// if event up, make the sky red for all people in this area
	[color=red]if [/color] eventIsInProgress;
	// Make Sky Red For 2 mins.
	ExRedSky = new ExRedSky(120);
	}

 

just the second if is a problem :S need help

  • 0
Posted

public boolean eventStart(L2PcInstance player)

 

Lol ? Have you read the totality of my message ?

 

A boolean will have to return true/false, and why create a method about it ?

 

Just add custom code in an existing zone, or create your own custom zone from a clean template.

 

BTW if you want to add it on an exisiting event, give more infos, because adding it to an existing zone wouldn't be the best solution.

 

Solutions are multiple, and the best one depends of what you need. So explain your case in totality.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • Added: 🎁 Seasonal Bonus System When the seasonal bonus is enabled, players receive additional bonus coins equal to bonus_season_percent of their donation amount. 💡 How it works (example): A player donates through their personal account and immediately receives regular coins. At the same time, bonus coins equal to 30% of the donation are credited. Example: Donation: 1000 coins → Bonus: 300 coins (30%) These bonus coins are not available immediately — they can be claimed later when the next season begins. 📅 When the bonus can be claimed: bonus_season_claim_start_date – the date when the "Claim" button becomes available. bonus_season_claim_end_date – the date after which the bonus can no longer be claimed. During this time window, the "Claim" button will appear in the personal account, allowing players to collect their accumulated bonus. 'bonus_season_enabled' => true, // Enable/disable the seasonal bonus system 'bonus_season_percent' => 30, // Percentage of the donation to be given as bonus coins (30 = 30%) 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Date when the Claim button becomes available in the new season   'bonus_season_enabled' => true, // Вкл./Выкл Сезонную бонусную систему? 'bonus_season_percent' => 30, // Процент, при донате получает монеты в процентах 30 = 30%, которые может использовать в следующем открытии 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Дата когда доступна кнопка Claim в новом сезоне 'bonus_season_claim_end_date' => '2025-08-15 20:00:00', // Дата окончания когда кнопка Claim в новом сезоне
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market  
    • HELLO EVERYONE. WE ARE SELLING A LOT OF ADENA ON L2 REBORN DISCORD - GODDARDSHOP   HURRY TO BUY OR YOU MAY NOT MAKE IT!!!
    • you can find the extender at GX-EXT Discord! http://prntscr.com/coUwKnD4Zs_w https://l2servers.com.ar/   @GX-Ext
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock