L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: emilianoify on February 27, 2021, 06:33:27 AM

Title: Q386_StolenDignity HTMLs and .Java
Post by: emilianoify on February 27, 2021, 06:33:27 AM
Hi all guys :),

Q386_StolenDignity some problems with this quest:

1-Dont appear in Quest Window.
2-I cant play bingo.
3-Missing htmls.

So i adapt it from RUSacis to Mobius.

Here u can download HTMLs, .Java (Too you can delete Bingo.Java from ai.others)

**EDIT**

Mobius path and recommendations in my last posts applied.

https://mega.nz/file/WSZSEDLT#0JH-13fXiVrlRzW5wccf6lKMAlEnyXU38L9QZ5fT69U (https://mega.nz/file/WSZSEDLT#0JH-13fXiVrlRzW5wccf6lKMAlEnyXU38L9QZ5fT69U)
Title: Re: Q386_StolenDignity HTMLs and .Java
Post by: Mobius on March 01, 2021, 06:16:18 AM
-[this.] is not needed.

-CHANCES should be static and not be added in constructor.

-How constructor addition for Romp should look like.
Code: [Select]
addStartNpc(ROMP);
addTalkId(ROMP);

-Also created a collection method for addKillId so now you can add directly keyset as a parameter.
Code: [Select]
addKillId(CHANCES.keySet());
-Use equals instead of equalsIgnoreCase.

-Since MathUtil.MATRICE_3X3_LINES is only used by this script just add that constant in the same script.


Patch: https://pastebin.com/qp8mycpY
Title: Re: Q386_StolenDignity HTMLs and .Java
Post by: emilianoify on March 01, 2021, 07:39:17 AM
When i try put "addKillId(CHANCES.keySet());"

I have this error: The method addKillId(int) in the type Quest is not applicable for the arguments (Set<Integer>) https://imgur.com/YcbWgMm (https://imgur.com/YcbWgMm)

the another changes works fine.
Title: Re: Q386_StolenDignity HTMLs and .Java
Post by: Mobius on March 01, 2021, 07:46:22 AM
Quest method is included in patch.
Title: Re: Q386_StolenDignity HTMLs and .Java
Post by: emilianoify on March 01, 2021, 07:54:08 AM
Thank you, sorry i dont see that. :-X

Title: Re: Q386_StolenDignity HTMLs and .Java
Post by: Mobius on March 19, 2021, 01:37:50 AM
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/5cb44514837fba407e3f477e9a1e5eec000622c5
Thanks :D