Adding Skills to NPCs

Results 1 to 12 of 12
  1. #1
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Adding Skills to NPCs

    Hey,

    I been trying to add skills to NPCs outside of an instance map.
    Anyone know a workaround to making that happen? Seems that the player has to be connected to the skill upon porting inside of the map but the server refuses to read it if it's not an instance.
    Last edited by BadCoder; 05-04-22 at 04:09 PM.


  2. #2
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    Hey,

    I been trying to add skills to the recharger outside of an instance map.
    Anyone know a workaround to making that happen? Seems that the player has to be connected to the skill upon porting inside of the map but the server refuses to read it if it's not an instance.
    This is because sometimes the skills on the instance are added to the script for each instance.

    ...\data\scripts\system\handlers\instance
    ...\data\scripts\system\handlers\ai\instance
    Last edited by Robyson; 05-04-22 at 03:41 PM.

  3. #3
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by Robson26 View Post
    This is because sometimes the skills on the instance are added to the script for each instance.

    ...\data\scripts\system\handlers\instance
    ...\data\scripts\system\handlers\ai\instance

    Yeh, I understand that but that only applies to instances but how do you implement it outside of instances? Because unless the maps have the instance tags implementing it that way will not work for normal maps. I tried implementing under src instead of data but I haven't had much fortune there.
    Last edited by BadCoder; 05-04-22 at 04:12 PM.

  4. #4
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    Yeh, I understand that but that only applies to instances but how do you implement it outside of instances? Because unless the maps have the instance tags implementing it that way will not work for normal maps. I tried implementing under src instead of data but I haven't had much fortune there.
    I never tried it, but maybe it is possible to add the script in \src\com\aionemu\gameserver\services\player\PlayerEnterWorldService.java
    Last edited by Robyson; 10-04-22 at 07:26 PM.

  5. #5
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by Robson26 View Post
    I never tried it, but maybe it is possible to add the script in \src\com\aionemu\gameserver\services\player\PlayerEnterWorldService.java

    I know where it is, but that's not my original question.
    My question is how do you do that, I have already tried everywhere not just in that file the enterworldservice class. Unless if there is a way to open up the same.instance to everyone? Asmos and elyos

  6. #6
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    I know where it is, but that's not my original question.
    My question is how do you do that, I have already tried everywhere not just in that file the enterworldservice class. Unless if there is a way to open up the same.instance to everyone? Asmos and elyos
    What code are you using and what skill do you want to add?

  7. #7
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by Robson26 View Post
    What code are you using and what skill do you want to add?
    I would rather not share this code publicly so I will send you a private message showing you one of the spots I tried to code it into.

    Edit: you are blocking private msgs.

  8. #8
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    I would rather not share this code publicly so I will send you a private message showing you one of the spots I tried to code it into.
    You don't need to post the code here.
    Then you can say which skill you want to add.

  9. #9
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by Robson26 View Post
    You don't need to post the code here.
    Then you can say which skill you want to add.
    I just want to add skill 19520, to npc 730397. The one that already exists under the npc skills for that npc.

  10. #10
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    I just want to add skill 19520, to npc 730397. The one that already exists under the npc skills for that npc.
    Ok, what is the Aion update you are using?

  11. #11
    Apprentice BadCoder is offline
    MemberRank
    Feb 2022 Join Date
    14Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by Robson26 View Post
    Ok, what is the Aion update you are using?
    Are you referring to the version? Then I am using 4.6

  12. #12
    "One day at a time" Robyson is offline
    [VIP] MemberRank
    Sep 2013 Join Date
    TzionLocation
    1,863Posts

    Re: Adding Skills to NPCs

    Quote Originally Posted by BadCoder View Post
    Are you referring to the version? Then I am using 4.6
    I understand, you want to implement buff skill, correct?
    Maybe it's possible to implement an Ai, in 5.8 it's added but with other skills.

    - - - Updated - - -

    EDIT: The script doesn't work with this skill (19520), i tested it,
    maybe implementing an Ai can solve.



Advertisement