Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Spawn script-How to refresh NPC


Kite
 Share

Recommended Posts

So, I am working on a script that spawns a random thing on a map.
But when the npc spawns it does not walk normal,but it warps from place to place.
Here is what I have so far:

```
'Random Battle Level 1
        Case 7
            Dim Dice
            Dice = Rand(1,3)

            If Dice = 1 Then
            Call ScriptSpawnNpc(1, 50, 18, 6, 6)
            Call sendNPC(50, 1)
            End if

            If Dice = 2 Then
            Call ScriptSpawnNpc(1, 50, 18, 6, 6)
            Call ScriptSpawnNpc(2, 50, 18, 7, 7)
            Call sendNPC(50, 1)
            Call sendNPC(50, 2)
            End If

            If Dice = 3 Then
            Call SpawnItemOnMap(50, 18, 6, 1, 5, 0)
            End If

            Exit Sub
```
The only problem, like I said is that the spawn call makes them warp instead of walking.
Thanks for any help you can give.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...