Jump to content

Utility: [FREE] Event Manager


Mabuhay

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

[FREE] Event Manager


Ehh since my event scripts are piling up, I decided to make an Event Manager

// Basic Event Manager
// By Mabuhay
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Currently added are the ff :
 {#} NAME - "NPC_NAME" 
 [1] Bombring - "Event_Bombring"
 [2] Dice - "Event_Dice"
 [3] Last Man Standing - "Event_LMS"
 [4] Novice V Zombie - "Event_NvZ"
 [5] Poring Catcher - "Poring_Catcher"
 [6] Poring Hunter - "Poring_Hunter" (Added 12-15-2019)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
// For easier management of Event NPCs
/////////////////////////////////////
//            NOTE:                //
/////////////////////////////////////
// I don't support any modifications unless I want to.
// But if you want to change things especially the rewards,
// Please refer to my F_Reward Functions
// https://rathena.org/board/files/file/4068-itemvariablepoints-reward-function-for-beginners-or-lazy/
// You should be able to easily change the rewards
// If you have basic scripting knowledge

Header Settings:

OnInit:
	// 1 = item reward
	// 2 = variable/cashpoints reward
	// If you want to set item and variable/cashpoints rewards, do 1|2.
	// If you only want 1, just choose between 1 or 2
	$event_options = 1|2;
	
	// If item reward enabled
	// What items will be rewarded
	setarray $event_item_reward,
		501, 10,
		502, 5;
		
	// If variable reward.. set to your variable.
	// If cashpoints.. set to #CASHPOINTS / #KAFRAPOINTS (Free Cash Points)
	$event_var$ = "#EVENTVARIABLE";
	
	// Variable name?
	// If cash points, set to Cash Points
	// If your custom var, set to the name of that thing.
	$event_var_name$ = "Custom Points";
	
	// How much points gain if #VAR / #CASHPOINTS / #KAFRAPOINTS?
	$event_var_gain = 1;
	
	$event_item_arr = getarraysize($event_item_reward);
	
	// @eventstart for GM
	bindatcmd "eventstart", strnpcinfo(0)+"::OnStart",60,60;
	
	// @eventjoin
	bindatcmd "eventjoin", strnpcinfo(0)+"::OnJoinEvent";
	end;

 

You may now use @eventstart for GMs to select which ones to start.

@eventjoin for players to enter and see which event is currently active

 

Event timers / Clock are to be set here :

	// OnClock<hour><minute>: donpcevent "<npc_name>::OnStart";
	OnClock0000: donpcevent "Event_Bombring::OnStart"; end; //----- 12 mn
	OnClock0100: donpcevent "Event_Dice::OnStart"; end;
	OnClock0200: donpcevent "Event_LMS::OnStart"; end;
	OnClock0300: donpcevent "Poring_Catcher::OnStart"; end;
	OnClock0400: donpcevent "Event_NvZ::OnStart"; end;
	OnClock0500: donpcevent "Poring_Hunter::OnStart"; end;
	OnClock0600: donpcevent "Event_Bombring::OnStart"; end; //----- 6 am
	OnClock0700: donpcevent "Event_Dice::OnStart"; end;
	OnClock0800: donpcevent "Event_LMS::OnStart"; end;
	OnClock0900: donpcevent "Poring_Catcher::OnStart"; end;
	OnClock1000: donpcevent "Event_NvZ::OnStart"; end;
	OnClock1100: donpcevent "Poring_Hunter::OnStart"; end;
	OnClock1200: donpcevent "Event_Bombring::OnStart"; end; //----- 12 nn
	OnClock1300: donpcevent "Event_Dice::OnStart"; end;
	OnClock1400: donpcevent "Event_LMS::OnStart"; end;
	OnClock1500: donpcevent "Poring_Catcher::OnStart"; end;
	OnClock1600: donpcevent "Event_NvZ::OnStart"; end;
	OnClock1700: donpcevent "::OnStart"; end;
	OnClock1800: donpcevent "Event_Bombring::OnStart"; end; //----- 6 pm
	OnClock1900: donpcevent "Event_Dice::OnStart"; end;
	OnClock2000: donpcevent "Event_LMS::OnStart"; end;
	OnClock2100: donpcevent "Poring_Catcher::OnStart"; end;
	OnClock2200: donpcevent "Event_NvZ::OnStart"; end;
	OnClock2300: donpcevent "Poring_Hunter::OnStart"; end; //----- 11 pm

Currently I just alternately activate events per hour. You can change the event time as you wish. You may choose any of the ff:

OnClock<hour><minute>:
OnMinute<minute>:
OnHour<hour>:
On<weekday><hour><minute>:
OnDay<month><day>:

 

I hope this helps. If you want me to add more, just PM me on an event script that needs to be updated. Thank you. ?

Compatibility is your responsibility.
No backward Compatibility Support.

Enjoy!

NOTE : If you find this useful, please click the Upvote button to motivate me to do stuffs like this ? And you are welcome!


  • Submitter
  • Submitted
    11/23/2019
  • Category
  • Video
  • Content Author
    Mabuhay

 

  • Upvote 8
  • Love 1
  • MVP 2
  • Like 3
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

The Bombring  bug report -> once it start then your in the map, all in the map will get reward then warp to prontera, no monster spawn.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

15 hours ago, shatowolf said:

The Bombring  bug report -> once it start then your in the map, all in the map will get reward then warp to prontera, no monster spawn.

add this :

OnStart:
	if ( .start ) end;
	.round = 0; // add this

on bombring.txt

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   1
  • Joined:  11/29/16
  • Last Seen:  

Hey @Mabuhay you do a awesome job here

if u can do it 

you can set the option to select the reward in game

and  cancel a current event option ?

 

i appreciate that.

 

 

 

Edited by Chaoszinho
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

3 hours ago, Chaoszinho said:

Hey @Mabuhay you do a awesome job here

if u can do it 

you can set the option to select the reward in game

and  cancel a current event option ?

 

i appreciate that.

 

 

 

You can use my Reward Function for each Events and try to be creative.

All my Free release are intended for you guys to modify and get creative. You may freely modify this in any way you see fit. I am not interested in upgrading/changing its mechanics. But if you have some old or cool events, I will check and see if I want to add it here.

  • MVP 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  10/23/19
  • Last Seen:  

how to implement warp "SavePoint",0,0; on the script? Every time i add this, it will stop working properly.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

@Mabuhay Hi bro, is it possible to disabled some events here? like i only want poring catcher / dice / poring hunter

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

47 minutes ago, Takuyakii said:

@Mabuhay Hi bro, is it possible to disabled some events here? like i only want poring catcher / dice / poring hunter

yes just remove from your list 

on 

OnClock

or just change it into event do you want to use

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

1 minute ago, LearningRO said:

yes just remove from your list 

on 


OnClock

or just change it into event do you want to use

How about the Selection? when the player type @eventjoin? do i have to remove also that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

i think yess

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

On 3/28/2020 at 10:13 PM, LearningRO said:

i think yess

Ayt. lemme try and give feedback hehe thanks

On 3/28/2020 at 10:14 PM, Takuyakii said:

Ayt. lemme try and give feedback hehe thanks

@LearningRO Ayt, Thanks it works!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  10/23/19
  • Last Seen:  

On 2/26/2020 at 1:30 AM, ScarrFace said:

how to implement warp "SavePoint",0,0; on the script? Every time i add this, it will stop working properly.

bump. @Mabuhay 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3 hours ago, ScarrFace said:

bump. @Mabuhay 

you must edit each event just use feature search "warp" 

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  10/23/19
  • Last Seen:  

On 3/31/2020 at 10:50 PM, LearningRO said:

you must edit each event just use feature search "warp" 

can you replace the specific map and put savepoint? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

yes you can

2 minutes ago, ScarrFace said:

can you replace the specific map and put savepoint? 

 

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

if i issued the @joinevent command if no event is running the character would not walk and i got this warning on may mapserver. bat

npc_scriptcont: failed npc_checknear test.

any fix?

Edited by kalabasa
Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/01/20
  • Last Seen:  

I got same problem @kalabasa

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.03
  • Content Count:  29
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

Hello everyone. I'm currently using @Mabuhay auto event script but I cannot fix the warp location. it is on random coordinate of the map.

I was hoping when the player die or won they will be warped back to the main town

Link to comment
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...