Register for your free account! | Forgot your password?

You last visited: Today at 12:56

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

Advertisement



COEmu NPC Scripting

Discussion on COEmu NPC Scripting within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
COEmu NPC Scripting

In order to test a scripting language I wrote, I'd like to sell it.
This language is written in C#, and supports callbacks to any managed functions (meaning you can make the script do anything in your own code).

I can apply this to COEmu NPC scripting. I'll provide examples of syntax usage, and also discuss what anybody wants implemented as a function (naming, how it works etc.)
I'll provide proof it works if anyone so needs it. I can implement this into any source that's coded in .NET (C#, VB.NET... etc) not just COEmu, and it can also work with already raw-coded NPCs. It supports basic functions such as math on integers, function defining/calling, external function call backs, and string usage as parameters for functions. So far there's only two types implemented:
'number' which is defined back as a 32-bit signed integer, and
'text' which is defined back as a standard .NET System.String.

Anything needed can be easily defined as a function callback in a few lines of code.

Examples of syntax: (Basis of what I could implement.)
Code:
function: null mainDlg()
	say('Hello,~I~am~a~scripted~NPC.')
	option('Cool',1)
	option('Fail!',-1)
	face(30)
	end()
endfunc
function: null dlg1()
	say('Inorite?!')
	option('Bye.',-1)
	face(30)
	end()
endfunc
That's just a basic example of syntax. This language supports checking variables/return values from functions using this syntax:
Code:
check var = var
check var > var
check var < var
check var >= var
check var <= var
Of course the greater than/less than checks only apply to number values, but the = operator works on text as well. Example of checking would be as follows.

Code:
check getname() = 'tao4229'
    say('Hello~tao4229!')
else
    say('I~dont~know~you.')
endcheck
This syntax supports declaring variables/setting variables like this
Code:
number i = 0 + 1 + 2 - 3 * 7
i = i - 3
But doesn't support operators to be used on a check or calling a function:
IE
Code:
check i + 3 - 2 = 8
endcheck

or

function(i + 3, 2 - 1)
Won't work unless fixed by me.

Any questions just ask.
(There's a bit more to the language I've left out.)
If you've got a problem with the '~' inside text, I'll work on fixing that now, just couldn't be bothered when I was doing it earlier.
_tao4229_ is offline  
Old 09/20/2009, 00:05   #2
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
it's a pretty good system. i got to test it out earlier today, it'd say its definitely worth trying.
lostsolder05 is offline  
Old 09/20/2009, 01:39   #3


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Looks nice Still I prefer LUA
KraHen is offline  
Old 09/20/2009, 01:47   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
This is insane!
Empty Project is offline  
Old 09/20/2009, 02:45   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by ElDeRnEcRo View Post
Looks nice Still I prefer LUA
I hate the LUA syntax, it's messy and more complex than C++ for defining things like classes, although useful for simple functions I guess.
I've tested it a bit now, most things work as I planned, fixing some things right now.
_tao4229_ is offline  
Old 09/20/2009, 03:09   #6


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Btw, how do you store the commands of your language?
KraHen is offline  
Old 09/20/2009, 04:11   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by _tao4229_ View Post
In order to test a scripting language I wrote, I'd like to sell it.
I get it. We're paying you, so that we may be able to test the buggy scripting language that you wrote. But forget that it's buggy, if we're paying for it, it must be feature rich...right?
Quote:
Originally Posted by _tao4229_ View Post
This language is written in C#, and supports callbacks to any managed functions (meaning you can make the script do anything in your own code).
Great...
Quote:
Originally Posted by _tao4229_ View Post
I can apply this to COEmu NPC scripting. I'll provide examples of syntax usage, and also discuss what anybody wants implemented as a function (naming, how it works etc.)
Neat-o...
Quote:
Originally Posted by _tao4229_ View Post
I'll provide proof it works if anyone so needs it. I can implement this into any source that's coded in .NET (C#, VB.NET... etc) not just COEmu, and it can also work with already raw-coded NPCs. It supports basic functions such as math on integers, function defining/calling, external function call backs, and string usage as parameters for functions. So far there's only two types implemented:
'number' which is defined back as a 32-bit signed integer, and
'text' which is defined back as a standard .NET System.String.
Okay, but I still don't understand what sets your scripting language apart from others and why we should pay money for something that is most likely cumbersome and less usable than most free scripting languages.
Quote:
Originally Posted by _tao4229_ View Post
This syntax supports declaring variables/setting variables like this
Code:
number i = 0 + 1 + 2 - 3 * 7
i = i - 3
But doesn't support operators to be used on a check or calling a function:
IE
Code:
check i + 3 - 2 = 8
endcheck

or

function(i + 3, 2 - 1)
Won't work unless fixed by me.
Oh, so I guess that costs extra, don't it?

So, why do we have to pay to test your incomplete, buggy scripting language when we could find a better one?

Anyways, good luck.
t.bab is offline  
Old 09/20/2009, 04:12   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by ElDeRnEcRo View Post
Btw, how do you store the commands of your language?
What do you mean?
As in like ... 'say(..)' or the standard stuff that would be included like 'check'ing?

Quote:
Originally Posted by t.bab View Post
I get it. We're paying you, so that we may be able to test the buggy scripting language that you wrote. But forget that it's buggy, if we're paying for it, it must be feature rich...right?

Great...

Neat-o...

Okay, but I still don't understand what sets your scripting language apart from others and why we should pay money for something that is most likely cumbersome and less usable than most free scripting languages.

Oh, so I guess that costs extra, don't it?

So, why do we have to pay to test your incomplete, buggy scripting language when we could find a better one?

Anyways, good luck.
Find someone that could even implement LUA or any other language on these forums.
That is my point. I really don't care about the money, I'm just wondering if anyone is actually interested in this, I've tested it myself for all the stuff I've implemented, I mean test it in an actual environment of doing something. If anyone wants me to I'll implement it for free, PM me about it I guess. (Only if you actually know what you're fucking doing, please.)
Damn, I got owned -_-.
_tao4229_ is offline  
Old 09/20/2009, 13:10   #9
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
If I have some spare time I can code something similuar that works for any source for the cheap people, but tao's code probably works better.
_Emme_ is offline  
Reply


Similar Threads Similar Threads
scripting??
11/14/2008 - Lineage 2 - 1 Replies
guys can u help me whats wrong on my script?? Label(MAN) CharStatus(MP,<=,90) { USEITEM(Elixir Of Mental Strength (B-Grade)) } Call(MAN) why is it wont use elixer???
L2 scripting
07/19/2007 - Lineage 2 - 1 Replies
hey ya guys, i would like to ask you, if there is any possibility how to make a script, that would report about your char, for eg. i will pm on my spoil from another char with any security asnwer, like howmanyitems? - and my spoil should asnwer, how many items does it have....idk -> im away from home and left my spoiler spoiling some materials or enchants, log anywhere on another char, then PM my spoil, how many items or enchants does it have....i tried something about AI answer, but i...
HELP! I need help scripting
02/06/2007 - Conquer Online 2 - 1 Replies
OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
Scripting
12/10/2006 - World of Warcraft - 1 Replies
Hello, I have used the search button on this site and ive used google in order to find out how to Script and then add the items to the game but with no luck. Can someone please link a guide or explain to me how to make a item and add it to my private server... text2schild.php?smilienummer=1&text=Thanks' border='0' alt='Thanks' />



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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