Jump to content
  • 0

Request < NPC For Leveling room with Restrictions


DutchDuck

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   0
  • Joined:  02/23/14
  • Last Seen:  

Greetings!
 
I tryed several things scripting this by myself even with wiki next to me..
but it keeps failing so imma try it like this now,..

pallene,164,145,5 script Leveling Room 84,{




warp "pvp_y_1-2",0,0;
end;

OnInit:
monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
end;

OnLevelUp:
atcommand "@blvl 5";
atcommand "@jlvl 5";
end;
}

 

 

What i want is that this npc before it warps you to the Map..

 

Says some things like:

 

Gnar Gnar Gnar...

 

i can bring you to a place where you can gain levels a easy way..

what do i get in return? well when choosing this way of levelling.. it shows that youre are weak!

and thats something I love!

in order to get you there it will cost you:

You need to be minimum base Level 150

300 TCG Card (7227)

and 500.000 Zeny

( these are also the requirments needed to get warped there)

 

All requirments met:

mes:   Goood... Let the ShadowRealm take you there so you can start leveling the weak way!

but remember.... if you die.... you will have to bring me the money and the cards all over...

Still want to go?

- Yes because im weak! > Warp to the map

-No leave me alone! > Close conversation

 

Missing a Requirment:

Mes: come again when you decide to let the shadow realm inside youre head Muahahah~

close conversation

Edited by DutchDuck
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

There you go

pallene,164,145,5	script	Leveling Room	84,{
	.@name$ = "[^0066ffLeveling Room^000000]";
	mes .@name$,"Gnar Gnar Gnar..." ; next;
	mes .@name$,"I can bring you to a place where you can gain levels a easy way..";
	mes "what do i get in return? well when choosing this way of levelling.. it shows that youre are weak!";
	mes "and thats something I love!" ; next;
	mes .@name$,"In order to get you there, it will cost you:";
	mes " ~ 300 <ITEMLINK>"+getitemname(7227)+"<INFO>"+7227+"</INFO></ITEMLINK>";
	//mes " ~ 300 "+getitemname(7227);
	// in case the item link is not available in your client
	mes " ~ 500 000 zeny";
	mes " Minimum Level required: 150";
	next;
	if (select("Proceed:Leave") == 2) end;
	if (countitem(7227) < 300 || Zeny < 500000 || BaseLevel < 150) { mes .@name$,"come again when you decide to let the shadow realm inside youre head Muahahah~" ; close; }
	mes .@name$,"Goood... Let the ShadowRealm take you there so you can start leveling the weak way!";
	mes "but remember.... if you die.... you will have to bring me the money and the cards all over...";
	mes "Still want to go?";
	if (select("Yes because I'm weak!:No leave me alone!") == 2) end;
	delitem 7227,300;
	Zeny -= 500000;

	warp "pvp_y_1-2",0,0;
	end;

OnInit:
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	end;

OnLevelUp:
	atcommand "@blvl 5";
	atcommand "@jlvl 5";
	end;
}

I'm a bit in a rush so I didn't had any color. It's pretty basic don't hesitate to add a bit of colors or anything.

 

Gotta go!  :lol:

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  92
  • Reputation:   17
  • Joined:  08/11/12
  • Last Seen:  

There you go

pallene,164,145,5	script	Leveling Room	84,{
	.@name$ = "[^0066ffLeveling Room^000000]";
	mes .@name$,"Gnar Gnar Gnar..." ; next;
	mes .@name$,"I can bring you to a place where you can gain levels a easy way..";
	mes "what do i get in return? well when choosing this way of levelling.. it shows that youre are weak!";
	mes "and thats something I love!" ; next;
	mes .@name$,"In order to get you there, it will cost you:";
	mes " ~ 300 <ITEMLINK>"+getitemname(7227)+"<INFO>"+7227+"</INFO></ITEMLINK>";
	//mes " ~ 300 "+getitemname(7227);
	// in case the item link is not available in your client
	mes " ~ 500 000 zeny";
	mes " Minimum Level required: 150";
	next;
	if (select("Proceed:Leave") == 2) end;
	if (countitem(7227) < 300 || Zeny < 500000 || BaseLevel < 150) { mes .@name$,"come again when you decide to let the shadow realm inside youre head Muahahah~" ; close; }
	mes .@name$,"Goood... Let the ShadowRealm take you there so you can start leveling the weak way!";
	mes "but remember.... if you die.... you will have to bring me the money and the cards all over...";
	mes "Still want to go?";
	if (select("Yes because I'm weak!:No leave me alone!") == 2) end;
	delitem 7227,300;
	Zeny -= 500000;

	warp "pvp_y_1-2",0,0;
	end;

OnInit:
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	end;

OnLevelUp:
	atcommand "@blvl 5";
	atcommand "@jlvl 5";
	end;
}

I'm a bit in a rush so I didn't had any color. It's pretty basic don't hesitate to add a bit of colors or anything.

 

Gotta go!  :lol:

 

Hey Kurofly, your script looks like awesome but we need to fix 2 issues related to the if (select) menus. When selecting an option that ends with the command end; the invoking character won't be able to proceed. To close the dialog window you need to use a command such as close; or close2; and I know that you already know that, but I'm just saying to people that doesn't know this yet x).

 

// Author: Kurofly
pallene,164,145,5	script	Leveling Room	84,{
	.@name$ = "[^0066ffLeveling Room^000000]";
	mes .@name$,"Gnar Gnar Gnar..." ;
	next;
	mes .@name$,"I can bring you to a place where you can gain levels a easy way..";
	mes "what do i get in return? well when choosing this way of levelling.. it shows that youre are weak!";
	mes "and thats something I love!" ;
	next;
	mes .@name$,"In order to get you there, it will cost you:";
	mes " ~ 300 <ITEMLINK>"+getitemname(7227)+"<INFO>"+7227+"</INFO></ITEMLINK>";
	//mes " ~ 300 "+getitemname(7227);
	// in case the item link is not available in your client
	mes " ~ 500 000 zeny";
	mes " Minimum Level required: 150";
	next;
	if (select("Proceed:Leave") == 2) close;
	if (countitem(7227) < 300 || Zeny < 500000 || BaseLevel < 150) {
		mes .@name$,"come again when you decide to let the shadow realm inside youre head Muahahah~" ;
		close;
	}
	mes .@name$,"Goood... Let the ShadowRealm take you there so you can start leveling the weak way!";
	mes "but remember.... if you die.... you will have to bring me the money and the cards all over...";
	mes "Still want to go?";
	next;
	if (select("Yes because I'm weak!:No leave me alone!") == 2) close;
	delitem 7227,300;
	Zeny -= 500000;
	warp "pvp_y_1-2",0,0;
	end;

OnInit:
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	monster "pvp_y_1-2",0,0,"Leveling Barricade",1905,50,"Leveling Room::OnLevelUp";
	end;

OnLevelUp:
	atcommand "@blvl 5";
	atcommand "@jlvl 5";
}

Good work, c ya!

Edited by _Okuz_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   0
  • Joined:  02/23/14
  • Last Seen:  

Thanks! it works perfect!

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