Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/18/23 in Posts

  1. //=================================== // Pincode system //=================================== // NOTE: Requires client 2011-03-09aragexeRE or newer. // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse. // Default: yes pincode_enabled: yes // How often does a user have to change his pincode? // 0: never (default) // X: every X days pincode_changetime: 0 // How often can a user enter the wrong pincode? // Default: 3 (client maximum) pincode_maxtry: 3 // Are users forced to use a pincode when the system is enabled? // Default: yes pincode_force: yes https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/conf/char_athena.conf
    1 point
  2. huh ? month reward but cant claim again on next month ??? are you looking for a npc that give Item Monthly ?? try this prontera,155,181,5 script Sample 757,{ // January ~ December Item Lists setarray .ItemID[0],7539,5022,512,607,608,7539,5022,512,607,608,7539,5022; setarray .Amount[0],1,2,3,4,5,6,7,8,9,10,11,12; if( #MonthlyReward != gettime(6) ){ getitem .ItemID[gettime(6)],.Amount[gettime(6)]; set #MonthlyReward,gettime(6); mes "You have grant an item for this month."; }else{ mes "You cant take a reward again this month."; } close; }
    1 point
  3. how about merge all into 1 NPC ? prontera,155,181,5 script Sample 757,{ function RequiredItems; setarray .MonthReward[0], 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010, 5011, 5012; mes "Would you like to make 1 ^FF0000"+getitemname( .MonthReward[ gettime(6) - 1 ] )+"^000000 for the "+( gettime(6) )+"th Month of this year ?"; next; if( select( "Yes:No" ) == 2 ) close; switch( gettime(6) ){ // RequiredItems( ItemID,Amount,ItemID,Amount,............ ); Case 1: RequiredItems( 501,1,502,2,503,3,504,4,505,5,506,6 ); break; Case 2: RequiredItems( 501,1,502,2,503,3,504,4,505,5,506,6 ); break; Case 3: RequiredItems( 501,1,502,2,503,3,504,4,505,5,506,6 ); break; Case 4: RequiredItems( 501,1,502,2,503,3,504,4,505,5,506,6 ); break; // Until December...add to your like.... } mes "Gained ^FF0000"+getitemname( .MonthReward[ gettime(6) - 1 ] )+"^000000 for this month."; getitem .MonthReward[ gettime(6) - 1 ],1; close; function RequiredItems { mes "[ ^0000FF Required Items ^000000 ]"; mes "^FFFFFF________________________________^000000"; for( set .@i,0; getarg( .@i,0 ); set .@i,.@i + 2 ){ mes (( countitem( getarg( .@i ) ) < getarg( .@i + 1 ) )?"^FF0000":"^00FF00" )+"[ "+countitem( getarg( .@i ) )+" / "+getarg( .@i + 1 )+" ] ^0000FF "+getitemname( getarg( .@i ) )+"^000000"; if( countitem( getarg( .@i ) ) < getarg( .@i + 1 ) ) set .@InComplete,.@InComplete + 1; } mes "^FFFFFF________________________________^000000"; if( .@InComplete ){ mes "[ ^FF0000InComplete^000000 ] ^FF0000"+.@InComplete+"^000000 Items "; close; } next; if( select("^FF0000Continue^000000:Cancel") == 2 ) close; for( set .@i,0; getarg( .@i,0 ); set .@i,.@i + 2 ) delitem getarg( .@i ),getarg( .@i + 1 ); return; } } Edit the Item Required here. // RequiredItems( ItemID,Amount,ItemID,Amount,............ ); Case 1: RequiredItems( 501,1,502,2,503,3,504,4,505,5,506,6 ); break; Item List for each Month : setarray .MonthReward[0], 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010, 5011, 5012;
    1 point
×
×
  • Create New...