Jump to content
Stolao

Stolao's Auto Event [v2.5A]

Recommended Posts

< Stolao's Auto Event >

 

Features:

  • Dynamically Runs events every hour based on the in game confugurable menus
  • Event List: Emperium Event, Zombie Survival, Dice Event, PvP Event, Maze Event, Find The Poring, Cluckers, Lucky Pick, Bombring Event, Manhunt, Find The Mushroom, Find the Baphomet, Grab the Candy, Monster Counting, Disguise, Fabre Killing, Devil Square
  • Uses Custom Commands, @JoinEvent and @RunEvent
  • Contain map "Maze" originally posted by here
  • Mails Rewards to players

Todo:

  • Suggestions?
  • Add Events DB Event, MVP Arena, Invasion, Ragnarok Training
  • Add a vote for event option with queue
  • Make customizable in game by gm
  • Add more events
  • Optimize

Changelog:

... for older view git
2.39 Added Find th Baphomet
2.3A Added Grab the Candy!
2.3B Added Monsters Counting (requires the server to be compiled with regular expressions library enabled)
2.3C Combined OnPCLogout Events
2.3D Added Disgusie Event
2.3E Replaced 'strnpcinfo()' type 0 and 1 with type 3
2.3F Removed dependencey on regular expressions library for Disguise and Coutning
2.40 Fixed Poring Event setting mapflags non-dynamic map
2.41 Added Fabre Event
2.42 Fixed Emp Event Failing to annouce not enough players
2.43 Fixed Zombie Failing to start due to negative index
2.44 Added Devil Square
2.45 Certain mapflags no loger removed on events end
2.46 Warp Players to Save instead of Prontera
2.47 Made default time for emp event ~23 Days
2.48 Added a player death check to zombie event
2.49 Fixed a loop issue in PVP
2.4A Players warp to prontera instead of save, apperenetly map warp doesnt support "Save"
2.4B Fixed Lucky Pick
2.4C Fixed a missing "" in maze event
2.4D Added a check so Mushroom Event will always have at least 1 mushroom
2.4E Fixed incorrect map index for Mushroom and Bapho events
2.4F Fixed incorrect event index for Mushroom and Bapho events
2.50 Added a Gm diplay count for mob counting event if Testmode is enabled
2.51 Removed map warp from counting event
2.52 Counting event now properly removes mobs at events end
2.53 Removed SQL dependency from Fabre event
2.54 Added Warp out for disgusie event
2.55 Disabled Countdown timer in disguse event
2.56 Fixed incorrect Rules check
2.57 Added a Gm diplay mob name for disguise event for gm 99
2.58 Fixed incorrect mapindex for disguise event
2.59 Devil Square now rewards all players once last chest is killed
2.5A Fabre event now propery kills monsters at end

Links:

Maps:

Edited by Stolao
  • Upvote 6

Share this post


Link to post
Share on other sites

 

< Stolao's Auto Event >

 

Features:

  • Will Automatically pick one event from the events in its list every hour and run it. Giving out an Item and Announcing the Winner.
  • Event List: PvP, Zombie Survival, Dice, Manhunt, Poring, Maze
  • Uses Custom Commands, @JoinEvent and @RunEvent

Todo:

  • Suggestions?
  • Optimize?
  • Add more events, suggestions?
  • Spell Check
  • Make customisable in game by gm
  • Make "Zeny" changable for Points
  • Add a Shop
  • Add a vote for event option
  • Add Events Lucky Pick, DB Event, MVP Arena, Invasion, Ragnarok Training, L4Dead

Changelog:

