Page 1 of 1

PvP Teleport

Posted: Sat Jul 17, 2010 1:40 am
by AstroGlide
L2J Revision 4378 :
L2JDP Revision 7625:
I have searched and searched, I could not find it. I don't want players to be able to teleport when they are PvP flagged or have karma, could anyone help or point me to a post that could help. :?:

Re: PvP Teleport

Posted: Sat Jul 17, 2010 5:20 am
by dinor
in gameserver/config/character.properties

Code: Select all

# Karma player can use GateKeeper.# Default: FalseAltKarmaPlayerCanUseGK = FalseĀ # Karma player can use escape and recall skills.# Default: TrueAltKarmaPlayerCanTeleport = True

Re: PvP Teleport

Posted: Sat Jul 17, 2010 5:37 am
by AstroGlide
Sorry I guess I did not specify, but I am using a custom gatekeeper, and that feature does not work with it.

Re: PvP Teleport

Posted: Sat Jul 17, 2010 6:06 am
by dinor
You use the teleport table from database for your teleport locations or another way?
c/p a part of the code for 1 location that your teleporter uses.

Re: PvP Teleport

Posted: Sat Jul 17, 2010 7:16 am
by AstroGlide
How will that help, but here is one.

Code: Select all

Four Sepulchers	50177	178138	-84419	-7211	0	0

Re: PvP Teleport

Posted: Sat Jul 17, 2010 7:49 am
by dinor
I see that you are using the teleport tables from database and not any other strange way, the configs should work.
It doesn't matter that you have a custom npc, since the locations are stored in db it is working.
check your configs again.

I don't if this works only for chaotic players or flaged as well.
if doesn't work with flaged players you need to edit the source.

Re: PvP Teleport

Posted: Sat Jul 17, 2010 4:58 pm
by AstroGlide
Hey, I enabled the option, and on the regular gatekeeper works fine, but my custom, it does not. Do you have a link to another post similar to this? I searched like an hour could not find anything. Also I need players not to be able to teleport mainly in PvP mode, PK is less important, but needed. Thanks :P

Re: PvP Teleport

Posted: Mon Jul 19, 2010 8:40 pm
by AstroGlide
Anyone, anything?Any way to do this without core work?

Re: PvP Teleport

Posted: Mon Jul 19, 2010 10:24 pm
by dinor
for PVP you have to edit core.
for the custom GK, i don't understand why it doesn't work... Try make the htmls similar to normal GK (if they are not). Also make sure that the teleports are from database.

So your htmls should look like this

Code: Select all

<a action="bypass -h npc_%objectId%_goto 200907" msg="811;Field of Silence">Field of Silence - 10000 Adena </a><br1>
and not like this

Code: Select all

<td align=center><button action="bypass -h admin_move_to -20814 -21189 -3030" value="Arena 01" width=100 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td><br1>