viewing paste rental item exchange | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/*
    http://www.emistry.net/board/index.php?threads/rental-npc.219/
    
    the npc will have 2 menus
    first is to rent by paying 50 credits (item id 6060).
    second will be pay 15 PODS( item id 7179).
 
    if he chose the first one he will be given 30 days rent for this item 7338 same as choosing the second option.
 
    
*/
 
 
prontera,155,181,5  script  Sample  757,{
mes "Pick one.";
select( "Menu 1","Menu 2" );
if( @menu == 1 ){
    setarray .@itemid,6060,50;
}else{
    setarray .@itemid,7179,15;
}
mes "I need "+.@itemid[1]+" x "+getitemname( .@itemid[0] );
if( countitem( .@itemid[0] ) >= .@itemid[1] ){
    delitem .@itemid[0],.@itemid[1];
    mes "Gained rental item for 30 days.";
    rentitem 7338,( 30 * 86400 );
}
close;
}
Viewed 1243 times, submitted by Emistry.