1.00 Basic Layout, Useing just 99-PVP
1.01 Add Zombie Survival
1.02 Add 1234
1.03 More Monster in Zombie
1.04 Fixed Stair Bug in 1234
1.05 Swich 1234 to even odd afer 7 rolls
1.06 More Monster in Zombie
1.07 More and Shorter Rounds in Zombie
1.08 Made PvpEvent 20 min limit was 10 min
1.09 Swich 1234 to last box after 8 even odd rolls
1.0A Shortened PvpEvent script by 54 line
1.0B Removed even odd afer 7 rolls in 1234
1.0C Removed last box after 8 even odd rolls in 1234
1.0D Made 1234 function baced
1.0E Made PvpEvent function based
1.0F Made Zombie function based
1.10 Added Startup via NPC Whisper
1.11 Removed "tie" in 1234
1.12 Made 1234 Configable uing arrayed server data
1.13 Added Toggable Prize item & Zeny to 1234
1.14 Added Toggable Cost item & Zeny to 1234
1.15 Added Prize Pool item & Zenyto 1234
1.16 Replaced 99-Pvp with PvpEvent
1.17 Made PVP Configable uing arrayed server data
1.18 Added Toggable Prize item & Zeny to PVP
1.10 Added Toggable Cost item & Zeny to PVP
1.1A Added Prize Pool to item & Zeny PVP
1.1B Made Zombie Kinda Configable (might add more latter)
1.1C Added Toggable Prize item & Zeny to Zombie
1.1D Added Toggable Cost item & Zeny to Zombie
1.1E Added Prize Pool to item & Zeny Zombie
1.1F Fixed minor bug in Zombies Config
1.20 Fixed minor bug in prize scripts
1.21 Fixed typo in run pvp
1.22 Fixed check Zeny in all scripts
1.23 Fixed check items in all scripts
1.24 Fixed major bug in Config
1.25 Fixed "bug" reading strings as numbers
1.26 Added event check, see if events are running already
1.27 Added Reset to config npc
1.28 Fixed bug in the prize giving phase of events
1.29 Switch prizes to close2;
1.2A Added missing Close; after Event check in whisper
1.2B Added Start of In Game Setup menu
1.2C Fixed Type in InGame Setup ":" when ";"
1.2D Fixed Missing case in 1234
1.2F Changed Perm Server Variables to Temp
1.30 replaced Monsters name with --ja--
1.31 Changed Zombie to use while, shortend script
1.32 Made PVP have a chance of being class specific
1.33 Fixed bug with pvp class specific, logic error
1.34 Added @joinevent Command (see bindatcmnd.txt)
1.35 Removed join event npcs
1.36 Made @runevent Command (see bindatcmnd.txt)
1.37 Removed Labels from Pvp script
1.38 Removed Labels from Dice Event
1.39 Added Agit check in multiple locations
1.3A Added [email protected] to Zombie
1.3B Changed [email protected]&4 formula to reflect [email protected]
1.3C Removed dependency on bindatcmd.txt
1.3D Changed hideonnpc to disablenpc
1.3E Changed hideoffnpc to enablenpc
1.3F Added a missing else to 1234 and pvp events
1.40 Made Zombie Survival have steadily increasing waves
1.41 Added Maze Event
1.42 Added Menu on click, in case want to add a physical location
1.43 Optimized OnJoinEvent Label a little
1.44 Replaces a dispbutton with mes under OnRunEvent
1.45 Optimized 1234 Script a little
1.46 replaced while -> for
1.47 Optimized Beginging Event Countdown for all events
1.48 Made Zombies IDs Configuable
1.49 Made Zombies rate Configurable
1.4A Made killing zombie penilty greater
1.4B Optimized In event countdowns for all events
1.4C Fixed an extra '{' added by mistake
1.4D Condenced @$MobsUsed + @$MobsRate -> @$Mobs
1.4E Removed Unessisare stopnpctimer (from pre 1.0F)
1.4F Added Poring Event
1.50 Optimized PVP and Maze a little
1.51 Added [email protected] Check for all events on initiation (future in game gm config)
1.52 Fixed Time Remaining Countdown, was dispalying +1 min off
1.53 Replace 99_pvp for pvp_n_1-5, bug on my client
1.54 Replaced areawards with mapwarp when suitable
1.55 Added mapwarp to initiation of scripts
1.56 Fixed a bug in Poring, not summoning wrong Poring
1.57 Changed [email protected] -1 -> -1*[email protected] after start of event
1.58 Added [email protected]&2 (precentheal 100,100) to PvPEvent
1.59 Added Manhunt Event
1.5A Fixed bug with Manhunt Target being killable after event still

Links:

 

 

[Error]: npc_enable: Attempted to hide a non-existing NPC 'PvpEventPrize' (flag=0).

[Error]: npc_enable: Attempted to hide a non-existing NPC 'ZombiePrize' (flag=0).

[Error]: npc_enable: Attempted to hide a non-existing NPC '1234-Prize' (flag=0).

[Error]: npc_enable: Attempted to hide a non-existing NPC 'MazePrize' (flag=0).

[Error]: npc_enable: Attempted to hide a non-existing NPC 'ManhuntPrize' (flag=0).

[Error]: npc_parsesrcfile: Unknown map '[email protected]' in file 'npc/aw/ev/Auto_Event.txt', line '727'. Skipping line...

