Jump to content
n0tttt

Quests, Games: Event Manager

Recommended Posts

Event Manager


This is an event manager I made. The events are of public knowledge (there aren't many ways to do good events and these are the ones I found to be the best, at the moment I wrote up the script), and I inspired myself from them. Here's the list of events it has as of now. Have fun!
I can add some events if you like to. I considered some myself (like MvP vs MvP) but they offered little gameplay experience to do so. I can reconsider though!

 

Avaiaible events:

    - Dices.
    - Find the Porings.
    - Escape from the Bombrings.
    - Guess the Monster.
    - Pick the Candy.
    - Devil Square.
    - Cluckers.

Features:

    - Easy addition of events.
    - Random queue system which players can check with @events command.
    - Automatic joining with @event command.
    - Can manually start & end events (forcing them to end).
    - Events can have a limited amount of players.
    - Events have a limited time to let players register before they start.
    - Configurable prizes.

 

I must give credits to sandbox, Stolao, and AnnieRuru for all the events I found, Thank you guys!

If you buy, you accept this:
You cannot redistribute this, less as your own.
You can modify it as you like, however, in order to receive proper support, you must tell me what you modified.


 

Share this post


Link to post
Share on other sites

N

On 6/17/2017 at 8:26 AM, n0tttt said:

Event Manager


This is an event manager I made. The events are of public knowledge (there aren't many ways to do good events and these are the ones I found to be the best, at the moment I wrote up the script), and I inspired myself from them. Here's the list of events it has as of now. Have fun!
I can add some events if you like to. I considered some myself (like MvP vs MvP) but they offered little gameplay experience to do so. I can reconsider though!

 

Avaiaible events:

    - Dices.
    - Find the Porings.
    - Escape from the Bombrings.
    - Guess the Monster.
    - Pick the Candy.
    - Devil Square.
    - Cluckers.

Features:

    - Easy addition of events.
    - Random queue system which players can check with @events command.
    - Automatic joining with @event command.
    - Can manually start & end events (forcing them to end).
    - Events can have a limited amount of players.
    - Events have a limited time to let players register before they start.
    - Configurable prizes.

 

I must give credits to sandbox, Stolao, and AnnieRuru for all the events I found, Thank you guys!

If you buy, you accept this:
You cannot redistribute this, less as your own.
You can modify it as you like, however, in order to receive proper support, you must tell me what you modified.


 

How much?

Share this post


Link to post
Share on other sites
On 18/7/2017 at 4:33 PM, eros11 said:

N

How much?

Do you mean price? If that's what you mean, $15. Or whatt do you mean?

Share this post


Link to post
Share on other sites

 

How can I set the specific times for each event? :huh:

Share this post


Link to post
Share on other sites

You can delete the OnQueue and OnClock1200 label and then add this:

OnMinute00:

	setarray [email protected][0], 
			0, // 00:00
			7, // 01:00 (cluckers)
			0, // 02:00
			0, // 03:00
			0, // 04:00
			0, // 05:00
			0, // 06:00
			0, // 07:00
			0, // 08:00
			0, // 09:00
			0, // 10:00
			0, // 11:00
			0, // 12:00
			0, // 13:00
			1, // 14:00 (dices)
			0, // 15:00
			0, // 16:00
			0, // 17:00
			0, // 18:00
			0, // 19:00
			4, // 20:00 (guess the monster)
			0, // 21:00
			0, // 22:00
			0; // 23:00

	[email protected] = [email protected][gettime(DT_HOUR)];
	if(!.event_active) {
		.event_active = [email protected];
		if(.maps$[[email protected] - 1] != "")
			set_mapflags([email protected] - 1);
		donpcevent .events$[[email protected] - 1]+"::OnStart";
	}
	end;

Then you config the events in the desired hours. The number of the events is:

        [1] = Dices.
        [2] = Find the Porings.
        [3] = Escape from the Bombrings.
        [4] = Guess the Monster.
        [5] = Pick the candy.
        [6] = Devil Square.
        [7] = Cluckers.

 

I will edit the script to add a configuration about the event automatic modes in the future. I'm not in my house currently, so I couldn't test really well to make such a change.

Edited by n0tttt

Share this post


Link to post
Share on other sites

New version 1.2!

  • Fixed Pick the Candy Event: Changed the method to use attachrid instead of addrid because of multiprocessing issues.
  • Fixed Bombring Event death haldling to require only one instance of addrid.

Share this post


Link to post
Share on other sites

Sorry but no, eAmod is too outdated and I use some newer script commands like getfreecell. Maybe I could edit those parts (it isn't that hard), or those commands could be easily applied to the emulator, but I can't guarantee.

Share this post


Link to post
Share on other sites

Yeah, I updated the script but the update hasn't been aproved yet. Sorry!

Share this post


Link to post
Share on other sites
[Debug]: NPCEvent 'Eventos::OnEndEvent' not found! (source: Event_DevilSquare)

 

Share this post


Link to post
Share on other sites
On 3/16/2019 at 7:27 AM, Break said:
[Debug]: NPCEvent 'Eventos::OnEndEvent' not found! (source: Event_DevilSquare)

 

Fixed, waiting for revision.

Share this post


Link to post
Share on other sites
[Warning]: script: buildin_getmapxy: Invalid type 128.
[Debug]: Source (NPC): Clucker at prontera (163,226)
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!

 

Edited by Break

Share this post


Link to post
Share on other sites
8 minutes ago, Break said:
[Warning]: script: buildin_getmapxy: Invalid type 128.
[Debug]: Source (NPC): Clucker at prontera (163,226)
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!

 

You don't have the last version of rAthena.

But you can change this line:

getmapxy [email protected]$,[email protected],[email protected],BL_NPC;

to:

getmapxy [email protected]$,[email protected],[email protected],UNITTYPE_NPC;

 

  • Like 1

Share this post


Link to post
Share on other sites

It is possible to add Event RFYL in the new version?

Can you help fix the event RFYL? When 1 player remains, the event does not end.

-    script    Event_RFYL    -1,{

OnStart:

    [email protected]_event = true;
    mapwarp "rfylmap3","prontera",rand(148,163),rand(167,186);
    announce "The Run from the RFYL event will soon begin.",bc_all,0xEE0C14;
    sleep 2000;
    announce "If you want to join use the @event command.",bc_all,0xEE0C14;
    sleep 2000;
    announce "The entry will be open for 1 minute.",bc_all,0xEE0C14;
    sleep 30000;
    announce "30 seconds left to register to Run from the RFYL event.",bc_all,0xEE0C14;
    sleep 30000;
    announce "The entry to the event has been closed.",bc_all,0xEE0C14;
    [email protected]_event = false;
    sleep 3500;
    .@players = getmapusers("rfylmap3");
    if(.@players < 3) {
        announce "The event has been cancelled due to a low amount of players.",bc_all,0xEE0C14;
        killmonsterall "rfylmap3";
        .@end = true;
        donpcevent "Events::OnEndEvent";
        end;
    }
    mapannounce "rfylmap3","We're about to begin the event.",bc_all,0xEE0C14;
    sleep 2500;
    mapannounce "rfylmap3","There will be RFYL everywhere.",bc_all,0xEE0C14;
    sleep 2500;
    mapannounce "rfylmap3","And every sigle one of them will explode, so be careful.",bc_all,0xEE0C14;
    sleep 2500;
    mapannounce "rfylmap3","As time goes, more RFYL will appear.",bc_all,0xEE0C14;
    sleep 2500;
    mapannounce "rfylmap3","So be prepared! Because they will come even if you're not!",bc_all,0xEE0C14;
    sleep 2500;
    monster "rfylmap3",51,51,"Crazy Poring",1847,1,"Event_RFYL::OnRFYLMobDead";
    sleep 60000;
    monster "rfylmap3",51,34,"Crazy Poring",1847,1,"Event_RFYL::OnRFYLMobDead";
    end;
    
OnPCDieEvent:
    .@players = getmapusers("rfylmap3");
    if( .@players == 1 && ![email protected]_event) {
        killmonsterall "rfylmap3";
        .@end = true;
        .@size = getmapunits(BL_PC,"rfylmap3",.@players);
        for(.@i = 0;.@i < .@size;.@i++) {
            attachrid .@players[.@i];
            announce strcharinfo(0)+" has won the Run from the RFYL event!",bc_all,0xEE0C14;
            @event_prize = 6;
            doevent "Events::OnPrize";
            warp "prontera",rand(148,163),rand(167,186);
        }    
    }
    donpcevent "Events::OnEndEvent";
    end;
}

 

Share this post


Link to post
Share on other sites

It's still on sale?

Share this post


Link to post
Share on other sites

I bought it. But i dont know how to install.

Could you help me? or someone? 

Have an exellent day

I bought it. But i dont know how to install.

Could you help me? or someone? 

Have an exellent day

Edited by omar94

Share this post


Link to post
Share on other sites
On 7/31/2019 at 10:34 PM, omar94 said:

I bought it. But i dont know how to install.

Could you help me? or someone? 

 

Have an exellent day

Just go to your rAthena npc folder and edit script_custom.conf with Notepad.

Add this line anywhere:

 

npc: npc/custom/Events.txt

Then copy the "Events.txt" file into the npc/custom folder.

You can now talk in-game to the script using @events script command.

Share this post


Link to post
Share on other sites

LStK4KN.png

 

Can someone help me fix these errors. The npc wont even work. 

Also is there a way to remove the Devil square? I already have my own custom one running. 

Share this post


Link to post
Share on other sites
3 hours ago, Xenduria said:

LStK4KN.png

 

Can someone help me fix these errors. The npc wont even work. 

Also is there a way to remove the Devil square? I already have my own custom one running. 

It seems like you don't have or aren't loading Global_Functions.txt (https://raw.githubusercontent.com/rathena/rathena/master/npc/other/Global_Functions.txt)

You can delete the line in add_event, and also the Event_DevilSquare script.

  • Upvote 1

Share this post


Link to post
Share on other sites
18 hours ago, n0tttt said:

It seems like you don't have or aren't loading Global_Functions.txt (https://raw.githubusercontent.com/rathena/rathena/master/npc/other/Global_Functions.txt)

You can delete the line in add_event, and also the Event_DevilSquare script.

Yep, fixed it! Thank you much ❤️

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.