NPC Buffer - Visual effects

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

NPC Buffer - Visual effects

Post by DrGonzo »

Server Revision: 6445
Datapack Revision: 9641


Hi, i am working on my NPC buffer. NPC currently works but i'd like to add some features.

Buffs are chosen one by one, and this is an example:

Code: Select all

ย #Shieldif event == "1":st.takeItems(ADENA_ID, 20000)SkillTable.getInstance().getInfo(1040,2).getEffects(st.getPlayer(),st.getPlayer())###st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1040,2),False,False)return "2.htm"st.setState(COMPLETED)ย 
NPC applies the effects of Might on getPlayer. I'd like to see on getPlayer the visual and sound effect of Might when he takes the buff.

With useMagic method the result is that getPlayer starts casting the Might magic skill on himself, but I don't need this.

I have found this post: viewtopic.php?f=81&t=17987 but it didn't help..
Is it possible to have this feature with Jython? Any help or suggestions?
Thanks all
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: NPC Buffer - Visual effects

Post by Zoey76 »

SkillTable -> SkillData
getInfo -> getSkill

And so on.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

Re: NPC Buffer - Visual effects

Post by DrGonzo »

Thx Zoey, do you mean to use "SkillData.getInstance().getSkill(1040,2).getEffects(st.getPlayer(),st.getPlayer())"? Is that correct?

Code: Select all

#Shieldif event == "1":st.takeItems(ADENA_ID, 20000)SkillTable.getInstance().getInfo(1040,2).getEffects(st.getPlayer(),st.getPlayer())SkillData.getInstance().getSkill(1040,2).getEffects(st.getPlayer(),st.getPlayer())return "2.htm"st.setState(COMPLETED)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: NPC Buffer - Visual effects

Post by Zoey76 »

Yes, there could be more changes, but the basic idea is to check the line of code and see if it changed.

Also change imports, if class names changed.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply