PenUltima Online

It is currently Thu Aug 21, 2008 11:24 pm

All times are UTC - 4 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Death and Corpses
PostPosted: Wed Jun 18, 2008 5:14 pm 
Offline
Distro Developer
User avatar

Joined: Fri Feb 10, 2006 12:08 pm
Posts: 306
Location: Myrtle Beach, South Carolina
Well, I'm trying to rewrite how players die(more or less just giving myself more control over what happens to players gear and for pvp games, etc.).

Only problem I've had so far is trying to figure out why when I create a corpse from script, clients crash, but when POL does it everything is as normal. Anyone know what I have to do to create a corpse just like POL does?

Hopefully it doesn't involve;
corpsetype
ownerserial

Seeing as those are r/o....


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 9:59 pm 
Offline
User avatar

Joined: Fri Feb 10, 2006 4:15 am
Posts: 203
What are you trying to achieve?

I ask because corpses are very hardcoded both in the client and in the core.

Some time ago I played with the idea of totally script controlled corpses, too, and if my memory serves me well, (one) the problems was that the client expects server to send both object info ("there's a human corpse!") and items on it ("he's wearing a robe."). Without hooking the object info packet (, modifying it) and sending the latter packet right before, the client would crash; only creating a corpse item would 'cause nothing but stripped object info ("there's a corpse!"), which is not enough for client.

Though I'm not one hundred percent sure, for it's been a while, but if you take a look on the packet flow of core handled corpse you'll see it yourself.

Attributes corpsetype and ownerserial should not be a problem if you manage to handle corpses so that core does nothing with them. In which case you can convert those infos with cprops or other ways you might want. That would require packet hooking.

Of course I cannot guarantee that it would even be doable in the end, 'cause I never did this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: tiko and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl