Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BODY and ID
Author Message
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #1
BODY and ID
Why when I change the BODY of a NPC to c_woman/c_man your BASEID/ID change too?
Example:
1)I create a c_man_x
Code:
[CHARDEF c_man_x]
ID=c_man
If I use '.xshow ID' it will return 'c_man_x' (like I want)

2) After I change her body to c_woman and use '.xshow ID' and now returns c_woman (not c_man_x)

So... I can't change the sex/body of a NPC without change the BASEID/ID?
I want to do this because is more useful a FORINSTANCES c_man_x than a FORCHARS 9999

#Sorry for my english :/
(This post was last modified: 05-16-2013 03:52 AM by Staff_Stanic.)
05-16-2013 03:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: BODY and ID
Yes, changing BODY really change BASEID. I know no way to change DISPID of monster dinamically.
http://forum.spherecommunity.net/Thread-...PID-of-NPC
05-16-2013 09:17 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: BODY and ID
what about obody ? if the change is just on body, obody will still hold the original body(and so the id)
(This post was last modified: 05-16-2013 11:40 PM by darksun84.)
05-16-2013 11:40 PM
Find all posts by this user Like Post Quote this message in a reply
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #4
RE: BODY and ID
(05-16-2013 11:40 PM)darksun84 Wrote:  what about obody ? if the change is just on body, obody will still hold the original body(and so the id)

But changing the OBODY the real BODY don't change Confused
If change the BODY, the ID changes too.
(This post was last modified: 05-17-2013 05:47 AM by Staff_Stanic.)
05-17-2013 01:37 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #5
RE: BODY and ID
Body is ID. If you change one, you change the other. The body (or ID if you prefer) defines what animations are possible...
05-17-2013 11:33 AM
Find all posts by this user Like Post Quote this message in a reply
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #6
RE: BODY and ID
(05-17-2013 11:33 AM)RanXerox Wrote:  Body is ID. If you change one, you change the other. The body (or ID if you prefer) defines what animations are possible...

So... isn't possible change the sex of a NPC without change the ID? SadSadSad
(This post was last modified: 05-17-2013 12:01 PM by Staff_Stanic.)
05-17-2013 11:59 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #7
RE: BODY and ID
Correct... the built-in concept of gender is actually a "CAN" flag:

[DEFNAME can_flags]
// monster "can" type flags.
mt_male 00000
mt_nonmover 00000
mt_ghost 00001 // Moves through doors
mt_swim 00002 // Moves on water
mt_walk 00004 // Can walk on land
mt_passwalls 00008 // Walk through walls
mt_fly 00010
mt_fire_immune 00020
mt_indoors 00040 // Can go under roof
mt_hover 00080 // Hovers (can follow gargoyle flight paths)
mt_equip 00100
mt_usehands 00200
mt_mount 00400 // can ride mountables
mt_female 00800
mt_nonhum 01000 // Body type for combat messages
mt_run 02000
mt_nodclicklos 04000 // when dclicking sth., ignore LOS checks
mt_nodclickdist 08000 // when dclicking sth., ignore distance checks

Notice that "male" is a flag of zero (which everything has)... so technically all monsters are male, including the females lol.
05-17-2013 12:48 PM
Find all posts by this user Like Post Quote this message in a reply
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #8
RE: BODY and ID
(05-17-2013 12:48 PM)RanXerox Wrote:  Notice that "male" is a flag of zero (which everything has)... so technically all monsters are male, including the females lol.

Oh shit!
hahauhauahua Lol
Thanks RanXerox!
05-17-2013 02:03 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)