Tessa Posted February 3, 2015 Posted February 3, 2015 That was exactly what I had in mind :) Have you done something about the targeting?
roko91 Posted February 3, 2015 Posted February 3, 2015 (edited) No, I haven't but may play with it later. Meanwhile I would be glad to hear more of what you have in mind :) Edited February 3, 2015 by roko91
Tessa Posted February 4, 2015 Posted February 4, 2015 No, I haven't but may play with it later. Meanwhile I would be glad to hear more of what you have in mind :) I'm thinking about setTarget after the chat window is opened :)
roko91 Posted February 4, 2015 Posted February 4, 2015 (edited) I'm thinking about setTarget after the chat window is opened :) If you talk about how the Tombstone will know who is the dead player I done it like this: you have custom zone in which when player die Tombstone will be spawned (which was Sweets idea). In this zone we override onDieInside() method in which we spawn our custom Npc Instance called L2TombstoneInstance for example. This Npc Instance have private property L2PcInstance _deadPlayer and method called setDeadPlayer(L2PcInstance deadPlayer). After we spawn the Tombstone we simply call it's setDeadPlayer() method and then we do whatever we want with _deadPlayer which will obviously hold the dead player instance :) Edited February 4, 2015 by roko91
Tessa Posted February 4, 2015 Posted February 4, 2015 Oh :lol: I was talking about when you want to resurrect the dead player. The npc's collision is higher and you can't target the player's name... or I'm wrong? ^_^
roko91 Posted February 4, 2015 Posted February 4, 2015 Oh :lol: I was talking about when you want to resurrect the dead player. The npc's collision is higher and you can't target the player's name... or I'm wrong? ^_^ Actually you can - /target Player :P
Tessa Posted February 4, 2015 Posted February 4, 2015 Actually you can - /target Player :P It's an option but what you think about player.setTarget(deadPlayer) where the deadPlayer is associated with it's tombstone? So on double click you will talk to the tombstone but on shift click you will target the dead player. ^_^
Tessa Posted February 4, 2015 Posted February 4, 2015 Hm I think I lost you here :D It will be faster than /target Player :lol: You can talk to the tombstone by the simple double click... but when you want to target player's name, you use shift click on the tombstone. You don't need to use /target Player. :P
roko91 Posted February 4, 2015 Posted February 4, 2015 It will be faster than /target Player :lol: You can talk to the tombstone by the simple double click... but when you want to target player's name, you use shift click on the tombstone. You don't need to use /target Player. :P Nice idea but I though to move the Tombstone spawn behind the dead player like a real Tombstone above a grave. It's not because I'm lazy to code the thing you say but IMO it would be a little bit better this way :)
Tessa Posted February 4, 2015 Posted February 4, 2015 Nice idea but I though to move the Tombstone spawn behind the dead player like a real Tombstone above a grave. It's not because I'm lazy to code the thing you say but IMO it would be a little bit better this way :) Indeed it's a better idea :P
SweeTs Posted February 4, 2015 Posted February 4, 2015 (edited) About the targeting, its party/clan based zone so you know, via party window. The zone is chaotic so if the tombstone disappear immediatelly there is no chance to take the drop. Now if I think about it, there basically is no chance. to steal while mass pvp. Else your pt member who is close to you, lol :D Edited February 4, 2015 by SweeTs
Recommended Posts