|
You last visited: Today at 13:45
Advertisement
Entity call an NPC Dialog
Discussion on Entity call an NPC Dialog within the CO2 Private Server forum part of the Conquer Online 2 category.
07/15/2014, 00:15
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Entity call an NPC Dialog
Hello fellas,
Would like to know if someone know a way to make an Entity like a guard (for instance) calls a dialog...
I think a simple solution is trigger an action when the entity get clicked (I think there's no packet sent when an entity is clicked), but I'm wondering to know how to do that...
Any idea?
Thanks for the help...
|
|
|
07/15/2014, 02:24
|
#2
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
i think u had to edit the client and make it be invoked
ConquerPS project have done it.
|
|
|
07/15/2014, 02:57
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by abdoumatrix
i think u had to edit the client and make it be invoked
ConquerPS project have done it.
|
Are you sure this is the way they've did it?
|
|
|
07/15/2014, 03:37
|
#4
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
I believe you need to hook the client as abdou said.
Some other members may have other ideas, but the only other thing I can think of is to have some sort of event trigger which then sends the npc dialog packet.
When you kill a mob for example.
|
|
|
07/15/2014, 04:09
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by Aceking
I believe you need to hook the client as abdou said.
Some other members may have other ideas, but the only other thing I can think of is to have some sort of event trigger which then sends the npc dialog packet.
When you kill a mob for example.
|
I thinked about it, but i need do call a dialog when it's already dead or alive, i even considerated the possibility to do it with an attack packet but no success...
PS: I am not sure they did hooked the client I'm studying client files...
|
|
|
07/15/2014, 05:29
|
#6
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
You could just copy the model you want into the NPC model folder, and create an entry in npc.ini that uses that model. It won't work well for player entities, since they'll be naked and all, but it would be a decent solution to your problem.
|
|
|
07/15/2014, 06:26
|
#7
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by Spirited
You could just copy the model you want into the NPC model folder, and create an entry in npc.ini that uses that model. It won't work well for player entities, since they'll be naked and all, but it would be a decent solution to your problem.
|
The problem is that i don't want to make a static npc, but I would like to move it like a player running through a pre-setted way...
And NPCs doesn't do the walk/run movement.
|
|
|
07/15/2014, 06:39
|
#8
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by hyperco
The problem is that i don't want to make a static npc, but I would like to move it like a player running through a pre-setted way...
And NPCs doesn't do the walk/run movement.
|
You can do it the Blizzard way... despawn the npc and spawn an entity in its place to make movements and other actions... then spawn the npc back in and despawn the entity. I would look in my source to see if there were any NPC flags that would have a similar effect, but with it not being set up currently while I program my new source, I can't really do that. I don't think there's anything of that effect.
|
|
|
07/15/2014, 06:48
|
#9
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by Spirited
You can do it the Blizzard way... despawn the npc and spawn an entity in its place to make movements and other actions... then spawn the npc back in and despawn the entity.
|
Good idea. The other way I've found was to spawn an invisible npc that moves together with entity. I will test both. Thanks btw...
|
|
|
07/15/2014, 15:38
|
#10
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
Quote:
Originally Posted by hyperco
The problem is that i don't want to make a static npc, but I would like to move it like a player running through a pre-setted way...
And NPCs doesn't do the walk/run movement.
|
Npc can walk and jump but they it floating way not like the players
i think u could study thier Hook.dll it sure have all what u want
Quote:
Originally Posted by Spirited
You can do it the Blizzard way... despawn the npc and spawn an entity in its place to make movements and other actions... then spawn the npc back in and despawn the entity. I would look in my source to see if there were any NPC flags that would have a similar effect, but with it not being set up currently while I program my new source, I can't really do that. I don't think there's anything of that effect.
|
successed with me in making the statue system but with normal npc failed
as the client wont respond on clicking on them.
|
|
|
07/16/2014, 01:42
|
#11
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by abdoumatrix
Npc can walk and jump but they it floating way not like the players
i think u could study thier Hook.dll it sure have all what u want 
|
That's why I opted to make an invisible NPC , the entity will move and the NPC will be wherever entity is...
I will study the hook and the method they do for sure.
Quote:
Originally Posted by abdoumatrix
Npc can walk and jump but they it floating way not like the players
i think u could study thier Hook.dll it sure have all what u want 
|
That's why I opted to make an invisible NPC , the entity will move and the NPC will be wherever entity is...
I will study the hook and the method they do for sure.
|
|
|
07/16/2014, 01:54
|
#12
|
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
|
here is what i think
if you are good enough to RE conquer ps hook.dll (which i don't think it would be there, will tell you why in a sec) then you should be good enough to go the strres (i think it stands for string resources) from the client, there is 2 strings that should get you pretty close to that which goes something like "hold ctrl to attack guard", "you can't pk in this mode" and some other one i dun remember
that should get you really close enough to the routine where it checks if it's entity or npc to proceed check for pk/ctrl or to send chat packet
then an inline patch would just do the trick to check for different range for entities to proceed chat packet to them too
which is why i think a simple inline patch should be more appropriate vs doing it with loader, that's why i think you may not find this one at there loader
but the idea to spawn a mesh less npc every time an entity move is just too stupid and expensive (unless you have a very fancy vps hosting, but it will still be stupid imo)
|
|
|
07/16/2014, 02:44
|
#13
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by OverKillasdwqe
here is what i think
if you are good enough to RE conquer ps hook.dll (which i don't think it would be there, will tell you why in a sec) then you should be good enough to go the strres (i think it stands for string resources) from the client, there is 2 strings that should get you pretty close to that which goes something like "hold ctrl to attack guard", "you can't pk in this mode" and some other one i dun remember
that should get you really close enough to the routine where it checks if it's entity or npc to proceed check for pk/ctrl or to send chat packet
then an inline patch would just do the trick to check for different range for entities to proceed chat packet to them too
which is why i think a simple inline patch should be more appropriate vs doing it with loader, that's why i think you may not find this one at there loader
but the idea to spawn a mesh less npc every time an entity move is just too stupid and expensive (unless you have a very fancy vps hosting, but it will still be stupid imo)
|
To be honest i don't know the difference it will cause by choosing edit the Conquer.exe (or the dll where it is) or hooking the client. The result may be the same...
About that idea, it will be always the same NPC, the spawn will only change it's location, and to do it will always be only one packet that changes it's spawn location... Think it will not overload the server. I'm testing it right now...
|
|
|
07/16/2014, 03:19
|
#14
|
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
|
Quote:
Originally Posted by hyperco
To be honest i don't know the difference it will cause by choosing edit the Conquer.exe (or the dll where it is) or hooking the client. The result may be the same...
About that idea, it will be always the same NPC, the spawn will only change it's location, and to do it will always be only one packet that changes it's spawn location... Think it will not overload the server. I'm testing it right now...
|
about the idea, you are testing it on one npc and entity, not on 100
so yeah you will be generating double the packets you need, im not saying it's fatal but with stacking stuff like this every once in a while you will end up with something like messi sources
also what if user clicked before/after the npc moves on the entity ?
and i for one won't hook something that i could simple achieve with an inline assembly as ill only do it once (instead of every time the client loads) to avoid hooking problems , searching for patterns also would be not as easy to leech, it's just not worthy imo
|
|
|
07/16/2014, 04:07
|
#15
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
Quote:
Originally Posted by OverKillasdwqe
about the idea, you are testing it on one npc and entity, not on 100
so yeah you will be generating double the packets you need, im not saying it's fatal but with stacking stuff like this every once in a while you will end up with something like messi sources
also what if user clicked before/after the npc moves on the entity ?
|
The entity contains a Dead flag so you cant click it, so it will do nothing when you dont click the npc...
Quote:
Originally Posted by OverKillasdwqe
and i for one won't hook something that i could simple achieve with an inline assembly as ill only do it once (instead of every time the client loads) to avoid hooking problems , searching for patterns also would be not as easy to leech, it's just not worthy imo
|
That is sad, cuz I fail to crack it, or even to hooking thats why I'll try to study the ConquerPS Method.
|
|
|
 |
|
Similar Threads
|
How to get Target Entity's Name?
03/16/2013 - Aion - 4 Replies
So I was playing with CE yesterday, I found most basic addresses but im having trouble finding the Target's Name. I think i found the Target's x,y,z coordinates, HP and (buff bar?) but i cant seem to find the Target's name.
can someone point me in the right direction?
Found it!
P-> ( Game.dll+B45EA4 ) -> 254 ->3A
|
Was ist eine 16 bit entity ?
07/31/2011 - Minecraft - 1 Replies
Hallo
Ich habe einen kleinen Bukkit Server. Nun wollte ich aber einnen Tiermod installieren ,dass es z.B Haie etc. gibt , da es kein Plugin gibt. Auf der Seite von dem Mod steht :
Q.: Does this work for SMP?
A.: Using itemcraft, you can play this mod for multiplayer
Also muss ich ItemCraft Instalieren. Nun habe ich nur die Snapshot 0.0.1 , start.bat und den ItemCraft.jar in einen Ordner gezogen und die META-INF gelöscht. Mir wurde gesagt ,dass ich noch die 16 bit entyty hinzufügen...
|
how can i call this dialog!!
06/16/2011 - CO2 Private Server - 6 Replies
http://am.img1001.com/uu_1106_3/newzf_4_1_06af106a 8729c94.png
It need send any packet??
how can get the packet??
|
Entity Movement
06/15/2011 - CO2 Programming - 6 Replies
These are the results from a quick sniffing session:
; west (x--, y++)
18 00 15 27 71 00 00 00 XX XX XX XX 01 00 00 00 DF 8D 47 04 00 00 00 00
; north west (x--)
18 00 15 27 22 00 00 00 XX XX XX XX 01 00 00 00 D5 01 48 04 00 00 00 00
; north (x--, y--)
18 00 15 27 03 00 00 00 XX XX XX XX 01 00 00 00 ED A6 48 04 00 00 00 00
|
Differing Entity ID's
02/25/2011 - CO2 Programming - 13 Replies
I just came to realize that the entity ID in spawn packets and the target ID in action packet.
I am not sure if the ID decode has outdated or what; i qouted prog4never's code for decoding coordinates and targetID
|
All times are GMT +1. The time now is 13:46.
|
|