Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:15

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

Advertisement



/item Plus limit question

Discussion on /item Plus limit question within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
/item Plus limit question

Hey guys, I was wondering if someone could help me make it so normal players can use /item , but it was limited to +9. im making a pvp server and i dont want every1 to get +12s with this command, so if u can help it b appreciated =)

Here is the original command:

Code:
                                        if (Splitter[0] == "/item")
                                        {
                                            Ini ItemNames = new Ini(System.Windows.Forms.Application.StartupPath + @"\ItemNamesToId.ini");
                                            string ItemName = Splitter[2];
                                            string ItemQuality = Splitter[1];
                                            byte Plus = byte.Parse(Splitter[3]);
                                            byte Bless = byte.Parse(Splitter[4]);
                                            byte Enchant = byte.Parse(Splitter[5]);
                                            byte Soc1 = byte.Parse(Splitter[6]);
                                            byte Soc2 = byte.Parse(Splitter[7]);

                                            uint ItemId = 0;
                                            ItemId = uint.Parse(ItemNames.ReadValue("Items", ItemName));

                                            if (ItemId == 0)
                                                return;

                                            byte Quality = 1;

                                            if (ItemQuality == "One")
                                                Quality = 1;
                                            else if (ItemQuality == "Normal")
                                                Quality = 5;
                                            else if (ItemQuality == "Unique")
                                                Quality = 7;
                                            else if (ItemQuality == "Refined")
                                                Quality = 6;
                                            else if (ItemQuality == "Elite")
                                                Quality = 8;
                                            else if (ItemQuality == "Super")
                                                Quality = 9;
                                            else
                                                Quality = (byte)Other.ItemQuality(ItemId);

                                            ItemId = Other.ItemQualityChange(ItemId, Quality);

                                            if (MyChar.ItemsInInventory < 40)
                                                MyChar.AddItem(ItemId.ToString() + "-" + Plus.ToString() + "-" + Bless.ToString() + "-" + Enchant.ToString() + "-" + Soc1.ToString() + "-" + Soc2.ToString(), 0, (uint)General.Rand.Next(57458353));
                                        }
~RapidBlade~ is offline  
Old 06/15/2009, 00:23   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Copy the entire command.

Search

Code:
if (Status == 8 || Status == 7)
And paste it above that. That small line makes it read if you're a gm or pm.
Incariuz is offline  
Old 06/15/2009, 00:26   #3
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
No i meen, i want normal players to b able to use it but i dont want them to b able to code +12s only up to +9
~RapidBlade~ is offline  
Old 06/15/2009, 00:29   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
I just told you how to make it so players can use it. As for them not being able to create over +9. I have no clue, and I don't work with LOTF anymore so... That's all the help I'm able to offer.
Incariuz is offline  
Old 06/15/2009, 00:30   #5
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by ~RapidBlade~ View Post
No i meen, i want normal players to b able to use it but i dont want them to b able to code +12s only up to +9
if (Item.Pluss <= 9)
return;
And send message that your not able to make any +10...
damianpesta is offline  
Old 06/15/2009, 00:31   #6
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
if (Plus > 9)
Plus = 9;
Add that anywhere above the AddItem code.
_Emme_ is offline  
Old 06/15/2009, 00:32   #7
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Thanks Emme and damian =)
~RapidBlade~ is offline  
Old 06/15/2009, 01:31   #8
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by ~RapidBlade~ View Post
Thanks Emme and damian =)
Ouch I didnt realize how many typo's I made LOL.**** funny now.
damianpesta is offline  
Old 06/15/2009, 01:45   #9
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
byte Plus = Math.Min(byte.Parse(Splitter[3]), 9);

Or the other way around, something like that =P
kinshi88 is offline  
Old 06/15/2009, 01:56   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 92
Received Thanks: 8
Code:
byte Plus = Status >= 7 ? Math.Min(byte.Parse(Splitter[4]), 9) : Math.Min(byte.Parse(Splitter[4]), 12);
Combined all the ideas of the thread into one line of code.
_tao4229 is offline  
Reply


Similar Threads Similar Threads
[Question] .c3 polycount limit?
06/13/2010 - EO PServer Hosting - 0 Replies
May anyone tell me what is the polygons count limit of Models for EO? I haven't started yet, and this information would be useful, Thank you.
[Question]How to change limit lvl from 255 to 137?
05/14/2010 - EO PServer Hosting - 6 Replies
hi all...who can help me..with change limit lvl from 255 to 137..:handsdown:
Can AnyBody Answer These Question About Limit-RO..?
05/03/2010 - Ragnarok Online - 1 Replies
Ummm.... 1. Can Anybody Tell Me If Theres A Working Bot For Limit-RO, If Yes, Can You Send It To Me? 2. Can Anybody Tell Me Where I Can Get Thorny Seed, Bomb Manual..? Its For The Third Class Skill Requirements For Genetic 3. Is There Really A ByPass For Accessing The Premium For Limit-RO Without Paying..?
question: remove HP limit bug
02/28/2009 - Dekaron Private Server - 4 Replies
When your hp goes above 65.536 it jumps back to 1. so if you have 70.000hp max and use a skill it goes back to 4.464 (=70.000-65536) Is there a way to remove this hp limit? (and dont reply with "dont go above 65.536 then") thanks in advance
[Question] about Treasure of Crespo - Time Limit
11/25/2008 - Dekaron - 1 Replies
Hi, is it possible to change/or put off the time-limit of dg? thx for answer.



All times are GMT +2. The time now is 17:15.


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.