|
You last visited: Today at 23:48
Advertisement
spawn command?
Discussion on spawn command? within the CO2 Private Server forum part of the Conquer Online 2 category.
09/01/2008, 03:56
|
#1
|
elite*gold: 0
Join Date: Aug 2007
Posts: 59
Received Thanks: 0
|
spawn command?
In the LOFT source and shadow source how does the spawn command work, can someone give me an example so they dont come out invincible
|
|
|
09/01/2008, 16:19
|
#2
|
elite*gold: 0
Join Date: Aug 2008
Posts: 30
Received Thanks: 85
|
go to ur database
then to the monsters
and choose a id that is used for a mod
then use the command + that id
now u have a mod that every1 can see
*note there are some ids that won't work
press the thanks button if it helped u
|
|
|
09/04/2008, 02:12
|
#3
|
elite*gold: 0
Join Date: Aug 2007
Posts: 59
Received Thanks: 0
|
thanks a lot, it works but they are still invincible any idea about that?
|
|
|
09/04/2008, 06:59
|
#4
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Quote:
Search for example ; /recall,then it gets you to the command area. After /recall command,add this:
if (Splitter[0] == "/addspawn")
{
uint MobID = uint.Parse(Splitter[1]);
ushort Area = byte.Parse(Splitter[2]);
ushort Amount = ushort.Parse(Splitter[3]);
DataBase.NewSpawn(MyChar.LocMap, (ushort)(MyChar.LocX - Area), (ushort)(MyChar.LocY + Area), (ushort)(MyChar.LocX + Area), (ushort)(MyChar.LocY - Area), Amount, MobID);
}
Now when you done that,search for: public static void NoGuild(uint UID)
Under the } bracklet,add this :
public static bool NewSpawn(ushort Map, ushort XStart, ushort YStart, ushort XEnd, ushort YEnd, ushort SpawnNr, uint MobID)
{
try
{
MySqlCommand Command = new MySqlCommand("INSERT INTO mobspawns (SpawnWhatID,SpawnNr,XStart,YStart,XEnd,YEnd,Map) VALUES (" + MobID + "," + SpawnNr + "," + XStart + "," + YStart + "," + XEnd + "," + YEnd + "," + Map + ")", Connection);
Command.ExecuteNonQuery();
return true;
}
catch { return false; }
}
|
How to use: Type /addspawn MobID Area Amout
Example: /addspawn 1 20 50
Now you added the monster with mobid 1,and you added them around the area of 20,and you added 50 of them.
Remember: You need to restart the server when you added a monsterspawn to make the monsters invisible.
Emme
|
|
|
09/04/2008, 22:31
|
#5
|
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
|
Thanks Emme, this command makes adding spawns a ton quicker, and lets me spend my time doing more important things =)
|
|
|
09/04/2008, 22:59
|
#6
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
You're welcome.
|
|
|
09/05/2008, 09:10
|
#7
|
elite*gold: 0
Join Date: Oct 2007
Posts: 120
Received Thanks: 24
|
ty for this
i was just missed part after no guild
i hope it work now
ty again
|
|
|
 |
Similar Threads
|
How do you make a monster spawn with a command?
01/10/2010 - CO2 Private Server - 19 Replies
Is there a way to spawn a monster with a command in game (instantly), maybe like Gano or Titan? Also is it possible to remove that monster after x amount of time? So far I have already gotten the Timer and spawned the monster on server start but I want to be able to command when I want to spawn the monster. Thanks.
|
[Request] Mob Spawn command
06/28/2009 - CO2 Private Server - 0 Replies
#Request close! found it hehe sorry
|
[help]Need Spawn Nps/Mobs command
04/04/2009 - CO2 Private Server - 3 Replies
heya guys infact i need command spawn for nps and mobs i have it in my source and it's powersource but i cant write it there is wrong thing
so can anyone tell me how to write it like this
/spawn ..... or things like this and thanks =]
and i searched already for 3 hours in the wepsite about it and i cant find it too.
|
i need GM command
12/29/2008 - Dekaron Private Server - 7 Replies
i open server and i need GM command. thx!
|
All times are GMT +1. The time now is 23:49.
|
|