Jump to content
  • 0

Hero method for 2 weeks npc


Question

Posted

HI all, i set in my npc to make character hero. In next settings you will see. But, i want to set hero for 1 month. Now, if player buy hero, after restart, hero it's gone.
Here it is few setting.
 

else if (event.equalsIgnoreCase("hero"))
		{
			if (!player.isHero())
			{
				player.setHero(true);
				player.broadcastPacket(new SocialAction(player.getObjectId(), 20016)); // Hero Animation
				player.broadcastUserInfo();
				player.destroyItemByItemId("Get your hero!", 6391, 25000, player, true);
				return "character.htm";
			}
			else if (player.isHero())
			{
				player.setHero(false);
				player.broadcastUserInfo();
				return "character.htm";
			}
		}

How i can set a "period" ? I check olympiad method. But those settings are much and i don't understand nothing.
Greetings

7 answers to this question

Recommended Posts

  • 0
Posted

Agree. Thats a big system. You can make it very simple with a long type variable that check upon login if current Milliseconds is smaller than the variable to set hero and upon log out to store but thats an amateur way.

 

You better pay a dev or learn to make something good do not make amateur systems for servers with 2 lines of code just to have em

  • 0
Posted

And who can do this? I will pay it

I was scammed by EdithFinch
Anyone can come to fix this please? Not big deal. This guy make an incomplete code. I request a npc which gave hero for 1 day and second time to make a coin (handler) to give hero for 30 days. Coin and Npc take just required items and don't give Hero Status. Also i get time for this. Thank you!

Guest
This topic is now closed to further replies.


  • Posts

    • Do You understand the fact, I won't scam anyone? Can You grasp such idea?  Second of all, if a random restaurant on Google Maps has 599 positive reviews and few negative ones with 4,8* score, do You ask Google to block it's profile and burn the place down? No? Then why the fuck You are crying about my random delays? If someone can't get a CUSTOM DESIGN on time, I refund. I'm not 16  y.o. anymore. I don't make living out of this L2 bullshit. Never did. Since 2012 I've made shit tons of projects. How many delays did I have? 12? 15? Out of hundrets of projects. Calm Your tits please. If I would actually take 4k euro and NOT deliver and NOT refund - admins can ban me. So don't compare me to Simple. And just so You know, Celestine sent me customers, so it's not like I've worked with him on his account all the time. That's another thing You won't understand. I won't waste anymore time on You and any other cunt who never was my customer but is bitching just because he has nothing better to do in his life. You don't like my work? Hove along, I don't give a shit. 
    • So he's like unsimple you would say? Cherry picking who's getting scammed.   Deliver 5 projects, don't deliver/delay the other 2 projects. Of course he won't scam you because he know what's gonna happen after since he's dealing with the admin himself.
    • I've worked with Ave a lot lately on designs and other projects. He has always delivered as quickly as possible sometimes within a week, maybe two. Personally, I’m patient, so I’ve never had an issue with the wait. I’m not trying to defend him blindly, but I genuinely don’t believe he would mess someone over for €60 €100. Sometimes he's inactive, likely due to real life responsibilities, but I don't judge everyone has their own situations. I understand that some people are impatient and want their orders completed quickly, but considering the quality of his work, I have no problem waiting. Of course, people react differently to delays, and that’s fair. But in my experience, I can't call him a scammer he's always delivered what I ordered.
    • Good day. Our game currency store is looking for suppliers of adena and items on a project such as L2REBORN x10. We also sell Epic jewelry and various items on this project L2REBORN x10. There are items and adena on L2REBORN x1. For all questions, write to us in discord - goddardshop
  • Topics

×
×
  • Create New...