Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
NPC/Pet Spawn
|
| Author |
Message |
Anarch Cassius 
Master
 
Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2
![]()
|
RE: NPC/Pet Spawn
Two options functions for you.
This first is a dispel-able summoning. The second makes an existing creature the pet of a player.
Code:
[function summon_pet]
SRC.newnpc=<ARGS>
SRC.act.p=<src.p>
SRC.act.tag.owner=<src.uid>
SRC.ACT.FIX
VAR.SUID=<ACT.UID>
SRC.act.flags=00c000000
SRC.act.newitem=i_memory
SRC.ACT.ACT.COLOR=02
SRC.act.act.cont=<VAR.SUID>
SRC.act.act.link=<SRC.uid>
SRC.act.act.more2=<SRC.uid>
SRC.act.act.timer=-1
SRC.ACT.NEWITEM=i_rune_summon_creature
SRC.ACT.ACT.LAYER=41
SRC.ACT.ACT.TYPE=t_spell
SRC.ACT.ACT.MORE2=1
SRC.ACT.ACT.MOREP=40,816
SRC.ACT.ACT.CONT=<VAR.SUID>
SRC.ACT.ACT.LINK=<SRC.UID>
SRC.ACT.ACT.TIMER=-1
SRC.ACT.ACT.ATTR=attr_decay
// <pet uid>.f_MakePetOf <owner uid>
[function f_MakePetOf]
serv.newitem i_memory
new.color = memory_ipet
new.more1 = 04
new.more2 = <serv.time>
new.morep = <p>
new.link = <args>
new.cont = <uid>
Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
|
|
| 10-10-2012 04:08 AM |
|
|
User(s) browsing this thread: 1 Guest(s)