Alayne

Alayne's Scripts Collection

Recommended Posts

Well check the map before giving them the rewards ^^

Just replace last_map_name by the base name of the last map of the instance

for ( set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] +1 ) {
	if (attachrid([email protected][[email protected]]) && strcharinfo(3) == instance_mapname(last_map_name))
	{
		callfunc("AddPointsFixed", getcharid(3), 1 * $difficulty_level);
		set AARENA, AARENA + 1;
		warp "valkyrie",49,48;
	}
}

 

@vulcan1991, for all rewards in instance you might want to give only to leader, check after the attachrid function if the attach char is team leader by using getpartyleader function.

For instance:

if (attachrid([email protected][[email protected]]) && getcharid(0) == getpartyleader(getcharid(1))

 

@wakefield21 yeah YP was a big project I was really loving, but was still missing some works to do. What are you missing as an example? Cause as far as I remember (it's been a while), the content was ready and shared

 

@Serken, sorry don't get it. Can you explain a bit more? Do you mean that there's monsters on the map? or that the map is allready owned by someone else?

 

@Strand, my bad, I missed the event that I merged on another file (and that I...don't get anymore, I'm affraid...)

On the YCSpawn.txt file, add a OnPCLoadMapEvent. Compare strcharinfo(3) to .ycMaps$ by looping over the array. If a map matches, add a dispbottom message saying anything you want to the player ^^

 

To everybody, sorry for the long delay between answers. I'm currently working on a new project, and I'm, as usual, lacking time ^^'

  • MVP 1

Share this post


Link to post
Share on other sites

good day @Alayne

I have some problem in instance script "Endless Cellar"

issue: The warp portal fail to be triggered. 

which includes 
- direct warp to level 40 using ashes
- successfully clear level 1 mob

I have attached the error lines, can you please advise if there's a solution for this.

thanks!

error.png

Share this post


Link to post
Share on other sites

@vulcan1991 well it's been a while since a looked at this script.

As far as I can say, replace in the file the warp definition by this:

// [email protected]
[email protected],135,355,0	script	ECwarp::ECwarp_1	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,393;	end; }
[email protected],223,355,0	script	ECwarp::ECwarp_2	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,393;	end; }
[email protected],309,355,0	script	ECwarp::ECwarp_3	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,393;	end; }
[email protected],393,355,0	script	ECwarp::ECwarp_4	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,309;	end; }
																														
[email protected],135,271,0	script	ECwarp::ECwarp_5	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,309;	end; }
[email protected],223,271,0	script	ECwarp::ECwarp_6	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,309;	end; }
[email protected],309,271,0	script	ECwarp::ECwarp_7	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,309;	end; }
[email protected],393,271,0	script	ECwarp::ECwarp_8	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,221;	end; }
																														
[email protected],135,183,0	script	ECwarp::ECwarp_9	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,221;	end; }
[email protected],223,183,0	script	ECwarp::ECwarp_10	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,221;	end; }
[email protected],309,183,0	script	ECwarp::ECwarp_11	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,221;	end; }
[email protected],393,183,0	script	ECwarp::ECwarp_12	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,137;	end; }
																														
[email protected],135,99,0	script	ECwarp::ECwarp_13	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,137;	end; }
[email protected],223,99,0	script	ECwarp::ECwarp_14	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,137;	end; }
[email protected],309,99,0	script	ECwarp::ECwarp_15	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,137;	end; }
[email protected],393,99,0	script	ECwarp::ECwarp_16	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,51;	end; }
																														
[email protected],135,13,0 	script	ECwarp::ECwarp_17	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,51;	end; }
[email protected],223,13,0	script	ECwarp::ECwarp_18	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,51;	end; }
[email protected],309,13,0	script	ECwarp::ECwarp_19	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,51;	end; }
[email protected],393,13,0	script	ECwarp::ECwarp_20	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,393;	end; }
																														
// [email protected]                                                                                                                
[email protected],135,355,0	script	ECwarp::ECwarp_21	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,393;	end; }
[email protected],223,355,0	script	ECwarp::ECwarp_22	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,393;	end; }
[email protected],309,355,0	script	ECwarp::ECwarp_23	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,393;	end; }
[email protected],393,355,0	script	ECwarp::ECwarp_24	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,309;	end; }
																														
[email protected],135,271,0	script	ECwarp::ECwarp_25	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,309;	end; }
[email protected],223,271,0	script	ECwarp::ECwarp_26	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,309;	end; }
[email protected],309,271,0	script	ECwarp::ECwarp_27	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,309;	end; }
[email protected],393,271,0	script	ECwarp::ECwarp_28	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,221;	end; }
																														
[email protected],135,183,0	script	ECwarp::ECwarp_29	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,221;	end; }
[email protected],223,183,0	script	ECwarp::ECwarp_30	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,221;	end; }
[email protected],309,183,0	script	ECwarp::ECwarp_31	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,221;	end; }
[email protected],393,183,0	script	ECwarp::ECwarp_32	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,137;	end; }
						ECwarp                                                                                          
[email protected],135,99,0	script	ECwarp::ECwarp_33	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,137;	end; }
[email protected],223,99,0	script	ECwarp::ECwarp_34	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,137;	end; }
[email protected],309,99,0	script	ECwarp::ECwarp_35	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,137;	end; }
[email protected],393,99,0	script	ECwarp::ECwarp_36	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,51;	end; }
																														
[email protected],135,13,0 	script	ECwarp::ECwarp_37	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,51;	end; }
[email protected],223,13,0	script	ECwarp::ECwarp_38	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,51;	end; }
[email protected],309,13,0	script	ECwarp::ECwarp_39	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,51;	end; }
[email protected],393,13,0	script	ECwarp::ECwarp_40	45,1,1,{
	end;
OnECInstanceInit: 
	disablenpc strnpcinfo(0); end;

OnTouch:
	if('give_ash) getitem 'EC_AshID,1;
	warp instance_mapname("[email protected]"),96,393;
	end;

OnEnableAshtimer:
	set 'give_ash,1;
	sleep2 60000;
	set 'give_ash,0;
	end;
}

// [email protected]
[email protected],135,355,0	script	ECwarp::ECwarp_41	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,393;	end; }
[email protected],223,355,0	script	ECwarp::ECwarp_42	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,393;	end; }
[email protected],309,355,0	script	ECwarp::ECwarp_43	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,393;	end; }
[email protected],393,355,0	script	ECwarp::ECwarp_44	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,309;	end; }
																						  
[email protected],135,271,0	script	ECwarp::ECwarp_45	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,309;	end; }
[email protected],223,271,0	script	ECwarp::ECwarp_46	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,309;	end; }
[email protected],309,271,0	script	ECwarp::ECwarp_47	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,309;	end; }
[email protected],393,271,0	script	ECwarp::ECwarp_48	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,221;	end; }
																					
[email protected],135,183,0	script	ECwarp::ECwarp_49	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,221;	end; }
[email protected],223,183,0	script	ECwarp::ECwarp_50	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,221;	end; }
[email protected],309,183,0	script	ECwarp::ECwarp_51	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,221;	end; }
[email protected],393,183,0	script	ECwarp::ECwarp_52	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,137;	end; }
																						  
[email protected],135,99,0	script	ECwarp::ECwarp_53	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,137;	end; }
[email protected],223,99,0	script	ECwarp::ECwarp_54	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,137;	end; }
[email protected],309,99,0	script	ECwarp::ECwarp_55	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,137;	end; }
[email protected],393,99,0	script	ECwarp::ECwarp_56	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,51;	end; }
																						 
[email protected],135,13,0 	script	ECwarp::ECwarp_57	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,51;	end; }
[email protected],223,13,0	script	ECwarp::ECwarp_58	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,51;	end; }
[email protected],309,13,0	script	ECwarp::ECwarp_59	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,51;	end; }
[email protected],393,13,0	script	ECwarp::ECwarp_60	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,393;	end; }
// [email protected]                                                                                  
[email protected],135,355,0	script	ECwarp::ECwarp_61	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,393;	end; }
[email protected],223,355,0	script	ECwarp::ECwarp_62	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,393;	end; }
[email protected],309,355,0	script	ECwarp::ECwarp_63	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,393;	end; }
[email protected],393,355,0	script	ECwarp::ECwarp_64	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,309;	end; }
																						  
[email protected],135,271,0	script	ECwarp::ECwarp_65	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,309;	end; }
[email protected],223,271,0	script	ECwarp::ECwarp_66	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,309;	end; }
[email protected],309,271,0	script	ECwarp::ECwarp_67	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,309;	end; }
[email protected],393,271,0	script	ECwarp::ECwarp_68	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,221;	end; }
																						   
[email protected],135,183,0	script	ECwarp::ECwarp_69	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,221;	end; }
[email protected],223,183,0	script	ECwarp::ECwarp_70	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,221;	end; }
[email protected],309,183,0	script	ECwarp::ECwarp_71	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,221;	end; }
[email protected],393,183,0	script	ECwarp::ECwarp_72	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),96,137;	end; }
																						
[email protected],135,99,0	script	ECwarp::ECwarp_73	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),184,137;	end; }
[email protected],223,99,0	script	ECwarp::ECwarp_74	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),270,137;	end; }
[email protected],309,99,0	script	ECwarp::ECwarp_75	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),354,137;	end; }
[email protected],393,99,0	script	ECwarp::ECwarp_76	45,1,1,{	end;	OnInstanceInit: disablenpc instance_npcname(strnpcinfo(3)); end; OnTouch:	warp instance_mapname("[email protected]"),156,65;	end; }

Can't test it thought, sorry but I don't owned a test server anymore ^^'

Share this post


Link to post
Share on other sites

@AlayneWhen i go to the Maugre, all time says "Oops, i dont have dungeons, need to clear one first and come to me" but i dont buy any dungeon yet

 

I install the default sql and i have the tables but not the content

Edited by Serken

Share this post


Link to post
Share on other sites

@Alayne I will once again delve into this project of yours by this coming week and I'll post the things that needed to be fixed. 

Btw! I really love this YP as it is a breathe of fresh air from normal RO shenanigans thats why i hope that this project be fixed.

Edited by wakefield21

Share this post


Link to post
Share on other sites

@wakefield21 as I said to someone else, I don't have a server anymore (nor prod nor test). 

But I'll try to help you fix the release if you want ^^

On 11/3/2019 at 4:01 AM, Serken said:

@AlayneWhen i go to the Maugre, all time says "Oops, i dont have dungeons, need to clear one first and come to me" but i dont buy any dungeon yet

I install the default sql and i have the tables but not the content

For Maugre, what's the exact message? Cause I can't find the one you're telling me about. The closest one would be 'Sorry, but no Hall are available right now.', and if that's this one, it explains you that you need to clear the dungeon's map from its monsters before registering it.

Share this post


Link to post
Share on other sites
On 11/4/2019 at 8:44 AM, Alayne said:

For Maugre, what's the exact message? Cause I can't find the one you're telling me about. The closest one would be 'Sorry, but no Hall are available right now.', and if that's this one, it explains you that you need to clear the dungeon's map from its monsters before registering it.

You need to kill all monsters and then go to register it?

 

i have the db created ( dungeon_master dungeon_addons, etc) but is in blank, i need to add something? tables or something

Edited by Serken

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.

Loading...