[Help]SummonMonaster

06/22/2011 10:44 thesamuraivega#1
help pliz i no know how summon a monster :S

case "summondragon":
{
int locx = 0;
int locy = 0;
locx = client.Entity.PX;
locy = client.Entity.PY;
Conquer_Online_Server.Game.Map.LoadMonsters Mon = new Conquer_Online_Server.Game.Map.LoadMonsters();
Mon.BoundX = locx;
Mon.BoundY = locy;
Mon.Level = 15;
Mon.MobHP = 60000;
Mon.UID = 500;
Mon.Name = "TeratoDragon";
Mon.Mesh = 950;
Mon.Instance = 0;
break;
}
Pliz Help! :S :confused:
Ty
06/22/2011 10:45 BaussHacker#2
x and y = 0.

That means it has no location at all.
06/22/2011 10:51 thesamuraivega#3
Quote:
Originally Posted by BaussHacker View Post
x and y = 0.

That means it has no location at all.
and what is the sructure? i have fine my structure? hmm

i have problem same here:
Conquer_Online_Server.Game.Map.LoadMonsters Mon = new Conquer_Online_Server.Game.Map.LoadMonsters();
06/22/2011 10:54 -impulse-#4
Quote:
Originally Posted by BaussHacker View Post
x and y = 0.

That means it has no location at all.
Actually if you read a bit more you'd see that x,y take the value of the one calling the command. (#fail)

Anyway BoundX / BoundY is not Location. You have to initializate and set the location on your own. + you have to add the newly created mob into the mob collection with an unique uid. then spawn it to others.
06/22/2011 11:01 thesamuraivega#5
Quote:
Originally Posted by -impulse- View Post
Actually if you read a bit more you'd see that x,y take the value of the one calling the command. (#fail)

Anyway BoundX / BoundY is not Location. You have to initializate and set the location on your own. + you have to add the newly created mob into the mob collection with an unique uid. then spawn it to others.
Actually I just want to summon a monsterspawn for Demon Box quest xD no is for muth monsterspawns xD :confused: xD

case "summondragon":
{
Conquer_Online_Server.Game.Map.LoadMonsters Mon = new Conquer_Online_Server.Game.Map.LoadMonsters();
Mon.BoundX = client.Entity.X;
Mon.BoundY = client.Entity.y;
Mon.Level = 15;
Mon.MobHP = 60000;
Mon.UID = 500;
Mon.Name = "TeratoDragon";
Mon.MaxNpc = 1;
Mon.Mesh = 950;
Mon.Instance = 0;
break;
}
:S ? xD
06/22/2011 11:32 Y u k i#6
now add the monster to the Dictionary and it will spawn.
06/22/2011 20:40 BaussHacker#7
Quote:
Originally Posted by -impulse- View Post
Actually if you read a bit more you'd see that x,y take the value of the one calling the command. (#fail)

Anyway BoundX / BoundY is not Location. You have to initializate and set the location on your own. + you have to add the newly created mob into the mob collection with an unique uid. then spawn it to others.
Well out of this code it would not change at all. I don't use any sources at all nor do I play Conquer. I just assumed it was the spawns, so.