Anyone running OCWorld?
|
Posted
|
|
|---|---|
|
Community saint |
Now in addition to the earlier mentioned options I have added some extra functionality to the "USE ITEM" function. Now when a person "uses" a healthy item I check to see if that item has a cost (a cost which was set only by admins and superusers) I also check to see what is the most expensive healthy item existing (once again only ones set by admins) and extract the items value as a percentage of the most expensive healthy item. I then take that percentage and get the total current health of the person and figure out what percentage of that health is the ceiling for possible heal points based on the item value. I use that item value percentage also for the bottom end of the random calculation so their possible heal value will be between the percent of total heal possibility ( which is the percent of their health) and the percent of their health. For example lets suppose these numbers: Persons Current health is 100 points Person uses a healthy item (apple) that costs 300 points The maximum costing item (a banana lets say) is 400 points This means the person can earn a random value of points to be added to their between 75 points (apple is 75% of cost of banana and 75% of persons points is 75) and 56 points (75% of 75 = 56) so they will gain that random value between 56 - 75 points to be added to their health. If health or item values are less than 10 (for instance an item that has no cost) than the minimum a person will earn in health is a random value between 1 - 10 points. Another thing to note is inside the "DEHURT" function (which adds the health) I have created a variable called "ceil_health" which is the ceiling a person can be healed to. I set as default of 1000 points so a person can not be healed (whether using an item or being healed by admin) above that amount. So if an admin wants to raise that ceiling they will have to edit that variable inside that function and file: File is: sources_custom/ocworld.php Function is "dehurt" on line 541 of that file. I still have a little more testing to do and some code clean up but it should be ready some time tomorrow (Well today for me since it is 12:30 am Monday). |
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Fan in action |
When you have time.. :-) |
|
Posted
|
|
|
Community saint |
Those who want to test run it please do so and report back your experiences. Things are a little busy for me right now so I won't being making the official release with commit for probably a couple weeks till I have satisfied I am done with changes for now. (plus I'll have to wait for that access) I also want to refine the RN importer I was working on when the time permits and of course upgrade the theme I just released to be better prepared for v8 and I think I will be giving those both a higher priority for the moment. Here are the files: |
|
Posted
|
|
|
Fan in action |
A language entry is missing: W_ATTACK errm what did I misss...? lol |
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Fan in action |
Sorted… my bad uploaded to wrong theme for ocworld Doh… |
1 guests and 0 members have just viewed this: None
Control functions:







