Register for your free account! | Forgot your password?

You last visited: Today at 18:52

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

Advertisement



[5355]Npc AttributePointSeller

Discussion on [5355]Npc AttributePointSeller within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
[5355]Npc AttributePointSeller

Hello!
I am very happy because I learned much about the source and I have done some npc
^ ^ and no errors, including some that I bring you:

Put this in NpcTalk.cs:
Code:
                                #region AttributePointSeller
                                case 4461:
                                    {
                                        switch (LinkBack)
                                        {
                                            case 0:
                                                Text("Hi " + Client.Name + " I can give 100 attribute points for 2000cps.", Client);
                                                    Link("Yes Pliz", 1, Client);
                                                    Link("No Tnks.", 255, Client);
                                                    Finish(Client);
                                                    return;
                                            case 1:
                                                    {
                                                        Text("They want the points?.", Client);
                                                        Link("In Strong", 2, Client);
                                                        Link("In Agility", 3, Client);
                                                        Link("In Vitality", 4, Client);
                                                        Link("In Spirit", 5, Client);
                                                        Link("No Tnks", 255, Client);
                                                        Finish(Client);
                                                        return;
                                                    }
                                            case 2:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
                                                    }
                                                    else
                                                    {
                                                    Text("You have too many points in strength!.", Client);
                                                    Link("Ok Thanks.", 255, Client);
                                                    Link("Putting points into something else.", 1, Client);
                                                    Finish(Client);
                                                        return;
                                                                }
                                                            }
                                                            else
                                                            {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                            }
                                            case 3:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Agi <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Agi += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Agility!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                            case 4:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Vit <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Vit += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Vitality!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                            case 5:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Spi <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Spi += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Spirit!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                        }
                                    }
                                    return;
                                #endregion
finally upload it to navicat.


100% made ​​by me ^ ^
Discuss ...


Sorry for my bad English.
thesamuraivega is offline  
Thanks
1 User
Old 03/27/2011, 21:49   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
First you release Monsters for HellMouth, and then you learn how to make NPCs>?
Wow, Impressive.
iStefan is offline  
Old 03/27/2011, 22:26   #3
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by iStefan View Post
First you release Monsters for HellMouth, and then you learn how to make NPCs>?
Wow, Impressive.
i learn of my Errors
thesamuraivega is offline  
Old 03/28/2011, 00:37   #4
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
u say in ur npc its 100 attributes for 50k cps yet u only take away 2k :P
AndreaCo is offline  
Old 03/28/2011, 01:16   #5
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by AndreaCo View Post
u say in ur npc its 100 attributes for 50k cps yet u only take away 2k :P
fix it
thesamuraivega is offline  
Old 03/28/2011, 01:27   #6
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
You need to learn the C# Syntax, because I can see some errors, but it's good to see some releases and that some are learning.

I wish you goodluck.

Example this:
Code:
if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
                                                    }
                                                    else
                                                    {
                                                    Text("You have too many points in strength!.", Client);
                                                    Link("Ok Thanks.", 255, Client);
                                                    Link("Putting points into something else.", 1, Client);
                                                    Finish(Client);
                                                        return;
                                                                }
                                                            }
                                                            else
                                                            {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                            }
Should be:
Code:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
		}
                                                        else
                                                        {
                                                        Text("You have too many points in strength!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Link("Putting points into something else.", 1, Client);
                                                        Finish(Client);
                                                        return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                     }
Syst3m_W1z4rd is offline  
Old 03/28/2011, 01:42   #7
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Why doesn't anyone take advantage of the Iron Python scripting?
Santa is offline  
Old 03/28/2011, 01:52   #8
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by Syst3m_W1z4rd View Post
You need to learn the C# Syntax, because I can see some errors, but it's good to see some releases and that some are learning.

I wish you goodluck.

Example this:
Code:
if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
                                                    }
                                                    else
                                                    {
                                                    Text("You have too many points in strength!.", Client);
                                                    Link("Ok Thanks.", 255, Client);
                                                    Link("Putting points into something else.", 1, Client);
                                                    Finish(Client);
                                                        return;
                                                                }
                                                            }
                                                            else
                                                            {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                            }
Should be:
Code:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
		}
                                                        else
                                                        {
                                                        Text("You have too many points in strength!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Link("Putting points into something else.", 1, Client);
                                                        Finish(Client);
                                                        return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                     }
sorry im a nobb in this
thesamuraivega is offline  
Old 03/28/2011, 02:20   #9
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Quote:
Originally Posted by StarBucks View Post
Why doesn't anyone take advantage of the Iron Python scripting?
They are maybe 2 lazy to do it. Also some might like scripting in the source, rather than outside.
I like to make npcs etc. inside the source.
Syst3m_W1z4rd is offline  
Old 03/28/2011, 08:20   #10
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
same i find it much more easier to do it in the source because i make a lot of typos n stuff and the source shows me when i make one rather then using scripting which deosnt.
AndreaCo is offline  
Old 03/28/2011, 13:17   #11
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by thesamuraivega View Post
i learn of my Errors
From what error are you learning? That wasn't yours at all, I believe you leeched it.
And By The Way, Do you at least know the variables, and what exactly a variable is?
Knowing C# != Knowing The Codes for the NPCs on some Source.
iStefan is offline  
Old 04/08/2011, 01:12   #12
 
elite*gold: 0
Join Date: Aug 2010
Posts: 11
Received Thanks: 3
HELP PLZ

Quote:
Originally Posted by thesamuraivega View Post
Hello!
I am very happy because I learned much about the source and I have done some npc
^ ^ and no errors, including some that I bring you:

Put this in NpcTalk.cs:
Code:
                                #region AttributePointSeller
                                case 4461:
                                    {
                                        switch (LinkBack)
                                        {
                                            case 0:
                                                Text("Hi " + Client.Name + " I can give 100 attribute points for 2000cps.", Client);
                                                    Link("Yes Pliz", 1, Client);
                                                    Link("No Tnks.", 255, Client);
                                                    Finish(Client);
                                                    return;
                                            case 1:
                                                    {
                                                        Text("They want the points?.", Client);
                                                        Link("In Strong", 2, Client);
                                                        Link("In Agility", 3, Client);
                                                        Link("In Vitality", 4, Client);
                                                        Link("In Spirit", 5, Client);
                                                        Link("No Tnks", 255, Client);
                                                        Finish(Client);
                                                        return;
                                                    }
                                            case 2:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Str <= 1200)
                                                        {
                                                        Client.CP -= 2000;
                                                        Client.Str += 100;
                                                        return;
                                                    }
                                                    else
                                                    {
                                                    Text("You have too many points in strength!.", Client);
                                                    Link("Ok Thanks.", 255, Client);
                                                    Link("Putting points into something else.", 1, Client);
                                                    Finish(Client);
                                                        return;
                                                                }
                                                            }
                                                            else
                                                            {
                                                     Text("Not have sufficient cps!.", Client);
                                                     Link("Ok Thanks.", 255, Client);
                                                     Finish(Client);
                                                     return;

                                                            }
                                            case 3:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Agi <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Agi += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Agility!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                            case 4:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Vit <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Vit += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Vitality!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                            case 5:
                                                    if (Client.CP >= 2000)
                                                    {
                                                        if (Client.Spi <= 1200)
                                                        {
                                                            Client.CP -= 2000;
                                                            Client.Spi += 100;
                                                            return;
                                                        }
                                                        else
                                                        {
                                                            Text("You have too many points in Spirit!.", Client);
                                                            Link("Ok Thanks.", 255, Client);
                                                            Link("Putting points into something else.", 1, Client);
                                                            Finish(Client);
                                                            return;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Text("Not have sufficient cps!.", Client);
                                                        Link("Ok Thanks.", 255, Client);
                                                        Finish(Client);
                                                        return;

                                                    }
                                        }
                                    }
                                    return;
                                #endregion
finally upload it to navicat.


100% made ​​by me ^ ^
Discuss ...


Sorry for my bad English.
Ty u! , but when i click in the npc, it says: Sorry no have bla bla ID:44..

hola cuando cliko en el npc, ele diz: que no tienes msg ID:44.. (tu tienes que upload o ID) Bin>>Debug>>NPCS
nikito157 is offline  
Old 04/08/2011, 04:48   #13
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
-sounds like you didnt even debug it yet..

-About npc scripts you guys know using the proxy to log all ur npcs and finishing up in python is a tad bit easier then having to writting them all... xD

-The main point of the external npc script system was for others to be able to help us write scripts so its not just me doing all them..
BioHazarxPaul is offline  
Old 04/08/2011, 19:19   #14
 
elite*gold: 0
Join Date: Aug 2010
Posts: 11
Received Thanks: 3
Quote:
Originally Posted by BioHazarxPaul View Post
-sounds like you didnt even debug it yet..

-About npc scripts you guys know using the proxy to log all ur npcs and finishing up in python is a tad bit easier then having to writting them all... xD