[Error]: npc_enable: Attempted to show a non-existing NPC 'mazeroadblock' (flag=1).

[Error]: npc_enable: Attempted to hide a non-existing NPC 'MazePrize' (flag=0).

How fix it errors?

 

Please in your release added client-side files. Example: maze.gat, and '[email protected]

Edited by nndsl

Share this post


Link to post
Share on other sites

Ill add them when home, all but maze are map clones.

 

As for your errors you may ignore them its me disabling the npcs a 2nd time when they are already disabled, only event you need a map for is Maze mine is a Private Release, ill make a clone of another map and use it for the maze. Give me a day or 2 for that update.

For maze ill make a map for you guys.

Update

Added Auto_Event Maps.rar as a download
Edited by Stolao

Share this post


Link to post
Share on other sites

Ah ill link it to the original file then, for credit.

I'm search it in rathena forums :)

i cant seem to find the original link mind linking it for me?

Share this post


Link to post
Share on other sites

 

Ah ill link it to the original file then, for credit.

I'm search it in rathena forums :)

i cant seem to find the original link mind linking it for me?

 

http://rathena.org/board/topic/57681-solve-event-script/

I'm search in it.

 

 

K updated post

 

Update

Auto_Event Maps.rar now contains Maze

Share this post


Link to post
Share on other sites

Hello! i've tried your script but its seems if zombie run and last man standing not working? i typed @joinevent requires me 10 jellopies then close, nothing happen. ^_^

Share this post


Link to post
Share on other sites

no error , is just that i cant join. after chose yes! close. then nothing. 

Share this post


Link to post
Share on other sites

im doing @joinevent then ask for something and cant enter even when i have the requierments

Share this post


Link to post
Share on other sites

im doing @joinevent then ask for something and cant enter even when i have the requierments

post your conf for event(s) that fail to join

Share this post


Link to post
Share on other sites

Hello Stolao,

 

Your events are very good.

 

I noticed some erros and I'm reporting it.

 

In Event_Management:OnJoinEvent

 

1 - When an event require items and the event is configured to store all the equips, the join command fails because the delitem is actually place after the storeall command. So when delitem runs, the inventory is empty.

 

2 - else if ( [email protected][0] && [email protected][1] )

If the event is configured to require an item, it will trigger the above condition.

But if the player have the item in the inventory, it will simply hang the screen.

Because the event require an item, ok, but the nested condition is if the player don't have the item, so, it will not trigger in the above situation and the options will hang.

 

The correct sould be:

