Jump to content

PsyOps

Members
  • Posts

    150
  • Joined

  • Last visited

Everything posted by PsyOps

  1. int32 pc_attendance_counter( map_session_data* sd ){ std::shared_ptr<s_attendance_period> period = pc_attendance_period(); // No running attendance period if( period == nullptr ){ return 0; } // Get the counter for the current period int counter = static_cast<int>(pc_readreg2( sd, ATTENDANCE_COUNT_VAR )); + // Check if we have a remaining counter from a previous period + if( counter >= 20 && !pc_attendance_rewarded_today(sd) ){ + pc_setreg2( sd, ATTENDANCE_COUNT_VAR, 0 ); + return 0; + } // Check if we have a remaining counter from a previous period if( counter > 0 && pc_readreg2( sd, ATTENDANCE_DATE_VAR ) < period->start ){ // Reset the counter to zero pc_setreg2( sd, ATTENDANCE_COUNT_VAR, 0 ); return 0; } return 10 * counter + ( ( pc_attendance_rewarded_today(sd) ) ? 1 : 0 ); } I think this is what @Sapito Sucio is trying to tell you to do. Though you have to really understand that attendance forces players to login/attend. On the days you want them active. It would be best if you just use a daily reward script for the purpose of resetting your daily rewards.
  2. I think this is related to PVP maps as I observed.
  3. 1. Create a $variable that uses gettimetick so that the server can fetch the data if the server reboots 2. Use a timer that checks if the $variable gettimetick is already done
  4. Thanks for the answer @Emistry.
  5. Probably my question needs to be rephrased. Lets say that the value of the .RewardList = 3; Is there an existing script_command that will allow me to produce the value '2' as it includes reward 1 and 2. its kind of like getting the array size of the bitmask value. I hope i am asking it right but thanks @Emistry for the reply.
  6. // 1: Reward 1 | 2: Reward 2 | 4: Reward 3 // Sets Basic List of Rewards .RewardList = 1|2|4; In this example, the variable .RewardList = 7; Is there a way to detect how many rewards are there on this variable using bitmask?
  7. Playtester is actually right about it but i think you need to check the git history about the updates for this. Or just download an updated trunk. They have solved this there.
  8. Yes it is possible but really you can change your IP by just restarting your router. better use unique_id instead
  9. you can just do a prontera mapflag nightenabled or use this - script DayNight -1,{ OnClock0600: day; end; OnInit: // setting correct mode upon server start-up if (gettime(DT_HOUR)>=6 && gettime(DT_HOUR)<23) end; OnClock0000: night; end; } + rep if helps
  10. What do you mean it does not work? like it does not show on @rates?
  11. PsyOps

    Screen Flash

    I think it's client and pc compatibility issues. I have not experience this in more updated OS. Currently using the latest client atm.
  12. Yes it is possible but you need to remove then entirely from the client files or just create a custom file to replace them even without removing the default ones.
  13. I think this is a file that is actually in the default RO files. You just need to search for it.
  14. I don't think script will do this for you. You need to create changed at the source code level for this. As how i see this being done. You need to do the following: 1. Create a new skill that is similar to Steal but as a passive. 2. If you want to disable heal you need to add a status on the monster to disable it's heal or refer to skills already on the game that prohibits heal on monsters and such. Hope this helps!
  15. playBGM "<BGM filename>"; the way i understand it you need to add the file extension as "37.mp3"
  16. Excellent graphics on those things.
  17. Try to change .collection and .huting to 1 instead of true only thing that i can think of right off the bat.
  18. How did you add these to your refine_db? Probably that is where the problem is. Or just try to check if the script will work if you change the materials required with more basic ones I'd prefer to check the refine_db 1st
  19. Also tried that and it bugged. Probably the map is not available or the mapflag for the map is not enabled.
  20. I think scripts can't do the trick on this. A source modification is needed for this purpose. And you have to also create a database for this purpose. Depending on what you want to record for using items, it can be tedious to do. Also, i cannot imagine the amount of data you need to store for that purpose. XD
  21. I think yes. You can use that for a different purpose. But unlikely that can be done via script. You will need to reconfigure your source and client files for it.
  22. Then you would have create your own npc for it. That is the only way to do it
  23. PS. I don't own this script but it is an instant job changer script. You can modify it as needed. YOu might need to also check the amount of skills it sets.
×
×
  • Create New...