Jump to content
  • 0

script rent item npc [basic]


GM Takumirai

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

this line ?

zeny -10000000

suppose to be

set Zeny,Zeny -10000000;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

thanks emistry, i also want to ask if my timeline in renting is correct?..

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

for 1 week...

i think it is suppose to be

 rentitem 12662,604800;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

@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;
}
}

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