Issue information

Issue ID
#1749
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 23, 2008 17:36
Last Post
Hercules Elf Bot
Feb 21, 2012 14:36
Confirmation
N/A

Hercules Elf Bot - Jun 23, 2008 17:36

Originally posted by [b]NeatElves[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1749

- Added: Moscovia shops & Moscovia Inn
QUOTE
//======================= Inn Function ==============================
function script F_InnMaid {
mes getarg(0);
mes "Welcome to";
mes getarg(1) + ".";
mes "How may I help you?";
next;
menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend;

Msave:
mes getarg(0);
mes "Your respawn point";
mes "has been saved.";
mes "Thank you,";
mes "please come again.";
savepoint getarg(2),getarg(3),getarg(4);
close;
Mrent:
mes getarg(0);
if(Zeny < 5000){
mes "I'm sorry, but the service charge";
mes "is 5,000 zeny. Please make sure";
mes "that you have enough money to check";
mes "in next time, okay?";
close;
}
mes "Thank you.";
mes "I hope you";
mes "enjoy your rest~";
close2;
set Zeny,Zeny - 5000;
percentheal 100,100;
return;

Mend:
close;
}


//======================== Moscovia ====================================
mosk_in,135,191,5 script Hotel Inn#Receptionist 961,{
mes "[Hotel Inn]";
mes "Good day~";
mes "Welcome to the";
mes "most comfortable";
mes "inn here in Moscovia~";
next;
menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend;

Msave:
mes "[Hotel Inn]";
mes "Your respawn point";
mes "has been saved in Moscovia.";
mes "Enjoy your stay in town~";
savepoint "mosk_in",142,189;
close;
Mrent:
mes "[Hotel Inn]";
if(Zeny < 5000){
mes "I'm sorry, but you don't have enough money to check in.";
mes "The service charge is 5,000 zeny.";
close;
}
mes "Enjoy your stay~";
close2;
set Zeny,Zeny - 5000;
percentheal 100,100;
warp "mosk_in",215,181;

Mend:
close;
}

//======================= Inn Function ==============================
function script F_InnMaid {
mes getarg(0);
mes "Welcome to";
mes getarg(1) + ".";
mes "How may I help you?";
next;
menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend;

Msave:
mes getarg(0);
mes "Your respawn point";
mes "has been saved.";
mes "Thank you,";
mes "please come again.";
savepoint getarg(2),getarg(3),getarg(4);
close;
Mrent:
mes getarg(0);
if(Zeny < 5000){
mes "I'm sorry, but the service charge";
mes "is 5,000 zeny. Please make sure";
mes "that you have enough money to check";
mes "in next time, okay?";
close;
}
mes "Thank you.";
mes "I hope you";
mes "enjoy your rest~";
close2;
set Zeny,Zeny - 5000;
percentheal 100,100;
return;

Mend:
close;
}