Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing DISPID of NPC
Author Message
Wap
Journeyman
*

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

UORPG.net

Post: #1
Changing DISPID of NPC
Is in Sphere any way to change dinamically DISPID of monster?
ID / DISPID are not writable, but changing BODY changes BASEID and all parameters of the NPC.

I wanted to make random male / female NPCs without duping the CHARDEF block...
(This post was last modified: 04-29-2013 08:46 AM by Wap.)
04-29-2013 08:43 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: Changing DISPID of NPC
Since I still don't know how ID, BASEID, DISPID works, I made a trap this way. (because I wanted only the graphics, not inherited attributes, types, etc.)

[itemdef i_doom_trap1]
type=t_normal
on=@create
dispid=i_trap_fire_stone_2
attr=attr_can_decay|attr_static

=> try changing dispid in that trigger... { id1 id2 }
(This post was last modified: 05-16-2013 09:36 PM by Alaric.)
05-16-2013 09:33 PM
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: #3
RE: Changing DISPID of NPC
(05-16-2013 09:33 PM)Alaric Wrote:  Since I still don't know how ID, BASEID, DISPID works, I made a trap this way. (because I wanted only the graphics, not inherited attributes, types, etc.)

[itemdef i_doom_trap1]
type=t_normal
on=@create
dispid=i_trap_fire_stone_2
attr=attr_can_decay|attr_static

=> try changing dispid in that trigger... { id1 id2 }
Where I'm talking about the items? For items DISPID is writable, for chars - not.
05-16-2013 10:42 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)