Page 2 of 3
Re: kill NPC
Posted: Sat Oct 23, 2010 11:37 am
by Edelvez
Hitokiri wrote:kain13 wrote:Edelvez wrote:I understood that... What he meant is that an ordinary player, with access level 0, can kill an NPC L2Gatekeeper type shock and a type L2Npc, can hit but not killed.
Well understood??

yes, one people with working brain.
normal character = 0 access, Admin = 127.
normal character can kill with weapon (30080,30080,'Clarissa',0,'Gatekeeper',...,'
L2Teleporter',...) but can't (30990,30990,'Lottery Ticket Seller',...,'
L2Npc)
Admin can kill with comand //kill (30080,30080,'Clarissa',0,'Gatekeeper',...,'
L2Teleporter',...) but can't (30990,30990,'Lottery Ticket Seller',...,'
L2Npc)
What you can't understand?
`isUndead` tinyint(1) NOT NULL DEFAULT '0', so in your npc. sql should be
Code: Select all
(30080,30080,'Clarissa',0,'Gatekeeper',0,'LineageNPC.a_teleporter_FHuman',8.00,25.00,70,'female','L2Teleporter',40,2444,1225,0.00,0.00,40,43,30,21,20,20,0,0,1086,471,749,313,230,0,333,0,0,0,0,45,109,1,0,1),
So last 3 numbers shold be 1,0,1 not 0,0,1
You are mistaken my dear Watson ... I was testing with other rev, and Clarissa can only kill the other hand are invunerable.
Re: kill NPC
Posted: Sat Oct 23, 2010 12:55 pm
by janiii
because L2NpcInstance has FolkStatus, which does nothing in reduceHp method and L2TeleporterInstance has NpcStatus, which makes the damage to the npc and it dies.
but i dont understand how you want to kill a npc, if you have in config that npc cannot be attacked and if you try to do it with normal player - he cannot attack the npc, so he cannot kill it.
Re: kill NPC
Posted: Sat Oct 23, 2010 1:09 pm
by Hitokiri
# Defines whether NPCs are attackable by default
# Retail: True
AltAttackableNpcs = False
Re: kill NPC
Posted: Sat Oct 23, 2010 2:02 pm
by jurchiks
that's only attackable, not killable...
npcs can't be killed since c5 in l2j.
Re: kill NPC
Posted: Sat Oct 23, 2010 2:32 pm
by janiii
it is possible..
after gm uses the command //kill, then players can kill the teleporter by themselfs. but without the initial killing by gm, i could not reproduce this bug.
here a fix for when gm kills a npc, that it is not vulnerable after it.
Code: Select all
Index: data/scripts/handlers/admincommandhandlers/AdminKill.java===================================================================--- data/scripts/handlers/admincommandhandlers/AdminKill.java (revision 5698)+++ data/scripts/handlers/admincommandhandlers/AdminKill.java (working copy)@@ -134,8 +129,19 @@ target.reduceCurrentHp(target.getMaxHp() * Config.L2JMOD_CHAMPION_HP + 1, activeChar, null); else {- if(target.isInvul()) target.setIsInvul(false);+ boolean targetIsInvul = false;+ if (target.isInvul())+ {+ targetIsInvul = true;+ target.setIsInvul(false);+ }+ target.reduceCurrentHp(target.getMaxHp() + 1, activeChar, null);+ + if (targetIsInvul)+ {+ target.setIsInvul(true);+ } } if (Config.DEBUG) _log.fine("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ")" + " killed character " + target.getObjectId());
// code fixed in next release
or you can also set the L2TeleporterInstance to extend not L2Npc but L2NpcInstance.
Re: kill NPC
Posted: Sat Oct 23, 2010 4:42 pm
by Szponiasty
Hitokiri wrote:kain13 wrote:Edelvez wrote:I understood that... What he meant is that an ordinary player, with access level 0, can kill an NPC L2Gatekeeper type shock and a type L2Npc, can hit but not killed.
Well understood??

yes, one people with working brain.
normal character = 0 access, Admin = 127.
normal character can kill with weapon (30080,30080,'Clarissa',0,'Gatekeeper',...,'
L2Teleporter',...) but can't (30990,30990,'Lottery Ticket Seller',...,'
L2Npc)
Admin can kill with comand //kill (30080,30080,'Clarissa',0,'Gatekeeper',...,'
L2Teleporter',...) but can't (30990,30990,'Lottery Ticket Seller',...,'
L2Npc)
What you can't understand?
`isUndead` tinyint(1) NOT NULL DEFAULT '0', so in your npc. sql should be
Code: Select all
(30080,30080,'Clarissa',0,'Gatekeeper',0,'LineageNPC.a_teleporter_FHuman',8.00,25.00,70,'female','L2Teleporter',40,2444,1225,0.00,0.00,40,43,30,21,20,20,0,0,1086,471,749,313,230,0,333,0,0,0,0,45,109,1,0,1),
So last 3 numbers shold be 1,0,1 not 0,0,1
Whaa? No. isUndead is only to set if its possible or not to use holy skills on them. Nothing to do with killing NPCs.
Re: kill NPC
Posted: Sat Oct 23, 2010 5:09 pm
by Edelvez
The most unusual that you can only kill Clarissa with a non-gm. Gatekeeper others are not affected...

Re: kill NPC
Posted: Sat Oct 23, 2010 6:29 pm
by jurchiks
Szponiasty wrote:
Whaa? No. isUndead is only to set if its possible or not to use holy skills on them. Nothing to do with killing NPCs.
isUndead was removed in the last changeset...
Re: kill NPC
Posted: Sat Oct 23, 2010 7:05 pm
by _DS_
Edelvez wrote:The most unusual that you can only kill Clarissa with a non-gm. Gatekeeper others are not affected...

You cam kill npc with non-gm ONLY if you previously killed this npc by gm (and remove invulnerability during it). Next spawned npc will be mortal.
Re: kill NPC
Posted: Sun Oct 24, 2010 10:35 am
by Edelvez
Well, I did not

Re: kill NPC
Posted: Sun Oct 24, 2010 11:28 am
by kain13
_DS_ wrote:
You cam kill npc with non-gm ONLY if you previously killed this npc by gm (and remove invulnerability during it). Next spawned npc will be mortal.
This is not true. I install clear server without custom, create character, go to game and I can kill GK.
Way some one from devs, can't just install
clear server, from nightly,
and test.
Re: kill NPC
Posted: Sun Oct 24, 2010 11:32 am
by janiii
i have clean server just for testing and like i already wrote (but nobody seems to read my posts actually) i could not reproduce this bug. only when i killed the gk with a gm, after that i could kill the gk with a normal player. before it i could not. for this i already posted a patch here.
Re: kill NPC
Posted: Sun Oct 24, 2010 11:41 am
by kain13
janiii wrote:i have clean server just for testing and like i already wrote (but nobody seems to read my posts actually) i could not reproduce this bug. only when i killed the gk with a gm, after that i could kill the gk with a normal player. before it i could not. for this i already posted a patch here.
sorry don't understand, you test with this
http://www.l2jserver.com/nightly/ Server Version=4422 Datapack Version=7669 or with your patch?
Re: kill NPC
Posted: Sun Oct 24, 2010 11:47 am
by janiii
i tested with dev version, which should not be much different in this way from the nightly build. i created the fix after testing your bug. just read my posts again. anybody else can test your bug on a nightly version, ppl already wrote they cannot reproduce it either.
Re: kill NPC
Posted: Sun Oct 24, 2010 6:26 pm
by Hitokiri
Tonight i downloaded the last compiled version of server and tryed to kill Clarissa with admin char first with weapon and nothing happened
The system say
The atack has been blocked.
Than i tried to use //kill command and after she died and respawned i tried to use weapon one more time
System says.
Admin has given Clarissa damage off 889
So i restarted the server and after restart all became normal The atack has been blocked.
Conclusion
There is no such bug as u can kill GK without GM rights only if Admin or GM used command //kill on her.
Do not use //kill on Clarissa only //delete
