Skills handling... Coding.

12/05/2014 00:41 killermale123#1
Like on Golem or nightdevil and other transform skills. How do u stop skills from activating? Let say ur on Golem, how do u stop rage from proc and fb/ss aswell. Where do u find this code or add the code? Don't have skillshandler.cs. Only got Skills, skilladder and packethandling.
12/05/2014 00:55 x[t]c#2
Quote:
Originally Posted by killermale123 View Post
Like on Golem or nightdevil and other transform skills. How do u stop skills from activating? Let say ur on Golem, how do u stop rage from proc and fb/ss aswell. Where do u find this code or add the code? Don't have skillshandler.cs. Only got Skills, skilladder and packethandling.
Are you wanting to stop them from using skills period, or wanting to stop them in mid action? Confused sorry. Also what source are you using?
12/05/2014 01:06 pro4never#3
Quote:
Originally Posted by x[t]c View Post
Are you wanting to stop them from using skills period, or wanting to stop them in mid action? Confused sorry. Also what source are you using?
When in a disguise you should not be able to cast skills.

Just block casting of skills when in a transformation.. pretty simple stuff.
12/05/2014 01:13 x[t]c#4
Quote:
Originally Posted by pro4never View Post
When in a disguise you should not be able to cast skills.

Just block casting of skills when in a transformation.. pretty simple stuff.
Ahhhh I see now, thanks xP

Where ever your server is handling attacks (v5017 its packet ID 1022, idk about yours), just put something to check if your player has a transformation buff o.o. Idk how your source is setup, but it should look something like:

Code:
if (Player.Buffs.Contains(Enums.StatusEffectType.Transform))
     return;
12/05/2014 02:28 killermale123#5
Yea.. the source and coding its fine.. it happens to be in the oldoob folder. Where I store my player infos is having problem. Because I used a test server to test it, everything is fine, but the host has this problem... so it has to be the user folder.
12/05/2014 02:36 x[t]c#6
Quote:
Originally Posted by killermale123 View Post
Yea.. the source and coding its fine.. it happens to be in the oldoob folder. Where I store my player infos is having problem. Because I used a test server to test it, everything is fine, but the host has this problem... so it has to be the user folder.
my solution would fix the problem, and is the proper way of doing it. Idk why on earth anything in the database would do it unless it was something in the skill details, but even then my solution would still fix it.
12/05/2014 02:37 killermale123#7
Ok.. it happens to be the right hand weapon slot causing it. If I wear a single weap it wont affect it.'

if (GC.MyChar.Transformed)
{
if (SkillId == 1046 && SkillId == 1047 && SkillId == 1045 && SkillId == 1049)
{
GC.LocalMessage(2005, "You Can't use that skill while transformed!");
return;

AND

if (WepSkill && Transformed == false)

So how do I add it as 2 1 hander as false also? As of now this code only works for 1 hander. If I wear 2 1 hander, it will allow me to fb/ss
12/05/2014 09:09 donn#8
This code might be called from the right weapon attack method. You need to copy it where the left weapon attack is handled too.