slavergigi Posted January 27, 2021 Posted January 27, 2021 Hi guys, Can an item in the bag can target the player when open the htm?
0 Lovedrunk Posted January 28, 2021 Posted January 28, 2021 Can you explain what you want to do with it?
0 slavergigi Posted January 28, 2021 Author Posted January 28, 2021 2 hours ago, Lovedrunk said: Can you explain what you want to do with it? I need connect the ai into a item with htm, but I realize it just the l2server get an error and it is invalid talkertarget 3 hours ago, Lovedrunk said: Can you explain what you want to do with it? Sorry for my bad English. I would like to do the wyvern for the players since the wyvern is only for the lords of the castles, I put an object directly connected with an htm previously connected to an npc, but when I open the object with this htm it tells me that the target is 'invalid on l2server. i know that this htm is linked to ai.obj and therefore a target is needed.
0 Blitzkrieg Posted January 28, 2021 Posted January 28, 2021 Riding the wyvern is done through AI. Copy janitor.nasc for example, create your own npc, remove checks and utilize RideWyvern function. If you want to do it via an item, a cool way is to make the item summon an invisible npc, and then that npc, on creation or on a timer, executes the code I described above on its summoner. They should work, but I haven't tried any of these.
0 slavergigi Posted January 28, 2021 Author Posted January 28, 2021 51 minutes ago, Blitzkrieg said: Riding the wyvern is done through AI. Copy janitor.nasc for example, create your own npc, remove checks and utilize RideWyvern function. If you want to do it via an item, a cool way is to make the item summon an invisible npc, and then that npc, on creation or on a timer, executes the code I described above on its summoner. They should work, but I haven't tried any of these. That's a great idea but only a thing, how can I make the invisible npc? And how the player can talk with this invisible npc?
0 Blitzkrieg Posted January 29, 2021 Posted January 29, 2021 22 hours ago, slavergigi said: That's a great idea but only a thing, how can I make the invisible npc? And how the player can talk with this invisible npc? You can make an "invisible npc" by using a dummy npc (without mesh) from the client. The code will be executed on creation or on a timer, there is no need to talk to the npc.
0 Vision Posted February 6, 2021 Posted February 6, 2021 @slavergigi Let us know if your problem still remains.
0 Vision Posted February 8, 2021 Posted February 8, 2021 2 hours ago, slavergigi said: I have solved with a funcall thx Alright I'm happy you solved it.
Question
slavergigi
Hi guys,
Can an item in the bag can target the player when open the htm?
8 answers to this question
Recommended Posts