Jump to content

sylvioneto

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    brasil
  • Server
    essence-ro

sylvioneto's Achievements

Poring

Poring (1/15)

0

Reputation

  1. HELP! pet_db.txt item_db.txt CONSOLE
  2. function script timeleft__ { set [email protected], getarg(0); if ( [email protected] <= 0 ) return getarg(0); set [email protected], [email protected] / 86400; set [email protected], [email protected] % 86400 / 3600; set [email protected], [email protected] % 3600 / 60; set [email protected], [email protected] % 60; if ( [email protected] ) return [email protected] +" day(s) "+ [email protected] +" hour(s)"; else if ( [email protected] ) return [email protected] +" hour(s) "+ [email protected] +" minute(s)"; else if ( [email protected] ) return [email protected] +" minuto(s) and "+ [email protected] +" segundos"; else return [email protected] +" segundos"; } - script DAILY -1,{ OnClock0000: query_sql("UPDATE `login` SET `rewards`='0'"); end; OnPCLoginEvent: set #hourly_timer, gettimetick(2) + 25; end; } - script DAILYREWADS -1,{ query_sql("SELECT rewards FROM `login` WHERE account_id = "+getcharid(3)+"", [email protected]); query_sql("SELECT rdays FROM `login` WHERE account_id = "+getcharid(3)+"", [email protected]); if([email protected] == 1){ mes "[^0099FFDaily Rewards^000000]"; mes ""+strcharinfo(0)+"! You have already received your daily reward!"; mes "Come back tomorrow!"; close; } else if ( #hourly_timer > gettimetick(2) ) { mes "[^0099FFDaily Rewards^000000]"; mes "[^0099FFDaily Rewards^000000]"; mes "You must be online for a full"; mes "consecutive hour to qualify for"; mes "you rewards!"; mes ""+ callfunc( "timeleft__", #hourly_timer - gettimetick(2) ) +" remaining."; close; } if([email protected] == 0) getitem 12208,1; if([email protected] == 1) getitem 12211,5; if([email protected] == 2) getitem 12208,5; if([email protected] == 3) getitem 12466,5; if([email protected] == 4) getitem 12210,1; if([email protected] == 5) getitem 7621,2; if([email protected] == 6) getitem 14592,1; if([email protected] == 7) getitem 12103,1; if([email protected] == 8) getitem 12472,2; if([email protected] == 9) getitem 12208,1; if([email protected] == 10) getitem 12208,1; if([email protected] == 11) getitem 12467,10; if([email protected] == 12) getitem 14553,1; if([email protected] == 13) getitem 12472,2; if([email protected] == 14) getitem 616,1; if([email protected] == 15) getitem 12466,10; if([email protected] == 16) getitem 12211,10; if([email protected] == 17) getitem 12103,2; if([email protected] == 18) getitem 12208,1; if([email protected] == 19) getitem 12208,1; if([email protected] == 20) getitem 12472,2; if([email protected] == 21) getitem 12210,2; if([email protected] == 22) getitem 7621,5; if([email protected] == 23) getitem 12103,3; if([email protected] == 24) getitem 12208,1; if([email protected] == 25) getitem 12208,1; if([email protected] == 26) getitem 12208,1; if([email protected] == 27) getitem 12208,1; if([email protected] == 28) getitem 7829,500; if([email protected] == 29) getitem 12208,1; if([email protected] == 30) getitem 12246,1; if([email protected] == 30) getitem 12246,1; if([email protected]y >= 31){ query_sql("UPDATE `login` SET `rdays`='0' WHERE account_id = "+getcharid(3)+""); } query_sql("UPDATE `login` SET `rewards`='1' WHERE account_id = "+getcharid(3)+""); query_sql("UPDATE `login` SET `rdays`=`rdays`+'1' WHERE account_id = "+getcharid(3)+""); mes "[^0099FFDaily Rewards^000000]"; mes "Alright I've got your daily"; mes "rewards right where!"; next; mes "[^0099FFDaily Rewards^000000]"; mes "See you tomorrow!" mes "And remember to review us on"; mes "RateMyserver.net!"; close; } prontera,144,172,5 duplicate(DAILYREWADS) Daily Rewards#prt 607
  3. Need help!!! function script timeleft__ { set [email protected], getarg(0); if ( [email protected] <= 0 ) return getarg(0); set [email protected], [email protected] / 86400; set [email protected], [email protected] % 86400 / 3600; set [email protected], [email protected] % 3600 / 60; set [email protected], [email protected] % 60; if ( [email protected] ) return [email protected] +" day(s) "+ [email protected] +" hour(s)"; else if ( [email protected] ) return [email protected] +" hour(s) "+ [email protected] +" minute(s)"; else if ( [email protected] ) return [email protected] +" minuto(s) and "+ [email protected] +" segundos"; else return [email protected] +" segundos"; } - script DAILY -1,{ OnClock0000: query_sql("UPDATE `login` SET `rewards`='0'"); end; OnPCLoginEvent: set #hourly_timer, gettimetick(2) + 25; end; } - script DAILYREWADS -1,{ query_sql("SELECT rewards FROM `login` WHERE account_id = "+getcharid(3)+"", [email protected]); query_sql("SELECT rdays FROM `login` WHERE account_id = "+getcharid(3)+"", [email protected]); if([email protected] == 1){ mes "[^0099FFDaily Rewards^000000]"; mes ""+strcharinfo(0)+"! You have already received your daily reward!"; mes "Come back tomorrow!"; close; } else if ( #hourly_timer > gettimetick(2) ) { mes "[^0099FFDaily Rewards^000000]"; mes "[^0099FFDaily Rewards^000000]"; mes "You must be online for a full"; mes "consecutive hour to qualify for"; mes "you rewards!"; mes ""+ callfunc( "timeleft__", #hourly_timer - gettimetick(2) ) +" remaining."; close; } if([email protected] == 0) getitem 12208,1; if([email protected] == 1) getitem 12211,5; if([email protected] == 2) getitem 12208,5; if([email protected] == 3) getitem 12466,5; if([email protected] == 4) getitem 12210,1; if([email protected] == 5) getitem 7621,2; if([email protected] == 6) getitem 14592,1; if([email protected] == 7) getitem 12103,1; if([email protected] == 8) getitem 12472,2; if([email protected] == 9) getitem 12208,1; if([email protected] == 10) getitem 12208,1; if([email protected] == 11) getitem 12467,10; if([email protected] == 12) getitem 14553,1; if([email protected] == 13) getitem 12472,2; if([email protected] == 14) getitem 616,1; if([email protected] == 15) getitem 12466,10; if([email protected] == 16) getitem 12211,10; if([email protected] == 17) getitem 12103,2; if([email protected] == 18) getitem 12208,1; if([email protected] == 19) getitem 12208,1; if([email protected] == 20) getitem 12472,2; if([email protected] == 21) getitem 12210,2; if([email protected] == 22) getitem 7621,5; if([email protected] == 23) getitem 12103,3; if([email protected] == 24) getitem 12208,1; if([email protected] == 25) getitem 12208,1; if([email protected] == 26) getitem 12208,1; if([email protected] == 27) getitem 12208,1; if([email protected] == 28) getitem 7829,500; if([email protected] == 29) getitem 12208,1; if([email protected] == 30) getitem 12246,1; if([email protected] == 30) getitem 12246,1; if([email protected] >= 31){ query_sql("UPDATE `login` SET `rdays`='0' WHERE account_id = "+getcharid(3)+""); } query_sql("UPDATE `login` SET `rewards`='1' WHERE account_id = "+getcharid(3)+""); query_sql("UPDATE `login` SET `rdays`=`rdays`+'1' WHERE account_id = "+getcharid(3)+""); mes "[^0099FFDaily Rewards^000000]"; mes "Alright I've got your daily"; mes "rewards right where!"; next; mes "[^0099FFDaily Rewards^000000]"; mes "See you tomorrow!" mes "And remember to review us on"; mes "RateMyserver.net!"; close; } prontera,144,172,5 duplicate(DAILYREWADS) Daily Rewards#prt 607 dailyrewards.txt
  4. mob invite trade any players.
  5. Mob request a deal with (playerXXXX). various mob are sending "quest a deal", "trade" for all players. Need Help pls.
  6. Need help to decrease this script, this very big. Thanks for all.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.