Jump to content

mrlongshen

Members
  • Content Count

    1126
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by mrlongshen

  1. //===== EinherjarRO Scripts ================================== //= Daily Prize, OnPCLoginEvent //===== By: ================================================== //= Stolao //===== Current Version: ===================================== //= 1.59 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A reward system for players who play more frequently //===== Comments: ============================================ //= Maybe Make .MinWait an array mins,days,weeks,months,years; //===== Additional Comments: ================================= //= For Older See Forums //= 1.51 Changed set .@g formula and move lower into script //= 1.52 Replace all disbottom -> message //= 1.53 Changed Format to Include minuets instead of just hours //= 1.54 Made Time till next rewards display dynamic //= 1.55 Changed a forgotten .PointType$ -> getd(.@TT[1]) //= 1.56 changed .@XT -> .@XT$ //= 1.57 Added Atoi where nessisary //= 1.58 Fixed a swapped .@x and .@x+1 //= 1.59 Serveral Edit Undocumented to fix //===== Contact Info: ======================================== //= [Stolao] //= Email: [email protected] //============================================================ - 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),"Recived "+ .@TT[.@x+1] +" "+ getitemname(.@TT[.@x]); } } if(.Mode & 2){ if(.@TT[0]){ set Zeny,Zeny + .@TT[0]; message strcharinfo(0),"Recived "+ .@TT[0] +"z"; } if(.@TT[1]){ setd getd(.Points$[0]),getd(.Points$[0]) + .@TT[1]; message strcharinfo(0),"Recived "+ .@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]; } } message strcharinfo(0),"You have collected your daily reward, for "+#DRewardCon+" day"+((#DRewardCon > 1)?"s":"")+" in a row."; set #LastDailyReward, .@i; } else { set .@days,(#LastDailyReward + .MinWait - .@i)/60/24; set .@hours,((#LastDailyReward + .MinWait - .@i)/60)%24; set .@mins,(#LastDailyReward + .MinWait - .@i)%60; message strcharinfo(0),"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 + 8; //To Enable @ Command '@loginreward' unslash next lines // * Needs extra commands for typos bindatcmd("relog" ,"LOGIN::OnLoginCmnd",0,99); //Minimum Minuets Between Collecting Daily Reward // Day: 22*60 - 24*60 // Week: 10080 //set .MinWait,1320; set .MinWait,1320; //Minuets Before Lose Consecutive Daily Reward // Day: 48*60 - 50*60 // Week: 20160 //set .MaxWait,3000; set .MaxWait,3000; //Number of mins after logging before collecting prize set .Rest,60; //Point Type // [0] Points earned // [1] Point name in mes setarray .Points$,"#CASHPOINTS","Cash-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 1: 100 Zeny "0|0|0|0|501|5", // Day 2: 5 Red Potion "0|0|0|0|503|5|506|5"; // Day 3: 5 White Potion + 5 Green Potion end; } Anyone help me where to add message to char, You have to wait 60 minutes before claim the reward. An npc, that when player click, display waiting time 40 minute. The time will reduce until minute 0, and player can redeem the reward.
  2. @@Bruno Nogueira Thanks. Will check back
  3. @@Cretino but I feel real from jman statement. HAHAHA damn ! I hurt so much
  4. Wow. Seriesly ? Is this April fool ? HAHA
  5. @@evilpuncker ok thanks you boss. Will double check it. Any idea when start will at iz_int with a dark background and cant move ? I have change to other map, but cannot.
  6. @@evilpuncker How to disable it, when I click, dc. huhuhu can it be disable ?
  7. @@HaARiZz Welcome back HAHAHA !!
  8. @@HaARiZz Good ! Low rate ? I want to test it later
  9. @@HaARiZz Good good good. Let me know if u have problem. HAHA. Are you making offline or online server ?
  10. @@Cretino Oh I see. Thanks for your help sir ! I wish one day you will become herc.ws source dev
  11. @@Cretino ok thanks. How about just @commands but the custom display below the official @commands ?
  12. @@Cretino WOW that cool ! its require source editing. How about scripting ? can u make it ?
  13. Hi. My server running pre-renewal. Can someone make a simple script, when player wear item 26751, it can use Warg Mastery and call the wolf ?
  14. This event has bugs, when it annouce, it close too. hahahaha
  15. 1>------ Build started: Project: plugin-HPMHooking_char, Configuration: Debug Win32 ------ 2>------ Build started: Project: plugin-HPMHooking_map, Configuration: Debug Win32 ------ 3>------ Skipped Build: Project: plugin-sample, Configuration: Debug Win32 ------ 3>Project not selected to build for this solution configuration 4>------ Build started: Project: mapcache, Configuration: Debug Win32 ------ 5>------ Build started: Project: map-server, Configuration: Debug Win32 ------ 2> HPMHooking.c 1> HPMHooking.c 4> console.c 4> core.c 4> des.c 4> grfio.c 5> grammar.c 5> libconfig.c 5> scanctx.c 5> scanner.c 4> memmgr.c 4> showmsg.c 5> strbuf.c 5> mt19937ar.c 5> conf.c 5> core.c 4> strlib.c 5> console.c 5> db.c 4> sysinfo.c 4> utils.c 5> des.c 4> nullpo.c 4> mapcache.c 5> ers.c 5> grfio.c 5> HPM.c 5> memmgr.c 5> mapindex.c 5> md5calc.c 5> mutex.c 5> nullpo.c 5> random.c 5> showmsg.c 5> socket.c 5> sql.c 5> strlib.c 5> sysinfo.c 5> thread.c 5> timer.c 5> utils.c 4>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 1> Creating library plugin-HPMHooking_char\Debug\HPMHooking_char.lib and object plugin-HPMHooking_char\Debug\HPMHooking_char.exp 5> atcommand.c 6>------ Build started: Project: login-server, Configuration: Debug Win32 ------ 5> battle.c 5> battleground.c 5> buyingstore.c 6> grammar.c 6> libconfig.c 6> scanctx.c 6> scanner.c 6> strbuf.c 6> conf.c 6> mutex.c 6> thread.c 6> account_sql.c 6> HPMlogin.c 6> ipban_sql.c 6> login.c 1> plugin-HPMHooking_char.vcxproj -> C:\Users\Rusty Nails\Documents\Ragnarok\testing 2015\Hercules\vcproj-10\..\plugins\HPMHooking_char.dll 6> loginlog_sql.c 6> core.c 5> channel.c 5> chat.c 7>------ Build started: Project: char-server, Configuration: Debug Win32 ------ 6> console.c 6> db.c 6> ers.c 6> HPM.c 6> memmgr.c 6> md5calc.c 6> nullpo.c 6> random.c 6> showmsg.c 6> socket.c 7> grammar.c 7> libconfig.c 5> chrif.c 7> scanctx.c 7> scanner.c 5> clif.c 5> date.c 5> duel.c 5> elemental.c 7> strbuf.c 7> mt19937ar.c 7> conf.c 7> core.c 7> console.c 7> db.c 7> ers.c 7> HPM.c 7> memmgr.c 6> sql.c 6> strlib.c 6> sysinfo.c 6> timer.c 6> utils.c 6> mt19937ar.c 6> Creating library ..\login-server.lib and object ..\login-server.exp 6>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 8>------ Build started: Project: plugin-HPMHooking_login, Configuration: Debug Win32 ------ 7> mapindex.c 7> mutex.c 7> nullpo.c 7> random.c 7> showmsg.c 7> socket.c 7> sql.c 7> strlib.c 7> sysinfo.c 5> guild.c 7> thread.c 5> intif.c 7> timer.c 7> utils.c 7> HPMchar.c 7> char.c 7> geoip.c 7> int_auction.c 7> int_elemental.c 7> int_guild.c 7> int_homun.c 7> int_mail.c 5> irc-bot.c 5> itemdb.c 7> int_mercenary.c 5> log.c 7> int_party.c 7> int_pet.c 8> HPMHooking.c 5> mail.c 7> int_quest.c 7> int_storage.c 5> map.c 7> inter.c 5> mapreg_sql.c 7> loginif.c 7> mapif.c 7> pincode.c 5> homunculus.c 5> HPMmap.c 8> Creating library plugin-HPMHooking_login\Debug\HPMHooking_login.lib and object plugin-HPMHooking_login\Debug\HPMHooking_login.exp 8> plugin-HPMHooking_login.vcxproj -> C:\Users\Rusty Nails\Documents\Ragnarok\testing 2015\Hercules\vcproj-10\..\plugins\HPMHooking_login.dll 5> instance.c 7> Creating library ..\char-server.lib and object ..\char-server.exp 5> mercenary.c 7>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 5> mob.c 5> npc.c 5> npc_chat.c 5> party.c 5> path.c 5> pc.c 5> pc_groups.c 2> Creating library plugin-HPMHooking_map\Debug\HPMHooking_map.lib and object plugin-HPMHooking_map\Debug\HPMHooking_map.exp 5> pet.c 5> quest.c 5> script.c 2> plugin-HPMHooking_map.vcxproj -> C:\Users\Rusty Nails\Documents\Ragnarok\testing 2015\Hercules\vcproj-10\..\plugins\HPMHooking_map.dll 5> searchstore.c 5> skill.c 5> status.c 5> storage.c 5> trade.c 5> unit.c 5> vending.c 5> Creating library ..\map-server.lib and object ..\map-server.exp 5>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt ========== Build: 3 succeeded, 4 failed, 0 up-to-date, 1 skipped ========== Hello. May I know how to fix this ? Which one is problem ?
  16. @@Kubix ok thanks you. this script need to edit so many. haha
×
×
  • Create New...

Important Information

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