Jump to content
×
×
  • Create New...
  • 0

SpawnMob method Z Coord not see


kaJaMrSimple

Question

I specify the z coordinate as 2, it reacts as if the coordinate is random.

my code;

 

    CHARACTER_MANAGER::instance().SpawnMob(20387, GetMapIndex(), 135 * 100 + 32000, 104  * 100 + 0, 2, false, -1, true);

 

I want to set the direction of mob.

 

What should I do?

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0
  • Premium
1 hour ago, kaJaMrSimple said:

I specify the z coordinate as 2, it reacts as if the coordinate is random.

 

I want to set the direction of mob.

 

What should I do?

Z coordinate is not the direction the mob is facing..

 

either use

d.spawn_mob_ac_dir

(vnum, x, y, dir [0..359])

(if you input -1 instead of a number between 0 and 359, it will choose a random dir between 0 and 359)

or

d.spawn_mob_dir

(vnum, x, y, dir [1..8] {(direction - 1) * 45})

(if you input 0 instead of a number between 1 and 9, it will choose a random dir between 1 and 8 )

Edited by Syreldar

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • 0
4 minutes ago, Syreldar said:

Z coordinate is not the direction the mob is facing..

 

either use

d.spawn_mob_ac_dir

(vnum, x, y, dir [0..359])

or

d.spawn_mob_dir

(vnum, x, y, dir [0..9] {(direction - 1) * 45})

The system I made is completely source-based. I don't want to use quest.

Link to comment
Share on other sites

  • 0
  • Premium
Just now, kaJaMrSimple said:

The system I made is completely source-based. I don't want to use quest.

Use your brain based on what I told you, then. duh. Said functions are inside the sources, look them up.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

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


  • Activity

    1. 0

      Looking for Someone to create the queries etc for armors and weapons

    2. 13

      Official Private Shop Search

    3. 944

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 79

      GUI Teleport System

    5. 0

      inventory slot marking system cant compile

    6. 8

      Inventory Bug

    7. 63

      Metin2 Dev - Changelogs

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.