Jump to content

blakbord

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by blakbord

  1. how can I add reset rewards if it reaches the last day? - script LOGIN -1,{ OnWhisperGlobal: OnLoginCmnd: OnPCLoginEvent: sleep2 1000 + .Rest * 60000; set .@i, (gettime(7) * 365 * 24 * 60) + (gettime(8) * 24 * 60) + (gettime(3) * 60) +gettime(2); if(.@i >= (#LastDailyReward + .MinWait)){ if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon, #DRewardCon + 1; } else { set #DRewardCon, 1; } set .@g, (#DRewardCon > getarraysize(.Rewards$)) ? (getarraysize(.Rewards$)-1) : #DRewardCon; explode(.@XT$,.Rewards$[.@g],"|"); for(set .@x,0; .@x < getarraysize(.@XT$); set .@x,.@x + 1){ set .@TT[.@x], atoi(.@XT$[.@x]); } if(.Mode & 1 && .@TT[4]){ //[Note]: I need to figure out a checkweight for all items tired atm lol, for now ill leave it missing for(set .@x,4; .@x < getarraysize(.@TT); set .@x,.@x + 2){ getitem .@TT[.@x], .@TT[.@x+1]; message strcharinfo(0),"Received "+ .@TT[.@x+1] +" "+ getitemname(.@TT[.@x]); } } if(.Mode & 2){ if(.@TT[0]){ set zeny,zeny + .@TT[0]; message strcharinfo(0),"Received "+ .@TT[0] +"z"; } if(.@TT[1]){ setd getd(.Points$[0]),getd(.Points$[0]) + .@TT[1]; message strcharinfo(0),"Received "+ .@TT[1] +" "+.Points$[1]; } } if(.Mode & 4 && (.@TT[3] || .@TT[4])) getexp .@TT[3], .@TT[4]; if(.Mode & 8){ for(set .@x,0; .@x < getarraysize(.BuffInfo); set .@x,.@x + 4){ if(#DRewardCon % .BuffInfo[.@x + 1] == 0) sc_start .BuffInfo[.@x], .BuffInfo[.@x + 2] * 60000, .BuffInfo[.@x + 3]; } } dispbottom "You have collected your daily reward, for "+#DRewardCon+" day"+((#DRewardCon > 1)?"s":"")+" in a row."; //===============Display of pic's with day highlighted.======================= cutin .Pic$[.@g],4; //============================================================================ set #LastDailyReward, .@i; } else { set .@days,(#LastDailyReward + .MinWait - .@i)/60/24; set .@hours,((#LastDailyReward + .MinWait - .@i)/60)%24; set .@mins,(#LastDailyReward + .MinWait - .@i)%60; dispbottom "You have "+ ((.@days) ? .@days +": Days " : "") +""+ ((.@hours) ? .@hours +": Hours " : "") +""+ ((.@mins) ? .@mins +": Minutes " : "") +"till your next reward."; } end; OnInit: //Basic Settings // 1: Item | 2: Points | 4: Exp // 8: Gain Buffs Every X Consecutive Days logged in // (a bit value, e.g. 3 = Items & Points from Multi) set .Mode,1 + 2 + 4; //To Enable @ Command '@loginreward' unslash next lines // * Needs extra commands for typos bindatcmd("relog" ,"LOGIN::OnLoginCmnd",0,99); //Minimum Minutes Between Collecting Daily Reward // Day: 22*60 - 24*60 // Week: 10080 set .MinWait,1440; //Minutes Before Lose Consecutive Daily Reward // Day: 48*60 - 50*60 // Week: 20160 set .MaxWait,3000; //Number of mins after logging before collecting prize set .Rest,0; //Point Type // [0] Points earned // [1] Point name in mes setarray .Points$,"#KAFRAPOINTS","K-Points"; // Consecutive Days Buff // Each buff contains 4 variables (32 Total Max) // <Type>,<Days>,<Duration>,<Rate>, // Buff 1 // <Type>,<Days>,<Duration>,<Rate>, // Buff 2 // ...; // // Example: 188,7,45,3 // -Every 7th consecutive day logged in Player gains +3 Str for 45 mins // // Type is 188, which references which SC_ to use, SC_INCSTR in this example // -For a full list of SC_ visit the db/const.txt // Days is days buff is applied, in this example 7, so every 7th day, 14,21,28.... // Duration is buff duration is Minuits, in this example 45 mins // Rate is buff strength, in this example player gains 3 Str setarray .BuffInfo ,260,2,360,1 // Life Insurance for 360 Mins Every 2nd Day ,198,3,120,10 // +10% Hp for 120 Mins Every 3th Day ,196,5,120,25 // +25 Flee for 120 Mins Every 5th Day ,257,7,240,50; // +50% Exp for 240 Mins Every 7th Day // Daily Prize items (max 128 days): // "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc", // Day 1 // "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc" // Day 2 // ...; // Total length of any days string must be 255 or shorter // * If players login longer than the last set // day, they will keep getting the last prize. setarray .Rewards$, "100", // Day 0: 100 Zeny "100000|0|0|0", // Day 1: 100000 Zeny "0|0|0|0|12210|2", // Day 2: 2 Bubble Gum "0|0|0|0|14003|2", // Day 3: 2 Elite Siege Supply Box "0|0|0|0|0|0", // Day 4: 5 Event Ticket "0|0|0|0|0|0", // Day 5: "0|0|0|0|0|0", // Day 6: "0|0|0|0|0|0", // Day 7: "0|0|0|0|0|0", // Day 8: "0|0|0|0|0|0", // Day 9: "0|0|0|0|0|0", // Day 10: "0|0|0|0|0|0", // Day 11: "0|0|0|0|0|0", // Day 12: "0|0|0|0|0|0", // Day 13: "0|0|0|0|0|0", // Day 14: "0|0|0|0|0|0", // Day 15: "0|0|0|0|0|0", // Day 16: "0|0|0|0|0|0", // Day 17: "0|0|0|0|0|0", // Day 18: "0|0|0|0|0|0", // Day 19: "0|0|0|0|0|0", // Day 20: "0|0|0|0|0|0", // Day 21: "0|0|0|0|0|0", // Day 22: "0|0|0|0|0|0", // Day 23: "0|0|0|0|0|0", // Day 24: "0|0|0|0|0|0", // Day 25: "0|0|0|0|0|0", // Day 26: "0|0|0|0|0|0", // Day 27: "0|0|0|0|0|0", // Day 28: "0|0|0|0|0|0", // Day 29: "0|0|0|0|0|0"; // Day 30: setarray .Pic$, "day00", //pic with day0 highlighted "day01", //pic with day1 highlighted "day02", //pic with day2 highlighted "day03", "day04", "day05", "day06", "day07", "day08", "day09", "day10", "day11", "day12", "day13", "day14", "day15", "day16", "day17", "day18", "day19", "day20", "day21", "day22", "day23", "day24", "day25", "day26", "day27", "day28", "day29", "day30"; end; }
  2. can someone link me to this SVN? I badly need to download it.. thanks in advance..
  3. @myiee sir _Okuz_ already solved your problem.. if (hourly_reward < gettimetick(2) && !received) { set received, 1; // Rewards here! // getitem item_id, amount; <---- uncomment this line and change the item_id for your hourly reward.. // Zeny, Zeny + amount; <--------uncomment this if you want them to get some zennies }
  4. try to change this mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,bc_map;0xE71Ac9; into mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,bc_map,0xE71Ac9;
  5. thanks for responding for my help @_Okuz_ you really help a lot..
  6. I think I've found what I've been looking for.. but too bad the link is broken.. https://rathena.org/board/topic/79261-vip-system/?p=182888
  7. it's checking the NPC and the function.. and for the item, based on the NPC Script.. upon logging in the game you'll get a VIP good for 1 week.. this is the scenario I want.. ex. item = bag of coins when bag of coins is used it will display this dispbottom "You have been upgraded to a VIP for 1 week."; and in every 1hour or whenever you're logging in the game it will display this dispbottom "VIP : expires in " + callfunc("Time2Str",#VIP_expire); to check your VIP how much time is left..
  8. thanks for the response.. the doevent is not working.. so i tried the function thing.. is it like this? I'm not really good in scripting.. function script vip_for_1week ,{ OnPCLoginEvent: if (getgroupid() != 0) end; // first time logging into this account if (#VIP_expire == 0) { set #VIP_expire, gettimetick(2) + (7*86400); // 7 days dispbottom "Welcome to the server!"; dispbottom "You have been upgraded to a VIP for 1 week."; } if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1"; deltimer strnpcinfo(3)+"::OnPCLoginEvent"; if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent"; } else { addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent"; } } else if (#VIP_expire > 1) { set #VIP_expire, 1; atcommand "@adjgroup 0"; dispbottom "Your VIP Rental has expired."; } end; } the item is like this? 670,Gold_Coin_Moneybag,Bag of Gold Coins,2,100000,,400,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "vip_for_1week"; },{},{}
  9. I want to use this script in an item for example.. 670,Gold_Coin_Moneybag,Bag of Gold Coins,0,100000,,400,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} thanks.. - script vip_for_1week -1,{ OnPCLoginEvent: if (getgroupid() != 0) end; // first time logging into this account if (#VIP_expire == 0) { set #VIP_expire, gettimetick(2) + (7*86400); // 7 days dispbottom "Welcome to the server!"; dispbottom "You have been upgraded to a VIP for 1 week."; } if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1"; deltimer strnpcinfo(3)+"::OnPCLoginEvent"; if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent"; } else { addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent"; } } else if (#VIP_expire > 1) { set #VIP_expire, 1; atcommand "@adjgroup 0"; dispbottom "Your VIP Rental has expired."; } end; }
  10. already solved it.. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js? load=effects"></script> <style> html,body{margin:0px;padding:0;border0px;overflow:hidden;} </style> <script type="text/javascript"> function ShowEffect(element){ new Effect.Appear(element, {duration:1, from:0, to:1.0}); } function FadeEffect(element){ new Effect.Fade(element, {duration:1, from:1.0, to:0}); } var i = 0; var path = new Array(); // LIST OF IMAGES path[0] = "link/to/image"; path[1] = "link/to/image"; path[2] = "link/to/image"; function swapImage_0() { document.slide.src = path[i]; if(i < path.length - 1) i++; else i = 0; setTimeout("FadeEffect('hideshow')",4000); setTimeout("ShowEffect('hideshow')",5000); setTimeout("swapImage_0()",6000); } window.onload=swapImage_0; </script> <div id="hideshow"> <a href="link/to/image" target="_blank"><img height="auto" name="slide" src="link/to/image" width="auto"/></a> </div>
  11. i also use this, has anyone solved it?
  12. I want to use this script in an item for example.. 670,Gold_Coin_Moneybag,Bag of Gold Coins,0,100000,,400,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} thanks..
  13. blakbord

    help?

    thanks for answering my question.. I guess I have to do it on my own..
  14. blakbord

    help?

    I don't know where to post this, please move this post to the right section.. my question is, is there any software in making own themes in flux cp? hope there is? thanks..
  15. I just install a web design.. can you teach me?
  16. it's flux CP sir.. can you help me about my problem?
  17. when I try to click the DOWNLOAD link, my website says I'm not Authorized.. and when I set it in debug mode this is the error.. I don't know what will I do about this.. I mean what I'm gonna change so I'll be authorized?
  18. can I have a request? please make a colored runes of glory.. thanks in advance..
  19. thanks for responding sir @Skorm but why does it announce the default prize instead of the grand prize which is thanatos card?
  20. i want to hide this NPC after 30minutes and will be back after 5hours, how to do that? thanks in advance.. guild_vs2,50,49,3 script Mega Lotto 563,{ progressbar "",1; delitem .Cost[0], .Cost[1]; set .@i, rand(1,.Total); if (rand(1,100) > getd(".P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) { getitem .Default[.@j], .Default[.@j+1]; if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } } else { for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) { getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; specialeffect2 248; close; OnInit: waitingroom "Play Lotto Here!",0; // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],100,607,5; setarray .P2[0],80,607,5; setarray .P3[0],70,607,5; setarray .P4[0],60,607,5; setarray .P5[0],50,607,5; setarray .P6[0],50,607,20; setarray .P7[0],40,607,25; setarray .P8[0],30,607,30; setarray .P9[0],20,607,25; setarray .P10[0],10,607,50; setarray .P11[0],100,30487,10; setarray .P12[0],90,30487,10; setarray .P13[0],50,12202,10; setarray .P14[0],50,12203,10; setarray .P15[0],50,12204,10; setarray .P16[0],50,12205,10; setarray .P17[0],50,12206,10; setarray .P18[0],50,12207,10; setarray .P19[0],20,30487,20; setarray .P20[0],10,30487,25; setarray .P21[0],50,12103,5; setarray .P22[0],40,12103,5; setarray .P23[0],30,12103,5; setarray .P24[0],20,12103,5; setarray .P25[0],10,12103,10; setarray .P26[0],50,12202,5; setarray .P27[0],50,12103,5; setarray .P28[0],50,12204,5; setarray .P29[0],50,12205,5; setarray .P30[0],50,12206,5; setarray .P31[0],50,12207,5; setarray .P32[0],5,7073,1; setarray .P33[0],5,7074,1; setarray .P34[0],5,7075,1; setarray .P35[0],5,7076,1; setarray .P36[0],5,7077,1; setarray .P37[0],5,7078,1; setarray .P38[0],5,7079,1; setarray .P39[0],5,7080,1; setarray .P40[0],5,7081,1; setarray .P41[0],5,7082,1; setarray .P42[0],5,7083,1; setarray .P43[0],5,7084,1; setarray .P44[0],5,7085,1; setarray .P45[0],5,7086,1; setarray .P46[0],5,7087,1; setarray .P47[0],5,7088,1; setarray .P48[0],5,7089,1; setarray .P49[0],5,7090,1; setarray .P50[0],5,7091,1; setarray .P51[0],5,7092,1; setarray .P52[0],1,4395,1; setarray .Default[0],30272,1; setarray .Cost[0],7368,1; set .Total,52; end; } and also how to change it to only 1% item will be announced? BUMP!! BUMP !!
  21. @Emistry thanks for answering, I did the quest and it work but now I'm stuck at entering Red Charm Stone.. is there a problem with the script? can you link me the working script? @Emistry how can I edit the script thana_quest so that I can get back and enter to the tower and kill Thanatos again and again?
  22. like the title said.. I tried to quest thanatos, and I'm stuck at entering the red stone key.. can someone help me on this? I really need it for my server.. thanks..
  23. what is the latest rAthena SVN as of now? I didn't know what version did I just download.. can't see it in game too when I use @version..
×
×
  • Create New...