Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Bots & Macros
You last visited: Today at 19:54

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

Advertisement



Code to recreate familiar scripting logic

Discussion on Code to recreate familiar scripting logic within the CO2 Bots & Macros forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
mircato's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 15
Received Thanks: 9
Wink Code to recreate familiar scripting logic

As I have been working to create my own plugins, I figured I might as well simplify and standardize my own plugin creation. As my choice of doing so I decided to standardize as closely as possible to your scripting language for familiarity. As such I thought you may find these little snippets of code to be at your convenience of time.

Among the scripting logic I have as needed to created these thus far:

level, getitemamount, invsize, map

Here they are if you wish to incorporate them as standardized functions:

level()
Code:
PHP Code:
        public static int level()
        {

            return 
Client.Level;

        } 
getitemamount()

PHP Code:
public static int getitemamount(string ItemName)
        {

            try
            {

                
int ItemID;
                
                
bool isItemID Int32.TryParse(ItemNameout ItemID);

                
int count 0;

                foreach (
COFarmerItem i in Client.Inventory.Items)
                {

                    if (
isItemID == false && i.Attributes.Name.ToLower() == ItemName.ToLower()) count++;
                    if (
isItemID == true && i.Attributes.TypeID == ItemIDcount++;

                }

                return 
count;

            }

            catch (
Exception exception)
            {

                
Client.Chat("Error: " exception.MessageChatMode.SystemCOFarmerPacketSource.FromServer"ALL");

                return -
1;

            }

        } 
invsize()

PHP Code:
        public static int invsize()
        {

            return 
Client.Inventory.Items.Count();

        } 
map()
PHP Code:
        public static int map()
        {
            if (
Client.MapID == Client.DynamicMapID)
            {

                return 
Client.MapID;

            }

            else
            {

                return 
Client.DynamicMapID;

            }

        } 
mircato is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
marius aka mRs' 's geile logic
07/29/2011 - Quotes - 9 Replies
]18:37:1618:37:21vIrus18:37:31vIrus18:37:48vIrus18 :37:58vIrus18:38:0218:38:10vIrus18:38:17vIrus18:38 :22vIrus18:38:3518:38:37brainpain18:38:4018:38:41b rainpain18:38:45brainpain18:38:4718:38:4818:38:491 8:38:49vIrus18:38:50brainpain18:38:5018:38:53brain pain18:38:53vIrus18:38:54brainpain18:38:57vIrus18: 39:00vIrus18:39:3918:39:5518:39:58vIrus18:40:0318: 40:1618:40:25vIrus[x> sags ihnen inner schule -.-
Logic Room - Der Tod ist unberechenbar | DVD-Start: 18.03.2011
03/20/2011 - Movies & Series - 1 Replies
Erledigt
My Logic Screen
04/16/2010 - EO PServer Hosting - 5 Replies
I Edited an old picture of a eo picture, Tell me if you think it looks likes on a scale 1-10 http://img11.imageshack.us/i/theloginscreen.png/
MxO - Double Logic Cannon 2.0 Exploit
12/25/2008 - General Gaming Discussion - 3 Replies
1)Just go in interlock 2)click logic cannon 2.0 or other hacker abilities (probably work for martial art too but I haven't try it) 3)while logic cannon icon is moving from right to left just click two or three times on an other ability like logic barrage and quickly on logic cannon 2.0 again,you'll have two logic cannon 2.0 with a 2600 or less damage in about 6 seconds. Enjoy
Anyone familiar with MEX maybe answer this
05/27/2005 - Conquer Online 2 - 7 Replies
is there a way to have mex recognize colors to find its coordinates ? or something like that im lookin to make a macro to speed up my attemptts at sockets, wanna make it so it sees the item im lookin to soc then puts it in the place then finds the met and puts it into place since when you get back from maint all your bag is jumbled up. or should something like this be done with scar, and if so could someone walk me through it a lil i have yet to use scar. Thanks in advance for any help.



All times are GMT +1. The time now is 19:56.


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.