Jump to content
  • 0

Can you make this into Dynamic Quest NPC with item preview & Editable Requirement's


Question

Posted (edited)
Can you make this into Dynamic Quest NPC with item preview & Editable Requirement's

 

"Editable Requirement's" to make it short same as Euphy's Quest Shop but will give a rental item.

 


prontera,33,200,5 script Sample 439,{

setarray .ItemLists[2],2383,2541,2410,2629,5013;
set @Menu$,"Info";
for( set .@a,2; .@a < getarraysize( .itemLists ); set .@a,.@a + 1 ){
set @Menu$,@Menu$ +":"+ getitemname( .itemLists[.@a] );
}
 
set .@a,select ( @Menu$ );
if( .@a == 1 || countitem( 7539 ) < 30 || countitem( 969 ) < 30 ){
mes "This Item can only be rent for 1 day if you pay 30 each Poring Coins and 30 each Gold.";
close;
}
mes "You have Rent 1 "+getitemname( .itemLists[.@a] )+" for 1 Days. ";
rentitem .itemLists[.@a], 3600 * 24;
delitem 7539,30;
delitem 969,30;
close;
}

Edited by Renji Abarai

6 answers to this question

Recommended Posts

Posted

 

 

Use multi-currency shop made by @Emistry

how make Emistry Multi-Currency to become Rental Item after you Quested it???

help :(

 

 

Use rentitem instead of getitem.

 

How?? can you make it here :(

 

prontera,33,200,5 script Sample 439,{

setarray .ItemLists[2],2383,2541,2410,2629,5013;
set @Menu$,"Info";
for( set .@a,2; .@a < getarraysize( .itemLists ); set .@a,.@a + 1 ){
set @Menu$,@Menu$ +":"+ getitemname( .itemLists[.@a] );
}
 
set .@a,select ( @Menu$ );
if( .@a == 1 || countitem( 7539 ) < 30 || countitem( 969 ) < 30 ){
mes "This Item can only be rent for 1 day if you pay 30 each Poring Coins and 30 each Gold.";
close;
}
mes "You have Rent 1 "+getitemname( .itemLists[.@a] )+" for 1 Days. ";
rentitem .itemLists[.@a], 3600 * 24;
delitem 7539,30;
delitem 969,30;
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...