Jump to content

Falcon/Cart/Mount Rental NPC


Pancake

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   17
  • Joined:  02/06/12
  • Last Seen:  



map,x,y,face<tab>script<tab>Rental Services<tab>72,{
mes "[Rental Services]";
mes "Hi, here you can rent Carts, Falcons, Mounts, and Mechanic Mado's";
next;
switch(select("Cart:Falcon:Mount:Mado"))
{
case 1:
if( (BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART") > 0 )
{
setcart;
close;
}
else
{
mes "[Rental Services]";
mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
close;
}
case 2:
if( (Class == Job_Ranger || Class == Job_Ranger_T) && checkriding() )
{
mes "Sorry " + strcharinfo(0) + ", you can't rent a Falcon if you have a Warg rented.";
close;
}
if( BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON") > 0 )
{
setfalcon;
close;
}
else
{
mes "[Rental Services]";
mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
close;
}
case 3:
mes "[Mount Rentals]";
if (Class == Job_Rune_Knight || Class == Job_Rune_Knight_H || Class == Job_Baby_Rune ) {
mes "Welcome. Would you like to rent a Dragon?";
next;
switch(select("Yes:No")) {
case 1:
//if (!getskilllv("RK_DRAGONTRAINING")) {
if (!getskilllv("KN_RIDING")) {
mes "[Mount Rentals]";
mes "Please learn how to ride a Dragon first.";
close;
}
if (checkriding()) {
mes "[Mount Rentals]";
mes "You already have a Dragon.";
close;
}
setdragon;
close;
case 2:
mes "[Mount Rentals]";
mes "I see. Then have a great day.";
close;
}
}

else if (Class == Job_Royal_Guard || Class == Job_Royal_Guard_H || Class == Job_Baby_Guard) {
mes "Welcome. Would you like to rent a Gryphon?";
next;
switch(select("Yes:No")) {
case 1:
if(!getskilllv("KN_RIDING")) {
mes "[Mount Rentals]";
mes "Please learn how to ride a Gryphon first.";
close;
}
else if (checkriding()) {
mes "[Mount Rentals]";
mes "You already have a Gryphon.";
close;
}
setriding;
close;
case 2:
mes "[Mount Rentals]";
mes "I see. Then have a great day.";
close;
}
}

else {
mes "Welcome. Would you like to rent/remove a Mount?";
next;
switch(select("Yes:No")) {
case 1:
if ((Class >= 4054 && Class <= 4079) && (Class != 4056 && Class != 4062)){
atcommand "@newmount";
close;
}
else
mes "[Mount Rentals]";
mes "You must be a 3rd class, and not a Ranger to rent a mount from me.";
close;
case 2:
mes "[Mount Rentals]";
mes "I see. Then have a great day.";
close;
}
}

case 4:
if( (Class == Job_Mechanic || Class == Job_Mechanic_T) && checkriding() == 0 )
{
setriding;
close;
}
else
{
mes "[Rental Services]";
mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job.";
close;
}
}


}

You can check the script there, or download the txt below.

rentals.txt

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   0
  • Joined:  02/07/12
  • Last Seen:  

Thanks bro.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  86
  • Reputation:   3
  • Joined:  02/24/12
  • Last Seen:  

This is Oficial Pancake???

(Im JotaKa in IRC )

Greetings!

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   0
  • Joined:  03/22/12
  • Last Seen:  

thanks needed that

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