Register for your free account! | Forgot your password?

You last visited: Today at 11:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]LabNpc's

Discussion on [Release]LabNpc's within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 02/16/2010, 19:51   #16
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Ok, got the NPC's fixed, just had to move around your code a bit. This was in the wrong place:
Code:
else
    {
        GC.AddSend(Packets.NPCSay("You do not have a Earth Token Kill AgilRats for the token"));
        GC.AddSend(Packets.NPCLink("I see.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }
This is what I changed the code to be. Also added the code above to the Lab1 NPC. So now it looks like this.

Lab2:
Code:
#region Lab2
case 1153:
{
    if (Control == 0)
    {
        GC.AddSend(Packets.NPCSay("Would u like to go to lab2 it will cost u a Skytoken."));
        GC.AddSend(Packets.NPCLink("Lab 2", 1));
        GC.AddSend(Packets.NPCLink("TwinCity", 2));
        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }
    if (Control == 1)
    {
        if (GC.MyChar.Inventory.Count < 40)
        {
            if (GC.MyChar.InventoryContains(721537, 1))
            {
                GC.MyChar.RemoveItem(GC.MyChar.NextItem(721537));
                GC.MyChar.Teleport(1352, 029, 230);
            }
            else
            {
                GC.AddSend(Packets.NPCSay("You do not have a Sky Token Kill Gold Ghosts for the token"));
                GC.AddSend(Packets.NPCLink("I see.", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
    }
    if (Control == 2)
    {
        GC.MyChar.Teleport(1002, 431, 379);
    }
    break;
}
#endregion
Lab3:
Code:
#region Lab3
case 1154:
{
    if (Control == 0)
    {
        GC.AddSend(Packets.NPCSay("Would u like to go to lab3 it will cost u 1 Earth Token."));
        GC.AddSend(Packets.NPCLink("Lab 3", 1));
        GC.AddSend(Packets.NPCLink("TwinCity", 2));
        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }
    if (Control == 1)
    {
        if (GC.MyChar.Inventory.Count < 40)
        {
            if (GC.MyChar.InventoryContains(721538, 1))
            {
                GC.MyChar.RemoveItem(GC.MyChar.NextItem(721538));
                GC.MyChar.Teleport(1353, 028, 270);
            }
            else
            {
                GC.AddSend(Packets.NPCSay("You do not have a Earth Token Kill AgilRats for the token"));
                GC.AddSend(Packets.NPCLink("I see.", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
    }
    if (Control == 2)
    {
        GC.MyChar.Teleport(1002, 431, 379);
    }
    break;
}
#endregion
Lab4
Code:
#region Lab4
case 1155:
{
    if (Control == 0)
    {
        GC.AddSend(Packets.NPCSay("Would u like to go to Lab4 or go back to TwinCity?"));
        GC.AddSend(Packets.NPCLink("Lab4", 1));
        GC.AddSend(Packets.NPCLink("TwinCity", 2));
        GC.AddSend(Packets.NPCLink("No thanks i think i'm gonna stay here awhile!", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }
    if (Control == 1)
    {
        if (GC.MyChar.Inventory.Count < 40)
        {
            if (GC.MyChar.InventoryContains(721539, 1))
            {
                GC.MyChar.RemoveItem(GC.MyChar.NextItem(721539));
                GC.MyChar.Teleport(1354, 009, 290);
            }
            else
            {
                GC.AddSend(Packets.NPCSay("You do not have a SoulToken Kill FiendBats for the token"));
                GC.AddSend(Packets.NPCLink("I see.", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
    }
    if (Control == 2)
    {
        GC.MyChar.Teleport(1002, 431, 379);
    }
    break;
}
#endregion
Still have the problem with the Invisable AgileRats and the Bladeling..will post back if I can find a fix.

Please don't give me thanks, this is coreymills code, I just changed it up to work for me.
HardNotTo is offline  
Old 02/16/2010, 20:46   #17
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Did you do the mobinfo and mobspawns?
Arcо is offline  
Old 02/16/2010, 20:53   #18
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Quote:
Originally Posted by .Arco View Post
Did you do the mobinfo and mobspawns?
yes, this is what I have

Mobinfo

Code:
86 Bladeling 1 600 110 33140 100 87 0 1300 1702 1 87 2 True 2 10 900 1000 12 False
87 AgileRat 1 600 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
mobspawns same as he posted
HardNotTo is offline  
Old 02/16/2010, 20:57   #19
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
For agile rate try this:
87 AgileRat 1 442 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
Arcо is offline  
Thanks
2 Users
Old 02/16/2010, 21:14   #20
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Quote:
Originally Posted by .Arco View Post
For agile rate try this:
87 AgileRat 1 442 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
That worked..
HardNotTo is offline  
Old 02/16/2010, 21:30   #21
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by HardNotTo View Post
That worked..
KK, gimme a few to find the bladeling.
Arcо is offline  
Old 02/16/2010, 22:04   #22
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
ok, thanks. is there a post somewhere on how to find the info for spawning mobs..i know what most of the info is and how to get it but not all of it.

MobInfo:
Code:
ID	Name    		type	Mesh	level	MaxHP	Defense	MDef	Matk	MinAtk	MaxAtk	DmgRedTime	Dodge	AtkType	Gives	AtkDist	MinSilver		MaxSilver		MoveSpeed		SpawnSpeed	LevDifDmg
18	BanditL33 	1	601	33	1634	0	0	0	86	94	1		75 	2	True	3 	30		300		1000 		12 		True
I know how to get these: name, level, max hp, Def, MDef, Min/Max Attack, Dodge, all from the CO Website, but how to get the rest of the info I have no idea.

MobSpawns:
87 125 1352 496 518 532 486

I know those in red, in order are, MobID, Amount Spawned, and MapID...also that 2 of the last 4 sets of numbers are x,y locations, just not sure which ones or what the other 2 would be.
HardNotTo is offline  
Old 02/16/2010, 22:33   #23
 
elite*gold: 0
Join Date: Jul 2009
Posts: 91
Received Thanks: 28
so....

Code:
87 AgileRat 1 442 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
What about 86? I'm just assuming that it's 442 but I've never done the lab quest myself. Is it 601 for 86?

EDIT: If it is supposed to look like bandits then:
Code:
86 Bladeling 1 601 110 33140 100 87 0 1300 1702 1 87 2 True 2 10 900 1000 12 False


Earth tokens aren't dropping btw.
Change the code to:

Code:
else if (Name == "AgileRat")
                    {

                        if (MyMath.ChanceSuccess(30))//change 100 to what ever u want the droprate to be
                        {
                            DI2.Info.ID = 721538;
                            DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                            DI2.Info.CurDur = DI2.Info.MaxDur;

                        }
                    }
EDIT 2: Btw everyone, I'm a newbie at coding. x_x" I'm pretty sure this is right. It worked for me at least. =P Enjoy? (I hope ._.)
darkdestiny54 is offline  
Old 02/16/2010, 23:09   #24
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
@HardNotTo
Quote:
87 125 1352 496 518 532 486

87-Mob id from mobinfos.txt
125-how many will spawn
1352-map
496-start x
518-start y
532-end x
486-end y
srry all i had the mob meshes wrong on the bladelings and agilrats there fixed now
coreymills is offline  
Thanks
1 User
Old 02/16/2010, 23:26   #25
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Quote:
Originally Posted by coreymills View Post
@HardNotTo


srry all i had the mob meshes wrong on the bladelings and agilrats there fixed now
thanks, so the spawn start x,y and spawn end x,y would be like saying that those two points is where the number spawned will be between?
HardNotTo is offline  
Old 02/16/2010, 23:40   #26
 
elite*gold: 0
Join Date: Jul 2009
Posts: 91
Received Thanks: 28
Well.... 400 makes them blue... rofl (closer? x_x")

EDIT:
[CODE]
86 Bladeling 1 240 110 33140 100 87 0 1300 1702 1 87 2 True 2 10 900 1000 12 False
87 AgileRat 1 442 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
[CODE]

How about now? xP Is that right?
darkdestiny54 is offline  
Old 02/16/2010, 23:50   #27
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Quote:
Originally Posted by darkdestiny54 View Post
Well.... 400 makes them blue... rofl (closer? x_x")

EDIT:
[CODE]
86 Bladeling 1 240 110 33140 100 87 0 1300 1702 1 87 2 True 2 10 900 1000 12 False
87 AgileRat 1 442 112 58110 545 45 1800 0 0 1 45 21 1000 0 True 2 100 1500 1000 12 False
[CODE]

How about now? xP Is that right?
yes that is correct but OP allready fixed it and updated his first post
HardNotTo is offline  
Old 02/17/2010, 00:37   #28
 
elite*gold: 0
Join Date: Jul 2009
Posts: 91
Received Thanks: 28
Quote:
Originally Posted by HardNotTo View Post
yes that is correct but OP allready fixed it and updated his first post
Oops. lol, oh well =P
At least it's working now!
^^
darkdestiny54 is offline  
Old 03/11/2010, 04:21   #29
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
k the mobs are there now how do you make them able to move?????
jasonk1980 is offline  
Old 03/11/2010, 08:25   #30
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by jasonk1980 View Post
k the mobs are there now how do you make them able to move?????
You just need to load the dmaps for those maps.
Arcо is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 11:29.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.