Skill messages, and combat messages

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
chaosdevi
New User
Posts: 7
Joined: Wed Sep 19, 2007 12:34 am

Skill messages, and combat messages

Post by chaosdevi »

People who played at Middle Earth UO shard might remember that when using skills the server sent you messages:
Points:..
Success Chance:..
Points Gained(not gained)
The question is: how does the SysHook function CheckSkill calculates the success chance?
Or they might have created their own function, which is not using checkskill??

Second question is:
If you enable in watch.cfg combat messages, the Core prints it into console, how to make it print messages to characters??

on ME hey did it somehow....
If I had Core Source, I could've done this myself..
Is there any chance to get Pol source code?

I'm using Pol Core 96

Thanks in advance
Zoram
New User
Posts: 5
Joined: Sun Aug 05, 2007 3:50 am

Post by Zoram »

In short no, in long, it may happen in the distant future, but I'm not gonna hold my breath! ;)
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post by OldnGrey »

A lot of scriptsets hook CheckSkill.

However since CheckSkill uses skillids, it's not acceptable to those who want to eliminate skillid altogether! Take a look at the distro. It bypasses CheckSkill by defining its own function "SkillCheck" instead which uses attributes entirely.

Since you code it yourself you have complete freedom to print all sorts of information to the player, as well as total freedom to define the chance of success. eg I allow the player to optionally see the number of points that are accumulating towards a 0.1 gain.

I still use the old CheckSkill system where 20 below the skill is a 0% chance of success, and 20% above is 100% success. The range inbetween is a linear amount where equalling the skill gives 50% chance of success. That should be really easy to show as a message to the player if they wanted it.

Points gained is fairly simple. It's a parameter passed to both SkillCheck and CheckSkill, so you can readily display that too.

Given all that, it's relatively easy to display to the player their chance of success and the points gained. (If you still use points, but that's another story.)


As for damage, hits and misses, that too is readily done if you hook combat. On my shard the target gets a number above their head equalling the hp they lost, and it's easy to have a miss printed onscreen as well as parry messages because the combat hook does all the calculations and so you can easily display it.
chaosdevi
New User
Posts: 7
Joined: Wed Sep 19, 2007 12:34 am

Post by chaosdevi »

Thanks, but just wanted to know how to display Miss?
damage is displayed easily in Hit scripts, but what about misses?
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

You'll want to hook Attack, good example in the 097 Distro.
chaosdevi
New User
Posts: 7
Joined: Wed Sep 19, 2007 12:34 am

Post by chaosdevi »

MontuZ wrote:You'll want to hook Attack, good example in the 097 Distro.
can you tell me more details please?
Post Reply