Jump to content
  • 0

help with scrip Nova's


max65

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

Hi, rathena .

i need really this script!! XD but have à problèm's

3. Instance Based Dead Branch Room:
//===== rAthena Script =======================================
//= Dead Branch Room Script
//===== By: ==================================================
//= Nova http://www.novaragnarok.com
//============================================================

npc_in,9,103,6	script	Branch Manager	89,{
	[email protected]$ = "[^3355FF Branch Manager ^000000]";
	[email protected]_id = getcharid(1);
	[email protected]_name$ = getpartyname([email protected]_id);
	[email protected]$ = "Dead Branch Room";

		if (getcharid(0) == getpartyleader([email protected]_id,2)) {
		mes [email protected]$;
		mes "Would you like to reserve a private Dead Branch Room? It'll cost 100K for two full hours.";
		mes "Remember, the room and everything inside it will disappear after this time frame.";
			next;
			switch(select("Rent Dead Branch Room:Enter the Room:Cancel")) {
			case 1:
				if (Zeny < 100000) { 
				mes [email protected]$;
				mes "Are you trying to sneak in without paying? You must bring me 100,000 Zeny if you wish to rent a room.";
				cutin "",255;
				end;
				}
				if (instance_create([email protected]$) < 0) {
					mes "Party Name: "[email protected]_name$;
					mes "Party Leader: "+strcharinfo(0);
					mes "^0000ff"[email protected]$+" ^000000- Reservation Failed!";
					close;
				}
				Zeny -= 100000;
				mes [email protected]$;
				mes "Talk to me again to enter the room now that your room has been reserved.";
				close;
			case 2:
				callsub L_Enter,0,1;
			case 3:
			mes [email protected]$;
			mes "Have a nice day then, and enjoy Dead Branching in Juperos.";
				close;
			}
		}
		mes [email protected]$;
		mes "You may enter a Dead Branch Room if it's been reserved by your party leader.";
		next;
		switch(select("Enter the Dead Branch Room:Cancel")) {
		case 1:
			callsub L_Enter,1,1;
		case 2:
			mes [email protected]$;
			mes "Have a nice day then, and enjoy Dead Branching in Juperos.";
			end;
		}
		
L_Enter:
	switch(instance_enter("Dead Branch Room")) {
	case 3:
		mes [email protected]$;
		mes "You are not in a party.";
		close;
	case 2:
			mes [email protected]$;
		mes "The private Dead Branch Room has not yet been reserved.";
		mes "The party leader did not pay the fee.";
		close;
	case 1:
			mes [email protected]$;
		mes "You can enter the room after making a party.";
		close;
	case 0:
		mapannounce "npc_in", strcharinfo(0)+" of the party, "[email protected]_name$+", is entering a Dead Branch Room.",bc_map,"0x00ff99",FW_NORMAL,12;
		end;
	}
}

//==================================================================================
//--------|Map Flags|---------------------------------------------------------------
//==================================================================================

pvp_n_1-3	mapflag	monster_noteleport
pvp_n_1-3	mapflag	nowarpto
pvp_n_1-3	mapflag	nomemo
pvp_n_1-3	mapflag	noteleport
pvp_n_1-3	mapflag	nosave	SavePoint
pvp_n_1-3	mapflag	nopenalty
 
 
 

have success but now when i want reserved room he tell me reserved failled

183654218_Sanstitre.png.7856fb0b58063af7a50fe7dd4de996c6.png

785858174_Sanstitre.png.172aea8274ad361579550aaa0ef4a6a0.pngbut im on VPS and its not good url how solved my problem's sir ?

thx for your repply

 

Edited by max65
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  22
  • Reputation:   5
  • Joined:  06/19/18
  • Last Seen:  

Add a new entry to your instance_db, you can use the one that i put here.

//ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255

40,Dead Branch Room,3600,300,pvp_n_1-3,54,67

NOTE: You need to change the ID,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY with what ever values you need.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   189
  • Joined:  11/27/11
  • Last Seen:  

Please give us your rAthena version. Latest version?

Secondly, I see a weird behaviour in your console : Ping SQL Server too many times. Don't you have problem with your connection to sql?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

hi vykimo ^^ , i use this version

and i don't think have a problem's with my connection sql

 


// MySQL Reconnect Settings
// - mysql_reconnect_type:
//   1: When MySQL disconnects during runtime, the server tries to reconnect
//      mysql_reconnect_count times and shuts down if unsuccessful.
//   2: When mysql disconnects during runtime, it tries to reconnect indefinitely.
mysql_reconnect_type: 2
mysql_reconnect_count: 1

Edited by max65
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

I think you didn't add it to your instance_db

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

Solved Thx all ^^ just now have another problem's XD

when i click on Destroy Instance , he dont destroy =s you know how solved that?

966226914_Sanstitre.png.65c208bfb28fe8b137d826139ad11392.png

Thx for your reply

Edited by max65
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  22
  • Reputation:   5
  • Joined:  06/19/18
  • Last Seen:  

3 hours ago, max65 said:

Solved Thx all ^^ just now have another problem's XD

when i click on Destroy Instance , he dont destroy =s you know how solved that?

966226914_Sanstitre.png.65c208bfb28fe8b137d826139ad11392.png

Thx for your reply

That is not implemented on rathena. You can view progress here.

https://github.com/rathena/rathena/issues/3150

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

i have Destroy instance# in my msgstring and have same problem's =s

 

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
Answer this question...

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