Kite Posted September 11, 2009 Author Share Posted September 11, 2009 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 More sharing options...
Bobosk Posted September 11, 2009 Share Posted September 11, 2009 You don't need to use SendNPC() after ScriptSpawnNpc()Sub NPCMoving(MapNum, MapNpcNum, Direction, Speed)^Use that to make the npc "Move"^ Link to comment Share on other sites More sharing options...
Kite Posted September 11, 2009 Author Share Posted September 11, 2009 So that code under the spawn will make it not warp?I will go test it. Link to comment Share on other sites More sharing options...
Bobosk Posted September 11, 2009 Share Posted September 11, 2009 No, the SendNPC() is what's making it spawn in a different place, and once it dies, if you don't remove it from the map, it'll just keep respawning Link to comment Share on other sites More sharing options...
Kite Posted September 11, 2009 Author Share Posted September 11, 2009 Thanks Bobosk, I will lock this up now. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now