Scroll of escape

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
trantadoros33
Posts: 8
Joined: Wed Aug 22, 2007 1:13 pm

Scroll of escape

Post by trantadoros33 »

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!
User avatar
RiZe
Posts: 122
Joined: Mon Mar 24, 2008 12:44 am
Location: Czech Republic
Contact:

Re: Scroll of escape

Post by RiZe »

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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Scroll of escape

Post by janiii »

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!
trantadoros33
Posts: 8
Joined: Wed Aug 22, 2007 1:13 pm

Re: Scroll of escape

Post by trantadoros33 »

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.
You probably speak for another pack .. it doesnt have scrollofescape.java in itemhandlers ...
janiii wrote:make a return statement after the teleport code, so that the code under it doesn't get called.
I added one , but now it teleports me without consuming the soe's and doesnt even show the animation that it uses the soe.

Still searching.
kerberos_20
L2j Veteran
L2j Veteran
Posts: 1011
Joined: Thu Apr 19, 2007 3:05 am
Location: czech republic

Re: Scroll of escape

Post by kerberos_20 »

teleport coords are handled from handlers/skillhandlers/recall.java
place your stuffs inside
if (skill.getSkillType() == L2SkillType.TELEPORT)
{
.........
.........
}
Image
trantadoros33
Posts: 8
Joined: Wed Aug 22, 2007 1:13 pm

Re: Scroll of escape

Post by trantadoros33 »

kerberos_20 wrote:teleport coords are handled from handlers/skillhandlers/recall.java
place your stuffs inside
if (skill.getSkillType() == L2SkillType.TELEPORT)
{
.........
.........
}

true , worked.
Post Reply