Jump to content

Venture

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by Venture

  1. Is there a way to check if the player has a "Blessing" buff or not?. if (<Status here>) { mes "So you successfully came with the buff on!"; mes "You are truly a blessed person.."; mes "here is your rewards!"; etc etc...... }
  2. This is a script I got from the scripting forum. - script login_reward -1,{ OnPCLoginEvent: .@pow = 1 << 10; .@todays = gettime(8); if ( login_reward % .@pow == .@todays ) end; .@count += .reward_day;// reward of the day login_reward = ( login_reward &~ ( login_reward % .@pow ) ) + .@todays + .@pow;// update day and count day +1 ; day/count day/check week/check month if ( login_reward != .@todays + .@pow ) {// login_reward was not empty .@count_day = ( login_reward >> 10 ) % .@pow; .@cond_ofthemonth = ( ( login_reward >> 30 ) % .@pow ) != ( .@count_day / 31 ); if ( ( ( login_reward >> 20 ) % .@pow ) != ( .@count_day / 7 ) ) { .@count += .reward_week; login_reward = login_reward + pow( 2,20 ); .@weekly_message$ = ( .@cond_ofthemonth ? ", " : " and " ) + .reward_week +" Red Envelopes for being online a week"; } if ( .@cond_ofthemonth ) { .@count += .reward_month; login_reward = login_reward + pow( 2,30 ); .@montly_message$ = " and " + .reward_month +" Red Envelopes for being online a month"; } } getitem 12134, .@count; dispbottom "Here your daily reward ! You got "+ .reward_day +" Red Envelopes"+ .@weekly_message$ + .@montly_message$ +"."; end; OnInit: .reward_day = 1;// reward of the day : amount of Red Envelopes .reward_week = 7;// reward of the week : amount of Red Envelopes .reward_month = 32;// reward of the month : amount of Red Envelopes end; } The script gives you red envelope every time you log-in, each weekly/monthly log-in gives you additional item. This however gives the item if you change character. How do you make this account based rather than character based? And I want them to be permanent variable, since the server won't run 24/7, it will have a day of rest, hence, it is not possible to get the weekly reward because the variable is temporary.
  3. nvm, I found the mistake, Thanks for viewing anyways. In C, (1/100) results 0. No wonder it fails to work. Thanks for not trying to help guys!. For those who encounters the same prolem, Put ((float)1/100)
  4. I decided to change the ragnarok online formula, so i created an excel file to balance the growth as close as possible to the original. But somehow, the values are not as it is in the excel file than in the Ragnarok online.. Status.c These works properly in the excel, but does not work properly in Ragnarok Online.. Why? Can anyone help me solve this? http://www.mediafire.com/?gf4dkfboukm2qp8 Link to Excel File. Can anyone please help me? I am truly desperate, I finally found the perfect formula I will be using, but it does not seem to work, I cannot understand why.. Anyone please..?
  5. I wanted mvps on my server to be stunned for 5 seconds when it reach 50% hp or below. (Will only run Once, unless its hp regain above 50% again.) To give players some Grace period/Time. and It will play a certain mp3 song file on the map (To indicate the MVP is weak state). MVP does not teleport in my server, as MVPs can be killed with 1 to 4 people. How do I do this?.
  6. I can get player str like this one. bonus bAtk2,readparam(bStr)*6; but how get perfect hit? Pls tell ;_;. Perfect hit script from this one please get me script ok (Never miss hitting attack). bonus bPerfectHitRate,1; bonus bPerfectHitAddRate,3; is it readparam(perfektuHitto); ?
  7. Seems like it worked well, thanks..!
  8. Is that confirmed to be working..? Server is up, and I don't think checking it up in the server itself would be a great idea.
  9. I wanted to make a weapon that gets a +30 bonus damage if the user is on Peco/Dragon. What should I put within the weapon script..?
  10. I see, then I will just use bottom chat log identification for the valor points, or even better, a ragnarok top right quest section..? I don't mind existing buff icons, I think i am starting to get the Idea on how this can be done. thanks..! i don't find any tutorials about adding customizing buff's description. its not in src, does that mean i have to edit the lua file to edit buff description..? EDIT: i found how to create a new status. http://rathena.org/wiki/Adding_new_statuses how do you add bonus exp and drop rate to these new status..? and i found that someone could add status icon (optional) http://rathena.org/board/topic/72715-unofficial-extra-status-icons/ i wonder how do you actually edit lua files..? any directions? EDIT: Nobody actually has any direction for me on how to make this happen..?
  11. it might be better on both script and src though, i would like to grant an UI for the value counter, like a simple bar/digit on the status bar for the valor points, and bonus exp,through script. i wonder where i might find a place on src about UI tho.
  12. I think this I posted this on the wrong section, since this would be src edit not npc.. how do i request for a thread relocation..? towards the source request section.
  13. It levels up everytime the Valor Point cap is reached.From level 0 to 1, it requires 100 Valor Points. From level 1 to 2, it requires 250 Valor Points. From level 2 to 3, it requires 400 Valor Points. From level 3 to 4, it requires 1000 Valor Points. And so on.. It just keep increasing with the set constants for each level.
  14. The concept comes from Diablo's Nephalem Valor, on where player is rewarded the more bosses they kill in successions within 30 minutes. For each boss kill that occured within the 30 minute span, the more their rewards are. it works by leveling up the Nephalem Valor buff. At level 1, the buff provides 25% increased drop rate, and 25% increased exp. At level 2, the buff provides 35% increased drop rate, and 50% increased exp. At level 3, the buff provides 40% increased drop rate, and 65% increased exp. and so on. but since bosses are limited in the Ragnarok world, the concept cannot be applied. So i designed a new concept based on the Nephalem Valor concept for my private server, which might be interesting. Gain 100 "Valor Points" within 30 minutes. If you kill an enemy of a certain level, a certain "Valor point" is given. Example : If you kill a level 10 monster at level 5, you get set Bonus = Monster level - Player level If (Bonus < 0) { set Bonus = 0 } (1 + ((Monster level / 2) + Bonus)) so that means, you get (1 + ((10/2) + (10 - 5))) Which is (1 + (5 + 5)) = 11 Valor Points. You are rewarded with a 30 minutes level 1 Nephalem Valor buff, which provides 10% bonus exp, and 10% bonus drop rate. You can further level the Nephalem Valor buff to level 2, by acquiring 250 Valor points within 30 minutes duration. and you could further level up the buff with further set constant valor points. If you successfully level up the Nephalem Valor buff, the 30 minutes duration are reset. At level 2, you are given 15% bonus exp and 15% drop rate. At level 3, you are given 30% bonus exp and 25% drop rate. ...and so on.. The buff level goes up to 10. and the Valor point recquired will keep on increasing. 1. 30 minutes Buff duration finish (Nephalem valor removed, and you have to accumulate 100 points again to start a new Nephalem valor session). 2. Goes into maps considered as "Town" 3. Dies 4. Logs out I hope you guys can help me form an idea as to how this could be implemented in rAthena. and if possible, there should be a Valor counter somewhere in the UI as well. Thank you for reading..!
  15. I have the same error, solution? It works properly without no ip. but I needed this no ip, since my Ip adress keep on changing after a few minute (Dynamic IP from the ISP).
×
×
  • Create New...