Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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
Re: Adding Skills to NPCs
Quote:
Originally Posted by
Robson26
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.
Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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
Re: Adding Skills to NPCs
Quote:
Originally Posted by
Robson26
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
Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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?
Re: Adding Skills to NPCs
Quote:
Originally Posted by
Robson26
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.
Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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.
Re: Adding Skills to NPCs
Quote:
Originally Posted by
Robson26
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.
Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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?
Re: Adding Skills to NPCs
Quote:
Originally Posted by
Robson26
Ok, what is the Aion update you are using?
Are you referring to the version? Then I am using 4.6
Re: Adding Skills to NPCs
Quote:
Originally Posted by
BadCoder
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.