RealmCrafter Wiki
Register
Advertisement

A script posted by cysis on the original RealmCrafter forums (that was originally posted by UUICEO).

Here is a nice little command to help you debug creatures or just to see how they act/react to you. This script will spawn any mob you wish and set them to attack anything close to them (provided you have set their Faction to an appropriate level)..

This should be placed in your Ingame Commands.rsl file:

Function spawnmob()
Player = Actor()
If PlayerIsGM(Player) = 1
   ZoneName$ = ActorZone(Player)
   PlayerX# = ActorX(Player)
   PlayerY# = ActorY(Player)
   PlayerZ# = ActorZ(Player)
   Class$ = Input(Player, "Enter MOB's Class:", ">", 1)
   Race$ = Input(Player, "Enter MOB's Race:", ">", 1)
   ID = Spawn(ActorID(Race$, Class$), ZoneName$, PlayerX# + 25, PlayerY# + 15, PlayerZ# + 5)
   SetActorAIState(ID, 0)
EndIf
End Function
Advertisement