summaryrefslogtreecommitdiff
path: root/npc/re/merchants/renters.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/merchants/renters.txt')
-rw-r--r--npc/re/merchants/renters.txt48
1 files changed, 20 insertions, 28 deletions
diff --git a/npc/re/merchants/renters.txt b/npc/re/merchants/renters.txt
index 59894c678..4bb929ac4 100644
--- a/npc/re/merchants/renters.txt
+++ b/npc/re/merchants/renters.txt
@@ -21,23 +21,21 @@ job3_rune01,88,62,5 script Dragon Breeder 8W_SOLDIER,{
next;
switch(select("Yes:No")) {
case 1:
- //if (!getskilllv("RK_DRAGONTRAINING")) {
- if (!getskilllv("KN_RIDING")) {
+ //if (!getskilllv(RK_DRAGONTRAINING)) {
+ if (!getskilllv(KN_RIDING)) {
mes "[Dragon Breeder]";
mes "Please learn how to ride a Dragon first.";
close;
- }
- else if (checkriding()) {
+ } else if (checkmount()) {
mes "[Dragon Breeder]";
mes "You already have a Dragon.";
close;
- }
- else if(ismounting()) {
+ } else if(hascashmount()) {
mes "[Dragon Breeder]";
mes "Please remove your cash mount.";
close;
}
- setdragon;
+ setmount(MOUNT_DRAGON);
close;
case 2:
mes "[Dragon Breeder]";
@@ -59,23 +57,21 @@ prontera,130,213,5 script Riding Creature Master 8W_SOLDIER,{
next;
switch(select("Yes:No")) {
case 1:
- //if (!getskilllv("RK_DRAGONTRAINING")) {
- if (!getskilllv("KN_RIDING")) {
+ //if (!getskilllv(RK_DRAGONTRAINING)) {
+ if (!getskilllv(KN_RIDING)) {
mes "[Riding Creature Master]";
mes "Please learn how to ride a Dragon first.";
close;
- }
- else if (checkriding()) {
+ } else if (checkmount()) {
mes "[Riding Creature Master]";
mes "You already have a Dragon.";
close;
- }
- else if(ismounting()) {
+ } else if(hascashmount()) {
mes "[Riding Creature Master]";
mes "Please remove your cash mount.";
close;
}
- setdragon;
+ setmount(MOUNT_DRAGON);
close;
case 2:
mes "[Riding Creature Master]";
@@ -88,22 +84,20 @@ prontera,130,213,5 script Riding Creature Master 8W_SOLDIER,{
next;
switch(select("Yes:No")) {
case 1:
- if(!getskilllv("KN_RIDING")) {
+ if(!getskilllv(KN_RIDING)) {
mes "[Riding Creature Master]";
mes "Please learn how to ride a Gryphon first.";
close;
- }
- else if (checkriding()) {
+ } else if (checkmount()) {
mes "[Riding Creature Master]";
mes "You already have a Gryphon.";
close;
- }
- else if(ismounting()) {
+ } else if(hascashmount()) {
mes "[Riding Creature Master]";
mes "Please remove your cash mount.";
close;
}
- setriding;
+ setmount(MOUNT_PECO);
close;
case 2:
mes "[Riding Creature Master]";
@@ -122,7 +116,7 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
mes "If you're unable to dismount from a Peco Peco";
mes "for some unknown reason,";
mes "please feel free to use my services.";
- if (checkriding()) {
+ if (checkmount() == MOUNT_PECO) {
next;
mes "[Soldier]";
mes "You're riding a Peco Peco.";
@@ -130,7 +124,7 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
next;
switch(select("Yes:No")) {
case 1:
- setriding 0;
+ setmount(MOUNT_NONE);
mes "[Soldier]";
mes "Say, how does it feel to";
mes "step on the ground on your own";
@@ -168,23 +162,21 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
mes "There you go!";
close;
case 2:
- if (checkmadogear()) {
+ if (checkmount() == MOUNT_MADO) {
mes "[Magic Gear Master]";
mes "I'm sorry, but you're already";
mes "riding a Magic Gear.";
close;
- }
- else if (!getskilllv("NC_MADOLICENCE")) {
+ } else if (!getskilllv(NC_MADOLICENCE)) {
mes "[Magic Gear Master]";
mes "Please learn the skill to get the Magic Gear License first.";
close;
- }
- else if(ismounting()) {
+ } else if(hascashmount()) {
mes "[Magic Gear Master]";
mes "Please remove your cash mount.";
close;
}
- setmadogear;
+ setmount(MOUNT_MADO);
mes "[Magic Gear Master]";
mes "Have fun, and please come again!";
close;