How do I duplicate a Skill?

01/27/2010 21:07 copz1337#1
I want to make 2 skills of the same. The MagicShield skill, I want to have one for GMs/PMs to use (Everyone hits 1 physical damage, so meaning the shield has strong ass defense). And I still want to have the other 1. And I could change the name. How can I do this? I know in console (5165) u can to /skilladder
01/27/2010 21:09 pro4never#2
why make it a skill when you could just have an invincibility status that they could give out?

That being said, there was guides on adding/modifying skills released already (search), you have to hex edit the client files and then modify your source obviously to know about the new skill and control its effects.
01/27/2010 21:20 copz1337#3
Quote:
Originally Posted by pro4never View Post
why make it a skill when you could just have an invincibility status that they could give out?

That being said, there was guides on adding/modifying skills released already (search), you have to hex edit the client files and then modify your source obviously to know about the new skill and control its effects.
why would i need to edit my client? i want it to be EXACTLY the same as MagicShield but with as much defense as possible. Same looks why would I need to edit it..
01/27/2010 21:21 Jedex#4
good job pro4never, you helped me alot
01/27/2010 21:58 copz1337#5
Quote:
Originally Posted by Jedex View Post
good job pro4never, you helped me alot
?? no he didn't. go away decker.
01/27/2010 22:10 ~Yuki~#6
u cant duplicate skills.
pro4neva is right.
01/27/2010 22:43 Arcо#7
You can make a command that is something like
/def
gc.mychar.def == 65355

Hope that helps.
01/27/2010 22:44 Jedex#8
No Arco, it didn't help.
01/28/2010 01:17 pro4never#9
You would have to client edit because to 'duplicate' a skill you are saying you want to create a NEW skill just like it. Therefor you would have to edit client for it to have your new skill (GmShield or w/e you wanna call it). Regardless of if the effects are the same or not, the source and client needs to have the skill have a different id number or else it has no way to tell the two apparts.

If you just want something like if a gm uses the skill it has more effect you could code that into the skill (something along the lines of if attacker.status.GM then boost defense by 999999 else do normal stat boosting) if you did it that way then you would have no reason to create a second skill but you would loose the normal functionality of it in the source. Personally I'd just add one of the existing non-implemented skills into the source to do whatever I wanted it to.
01/28/2010 01:26 -Shunsui-#10
Cant you just make a if state ment for the skill checking who is using it if a GM or PM is using it make it hit harder? then the else state ment wich will be normal players using it make it hit normal
01/28/2010 05:47 copz1337#11
ok i know there are other ways like gm robe and stuff but i like using magicshield instead
01/28/2010 13:11 ~Yuki~#12
Quote:
Originally Posted by -Shunsui- View Post
Cant you just make a if state ment for the skill checking who is using it if a GM or PM is using it make it hit harder? then the else state ment wich will be normal players using it make it hit normal
this.
01/28/2010 21:43 pro4never#13
Yes... not like I already suggested that but w/e xD

Kidding, not a big deal. If you don't wanna get into client modification to create a clone of the skill, that will be the easiest way to do it.