Proof of Concept - A player treated as a NPC (thought to be "impossible")

05/31/2013 04:43 pcs_ffchen#1
Most people would think this is impossible, and although it took us very long to achieve this, it's finally been done.

Good bye normally spawned NPCs, no more ugly just simple-textured NPCs:

Our next major update will be completely replacing all of the NPCs we currently have with these more player-like NPCs.
05/31/2013 04:46 Super Aids#2
Isn't that relative simple to do (simple as in not advanced; not time consuming)? xD I can think of a few ways to achieve this, but even so it's unique and again a very good job from your side. Looking forward to more! :)
05/31/2013 04:51 InfamousNoone#3
Quote:
Originally Posted by Super Aids View Post
Isn't that relative simple to do (simple as in not advanced; not time consuming)? xD I can think of a few ways to achieve this, but even so it's unique and again a very good job from your side. Looking forward to more! :)
It's in no way easy from my experiences because when writing V3 this is something I wanted to do but found no simple way of achieving, give it a shot and try and see what you come up with. Now that I've looked over the implementation there are a few things this video doesn't show such as npcs can be flipped back into mobs (aka attackable).

(@Bauss) I'm assuming your way of doing this was doing the armor/equipment through npcs.ini or whatever that client side file is, and then possibly respawning the "npc" as a monster (with identical gear) if you wanted to toggle between the two?
05/31/2013 04:55 Super Aids#4
Actually rethinking it, the way I though wouldn't work either. At least not "real" xD Uhmm guess I'm out of ideas, but I'd like to give it a try some time :)
05/31/2013 07:54 _DreadNought_#5
Enjoying these.
05/31/2013 11:09 -Shunsui-#6
You are using the Entity Spawn packet for the player/npc right? just one question how are you able to get a reply back from the client when clicking on the guard?
05/31/2013 11:18 LordGragen.#7
yah its a good idea changing all npcs to character type, it can bring the game to more Alive,

it should be fun making them walk around but not to farm just like 1-2 foot per npc it will be wonderful thing.
05/31/2013 14:08 Super Aids#8
Quote:
Originally Posted by -Shunsui- View Post
You are using the Entity Spawn packet for the player/npc right? just one question how are you able to get a reply back from the client when clicking on the guard?
I assume you would need some kind of hooking method to achieve this.
05/31/2013 14:21 InfamousNoone#9
hooking left clicking to do what u want it to do, lol good luck is all I have to say, that's one of the reasons I said it was impossible, I assume the "impossible" part was directed at me
05/31/2013 15:13 Super Aids#10
Yeah, I assume GetMessage() from the Win API is pretty much useless when it comes to this as well.
05/31/2013 18:04 _DreadNought_#11
Ha, I love it.

I've never actually heard of this whole player=npc=player idea, seems interesting enough.

@Infamous
You should know better than saying something is impossible :p

@Bauss
Even though in theory it could work, that's probably one of the most retarded ideas for this so far. :)
05/31/2013 18:17 InfamousNoone#12
well obviously I know it's not impossible, but anyone who took the time to shred through all that asm has way too much time
05/31/2013 18:22 _DreadNought_#13
Quote:
Originally Posted by InfamousNoone View Post
well obviously I know it's not impossible, but anyone who took the time to shred through all that asm has way too much time
I was under the impression this was accomplished without client-side modifications ;o

Hence.. why.. this was so cool.

And while you're messing around in the client, I'd love to see chat colours brought back.
05/31/2013 18:31 InfamousNoone#14
it's not really me doing it, but I can suggest it to them... lol I haven't touched reverse engineering at all, I came home late thursday and just around when I got in was linked to the video before when it was being posted
05/31/2013 18:56 Super Aids#15
Quote:
Originally Posted by _DreadNought_ View Post
Ha, I love it.

I've never actually heard of this whole player=npc=player idea, seems interesting enough.

@Infamous
You should know better than saying something is impossible :p

@Bauss
Even though in theory it could work, that's probably one of the most retarded ideas for this so far. :)
Hence why I said it was useless lmfao