Jump to content
  • 0

script rent item npc [basic]


Question

Posted (edited)

prontera,138,183,5 script Mount System Manager 921,{
mes "[Mount Manager]";
mes "You want to Rent the [Reins of Mount]?. you need to pay 10,000,000z and bring 2x [Reins] - drop by abbysmal knight monster";
mes "This item will be expire for 7 days";
mes "[Mount Manager]";
mes "Let see if you already Have [Reins of Mount] and the requirements...";
next;

if (countitem(12622) > 1) goto noway;
if (zeny < 10000000) goto nocash;
if (countitem(1064) < 2) goto noitem;

rentitem 12622,432000;
set Zeny,Zeny -10000000;
delitem 1064,2;
close;

noway:
mes "you can't Rent [Reins of Mount]. You already have 1x in your inventory.";
close;

nocash:
mes "[Mount Manager]";
mes "You dont have enough money to rent it, please come back if you already have enough money.";
close;

noitem:
mes "[Mount Manager]";
mes "You dont have enough [Reins] you can get it from abbysmal knight monster.";
close;

L_bye:
mes "[Mount Manager]";
mes "Have a nice day, please come back again.";
close;
}

can someone check my script?

Edited by Takumirai

4 answers to this question

Recommended Posts

Posted

@Emistry i tried the script still it doesn't appear when i tried it..

the problem is it gets the requirements but it doesnt give the rented item?

- Solved -

prontera,218,197,5 script Mount Manager 894,{
mes "[Mount Manager]";
mes "You want to Rent the [Reins of Mount]?. you need to pay 10,000,000z and bring 2x [Reins] - drop by abbysmal knight monster";
mes "This item will be expire for 7 days";
mes "[Mount Manager]";
mes "Do you have all the requirements needed?...";
menu "Yes",-,"No, Im going back later..",L_bye;
mes "[Mount Manager]";
mes "Let see if you already Have Rented a [Reins of Mount]..";
next;
if (countitem(12622) > 1) goto noway;
if (zeny < 1000000) goto nocash;
if (countitem(1064) < 2) goto noitem;

mes "[Mount Manager]";
mes "Are you sure you want to rent [Reins of Mount]?";
menu "Yes",-,"No",L_bye;
rentitem 12622,604800;
set Zeny,Zeny -1000000;
delitem 1064,2;
close;
noway:
mes "you can't Rent [Reins of Mount]. You already have 1x in your inventory.";
close;
nocash:
mes "[Mount Manager]";
mes "You dont have enough money to rent it, please come back if you already have enough money.";
close;
noitem:
mes "[Mount Manager]";
mes "You dont have enough [Reins] you can get it from abbysmal knight monster.";
close;
L_bye:
mes "[Mount Manager]";
mes "Have a nice day, please come back again.";
close;
}
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...