else if ( [email protected][0] && [email protected][1] && (countitem([email protected][0]) < [email protected][1]) ) {
Edited by Digos

Share this post


Link to post
Share on other sites

Hello Stolao,

 

Your events are very good.

 

I noticed some erros and I'm reporting it.

 

In Event_Management:OnJoinEvent

 

1 - When an event require items and the event is configured to store all the equips, the join command fails because the delitem is actually place after the storeall command. So when delitem runs, the inventory is empty.

 

2 - else if ( [email protected][0] && [email protected][1] )

If the event is configured to require an item, it will trigger the above condition.

But if the player have the item in the inventory, it will simply hang the screen.

Because the event require an item, ok, but the nested condition is if the player don't have the item, so, it will not trigger in the above situation and the options will hang.

 

The correct sould be:

else if ( [email protected][0] && [email protected][1] && (countitem([email protected][0]) < [email protected][1]) ) {

Thank you very much for the reports, ill fix both issues and update

Update

1.5B Fixed a bug with storeall and item check -[Thanks Digos]
1.5C Fixed a hang screen in ( [email protected][0] && [email protected][1] ) -[Thanks Digos]

Share this post


Link to post
Share on other sites

links are not working!!

Share this post


Link to post
Share on other sites

links are not working!!

sorry i started moving things to my git yesterday, ill continue transferring today.

 

https://github.com/Stolao/Npc_Release/tree/master/Auto_Event

 

EDIT:

UPDATED LINKS

Edited by Stolao

Share this post


Link to post
Share on other sites

  • Add Events DB Event, MVP Arena, Invasion, Ragnarok Training

Add Events Mushroom, Disguise, Devil Square

Waiting @stolao update this script! nice work sir :D

Share this post


Link to post
Share on other sites

 

  • Add Events DB Event, MVP Arena, Invasion, Ragnarok Training
  • Add Events Mushroom, Disguise, Devil Square

Waiting @stolao update this script! nice work sir :D

 

your always waiting for updates~

Share this post


Link to post
Share on other sites

 

 

  • Add Events DB Event, MVP Arena, Invasion, Ragnarok Training
  • Add Events Mushroom, Disguise, Devil Square

Waiting @stolao update this script! nice work sir :D

 

your always waiting for updates~

 

/meh

Share this post


Link to post
Share on other sites

Current Version: 1.8E

 

I have the following error
 
2015-08-14%2020_12_36-root@hro_~_server.
 
any ideas
 
fix ncp Event_Agent#Maze
 
original, line 39
 

function	script	MazeRUN	{
//callfunc("MazeRUN",<eventid>,<eventname>,<eventmap>,<minplayers>,<length>);
	if([email protected]||agitcheck()||agitcheck2()){ end; }
	mapwarp getarg(2,"maze"),"prontera",155,181;
	enablenpc "mazeroadblock";
	disablenpc "Event_Agent#Maze";
	set [email protected],getarg(0,4);
	for(set [email protected],5; [email protected] > 0; set [email protected],[email protected]){
		Announce ""+getarg(1,"Maze")+" Event Will begin in "[email protected]+" Mins!",8;
		Announce "Please type @joinevent to join",8;
		sleep 60000;
	}
	Announce ""+getarg(1,"Maze")+" Event Has Begun!",8;
	set [email protected],[email protected]*-1;
	sleep 9000;
	if(getmapusers(getarg(2,"maze"))<getarg(3,1)){ mapannounce getarg(2,"maze"),"Sorry there are not enough players for this event to take place",8;
	} else {
		mapannounce getarg(2,"maze"),"Rules are simple first to get to end of maze wins, so begin~",8;
		disablenpc "mazeroadblock";
		enablenpc "MazePrize"; <-------- **HERE**
		for(set [email protected],0; [email protected] < getarg(4,40); set [email protected],[email protected]+1){
			if(getmapusers(getarg(2,"maze"))<1) set [email protected],[email protected]+getarg(4,40);
			mapannounce getarg(2,"maze"),"There are "+(getarg(4,40)[email protected])+" Minuets Remaining",8;
			sleep 60000;
		}
	mapannounce getarg(2,"maze"),"Time Is up",8;
	}
	disablenpc "Event_Agent#Maze";
	sleep 5000;
	mapwarp getarg(2,"maze"),"prontera",155,181;
	set [email protected],0;
	end;
}

Fix, line 39
 

function	script	MazeRUN	{
//callfunc("MazeRUN",<eventid>,<eventname>,<eventmap>,<minplayers>,<length>);
	if([email protected]||agitcheck()||agitcheck2()){ end; }
	mapwarp getarg(2,"maze"),"prontera",155,181;
	enablenpc "mazeroadblock";
	disablenpc "Event_Agent#Maze";
	set [email protected],getarg(0,4);
	for(set [email protected],5; [email protected] > 0; set [email protected],[email protected]){
		Announce ""+getarg(1,"Maze")+" Event Will begin in "[email protected]+" Mins!",8;
		Announce "Please type @joinevent to join",8;
		sleep 60000;
	}
	Announce ""+getarg(1,"Maze")+" Event Has Begun!",8;
	set [email protected],[email protected]*-1;
	sleep 9000;
	if(getmapusers(getarg(2,"maze"))<getarg(3,1)){ mapannounce getarg(2,"maze"),"Sorry there are not enough players for this event to take place",8;
	} else {
		mapannounce getarg(2,"maze"),"Rules are simple first to get to end of maze wins, so begin~",8;
		disablenpc "mazeroadblock";
		enablenpc "Event_Agent#Maze"; <-------- **HERE**
		for(set [email protected],0; [email protected] < getarg(4,40); set [email protected],[email protected]+1){
			if(getmapusers(getarg(2,"maze"))<1) set [email protected],[email protected]+getarg(4,40);
			mapannounce getarg(2,"maze"),"There are "+(getarg(4,40)[email protected])+" Minuets Remaining",8;
			sleep 60000;
		}
	mapannounce getarg(2,"maze"),"Time Is up",8;
	}
	disablenpc "Event_Agent#Maze";
	sleep 5000;
	mapwarp getarg(2,"maze"),"prontera",155,181;
	set [email protected],0;
	end;
}
Edited by dacvaldivia1

Share this post


Link to post
Share on other sites

i can't enter in many events and the gm got stuck when run one :c but is a great npc hopefully this work at 100 % Thanks for everything anyways :)

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.