-The main point of the external npc script system was for others to be able to help us write scripts so its not just me doing all them..
i don't know use phyton
nikito157 is offline  
Old 07/11/2011, 02:34   #15
 
danieldada's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 313
Received Thanks: 98
I changed it to version 5368-70 and a few text changes.
Don't know how to use the qoute command or i would qoute it.

Quote:
#region AttributePointSeller
case 2000:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hi i can give 100 attribute points for 200kcps.");
dialog.Link("Hell Yeah!", 1);
dialog.Link("No Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
return;
case 1:
{
dialog.Text("Where do you want the points alloted to?");
dialog.Link("In Strong", 2);
dialog.Link("In Agility", 3);
dialog.Link("In Vitality", 4);
dialog.Link("In Spirit", 5);
dialog.Link("No Thanks", 255);
dialog.Avatar(0);
dialog.Send();
return;
}
case 2:
if (client.Entity.ConquerPoints >= 200000)
{
if (client.Entity.Strength <= 500)
{
client.Entity.ConquerPoints -= 200000;
client.Entity.Strength += 100;
return;
}
else
{
dialog.Text("You have too many points in strength!.");
dialog.Link("Ok Thanks.", 255);
dialog.Link("Put points on different Attribute?", 1);
dialog.Avatar(0);
dialog.Send();
return;
}
}
else
{
dialog.Text("You do not have sufficient cps!.");
dialog.Link("Ok Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
return;

}
case 3:
if (client.Entity.ConquerPoints >= 200000)
{
if (client.Entity.Agility <= 500)
{
client.Entity.ConquerPoints -= 200000;
client.Entity.Agility += 100;
return;
}
else
{
dialog.Text("You have too many points in Agility!.");
dialog.Link("Ok Thanks.", 255);
dialog.Link("Put points on different Attribute?", 1);
dialog.Avatar(0);
dialog.Send();
return;
}
}
else
{
dialog.Text("You do not have sufficient cps!.");
dialog.Link("Ok Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
return;

}
case 4:
if (client.Entity.ConquerPoints >= 200000)
{
if (client.Entity.Vitality <= 500)
{
client.Entity.ConquerPoints -= 200000;
client.Entity.Vitality += 100;
return;
}
else
{
dialog.Text("You have too many points in Vitality!.");
dialog.Link("Ok Thanks.", 255);
dialog.Link("Put points on different Attribute?", 1);
dialog.Avatar(0);
dialog.Send();
return;
}
}
else
{
dialog.Text("You do not have sufficient cps!.");
dialog.Link("Ok Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
return;

}
case 5:
if (client.Entity.ConquerPoints >= 200000)
{
if (client.Entity.Spirit <= 500)
{
client.Entity.ConquerPoints -= 200000;
client.Entity.Spirit += 100;
return;
}
else
{
dialog.Text("You have too many points in Spirit!.");
dialog.Link("Ok Thanks.", 255);
dialog.Link("Put points on different Attribute?", 1);
dialog.Avatar(0);
dialog.Send();
return;
}
}
else
{
dialog.Text("You do not have sufficient cps!.");
dialog.Link("Ok Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
return;

}
}
}
return;
#endregion
danieldada is offline  
Reply


Similar Threads Similar Threads
[OverDue Release] HellmouthCo Source: 5355+, Monk, etc
01/14/2012 - CO2 PServer Guides & Releases - 479 Replies
<<UPDATE>> I posted a faq thread for this which I will add to as I receive questions from people. http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/1054934-faq-hellmouthsource.html#post94 91034 <<EDIT AGAIN> CLIENT LINK: http://www.megaupload.com/?d=PWYKHAOI No idea if that client is any good... Personally I'd just download one from http://co.91.com/downloads/client.shtml and patch it to 5355 but that's just me. Someone posted that megaupload link for when we were hosting...
[Help]5355
11/15/2011 - CO2 Private Server - 4 Replies
i dont see anything wrong with this code but it wont spawn the mobs public static void GetSpawns() { MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT); cmd.Select("mobspawns"); uint Count = 0; MySqlReader DR = new MySqlReader(cmd); while (DR.Read()) {
I Need An Complete Sourse 5355
03/13/2011 - CO2 Private Server - 10 Replies
I Need An Complete Sourse 5355 With Monsters And Nps
who can decrypt 5355 magictype.dat [pro4never]
02/02/2011 - CO2 Private Server - 13 Replies
can any one decrypt conquer 5355 magictype.dat all peoples & friends told me Fang & pro4never can help you.;)



All times are GMT +2. The time now is 18:52.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.