Hi guys , i am trying to change the scroll of escape cords when a noble uses it
so what i do it go at useitem.java and in runimpl()
i add this :
if (activeChar.isNoble())
{
activeChar.teleToLocation(x,z,y);
}
when a player now users any kind of scroll he got teleporter to the arena , but the animation is still running and when it finish he will teleported back to the nearest town ...
any help would be appreciated!
Scroll of escape
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- RiZe
- Posts: 122
- Joined: Mon Mar 24, 2008 12:44 am
- Location: Czech Republic
- Contact:
Re: Scroll of escape
Look at the end of useItem method in Datapack (data/scripts/handlers/itemhandlers/ScrollOfEscape.java). There is starting SOE animation and is scheduled EscapeFinalizer which provides the teleport to nearest town.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Scroll of escape
make a return statement after the teleport code, so that the code under it doesn't get called.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 8
- Joined: Wed Aug 22, 2007 1:13 pm
Re: Scroll of escape
You probably speak for another pack .. it doesnt have scrollofescape.java in itemhandlers ...RiZe wrote:Look at the end of useItem method in Datapack (data/scripts/handlers/itemhandlers/ScrollOfEscape.java). There is starting SOE animation and is scheduled EscapeFinalizer which provides the teleport to nearest town.
I added one , but now it teleports me without consuming the soe's and doesnt even show the animation that it uses the soe.janiii wrote:make a return statement after the teleport code, so that the code under it doesn't get called.
Still searching.
-
- L2j Veteran
- Posts: 1011
- Joined: Thu Apr 19, 2007 3:05 am
- Location: czech republic
Re: Scroll of escape
teleport coords are handled from handlers/skillhandlers/recall.java
place your stuffs inside
if (skill.getSkillType() == L2SkillType.TELEPORT)
{
.........
.........
}
place your stuffs inside
if (skill.getSkillType() == L2SkillType.TELEPORT)
{
.........
.........
}
-
- Posts: 8
- Joined: Wed Aug 22, 2007 1:13 pm
Re: Scroll of escape
kerberos_20 wrote:teleport coords are handled from handlers/skillhandlers/recall.java
place your stuffs inside
if (skill.getSkillType() == L2SkillType.TELEPORT)
{
.........
.........
}
true , worked.