Guest User

Untitled

a guest
Jun 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public static bool SpawnNPC(int x, int y, int playerID) {
  2. if (!Main.player[playerID].zoneDungeon && !Main.player[playerID].zoneJungle && !Main.player[playerID].zoneMeteor && Main.player[playerID].position.Y < ((Main.worldSurface * 100.0)))
  3. {
  4. if (Main.player[playerID].position.Y > ((Main.worldSurface * 15.0)) && Main.rand.Next(2)==1) return true;
  5. return false;
  6. }
  7. return false;
  8. }
Add Comment
Please, Sign In to add comment