|
You last visited: Today at 18:19
Advertisement
[Problem] Character.cs
Discussion on [Problem] Character.cs within the CO2 Private Server forum part of the Conquer Online 2 category.
05/04/2010, 22:04
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
[Problem] Character.cs
Hey, when using the AddItem type, I get a error on this:
Code:
[COLOR="Red"]AddItem(150249, 12, 7, 255, 13, 13);[/COLOR]
This is in character.cs, I wanna make it so that it makes a item +12 2soc -7 255hp.
Any help on what i'm doing wrong?
|
|
|
05/04/2010, 23:07
|
#2
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
Quote:
Originally Posted by KinG^PlutO
Hey, when using the AddItem type, I get a error on this:
Code:
[COLOR="Red"]AddItem(150249, 12, 7, 255, 13, 13);[/COLOR]
This is in character.cs, I wanna make it so that it makes a item +12 2soc -7 255hp.
Any help on what i'm doing wrong?
|
I believe it's AddItem("id-+- --hp-sock1-sock2", 0, (uint)General.Rand.Next(346623472)); //don't ask what's with the random number...
|
|
|
05/05/2010, 00:52
|
#3
|
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
|
Code:
AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
should be like that
|
|
|
05/05/2010, 04:48
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
I get error on general
|
|
|
05/05/2010, 15:06
|
#5
|
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
|
GC.MyChar.AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);
|
|
|
05/05/2010, 18:45
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
Error:
Quote:
|
GC.MyChar.AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);
|
'System.GC' does not contain a definition for'MChar'
|
|
|
05/05/2010, 21:06
|
#7
|
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
|
Quote:
Originally Posted by KinG^PlutO
Error:
'System.GC' does not contain a definition for'MChar'
|
what exactly are you trying to do and what source are you using?
|
|
|
05/05/2010, 21:19
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
I got the source on 4botters from tqbeater and im trying to make a item when u right click it it gives u +12 2soc -7 gear.
Quote:
#region TrojanBox
case 723991:
{
GC.MyChar.AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);
break;
}
#endregion
|
|
|
|
05/05/2010, 21:29
|
#9
|
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
|
Quote:
Originally Posted by KinG^PlutO
I got the source on 4botters from tqbeater and im trying to make a item when u right click it it gives u +12 2soc -7 gear.
|
try using
Code:
AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);
you would also want to set it so it removes the original item or players will be able to spam the reward
|
|
|
05/05/2010, 21:32
|
#10
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
Error when I use that:
Code:
[COLOR="Red"]AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);[/COLOR]
|
|
|
05/05/2010, 22:07
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Wait your using the code INSIDE of character.cs?

Just AddItem, no Gc.MyChar.
|
|
|
05/05/2010, 22:42
|
#12
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
|
|
|
05/05/2010, 22:43
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Look at the definition, you need commas in between EACH number.
|
|
|
05/05/2010, 22:55
|
#14
|
elite*gold: 0
Join Date: Oct 2009
Posts: 45
Received Thanks: 3
|
Now i'm using this code:
Quote:
|
AddItem(121129, 15, 255, 7, 13, 13);
|
And I get this error:
Quote:
|
No overload for Method 'AddItem' takes '6' arguments
|
|
|
|
05/05/2010, 23:08
|
#15
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by KinG^PlutO
Now i'm using this code:
And I get this error:
|
The errors says it all, it takes 6 arguements.
|
|
|
 |
|
Similar Threads
|
Problem at the Character choose
06/07/2010 - Archlord - 7 Replies
Hello elite pvpers,
I dont know if the question was asked before, i use the searched funktion but didnt found anything.
So my problem is, that when i choose my character some times i get kicked out after few secounds/minutes. Sometimes not. so Why the Hell is this happening to me? i found out that there are some more people have this problem. (google) but no real answer so maybe you pro's got some? thanks :)
Mfg Sipfer
|
Server Problem [Character]
01/26/2010 - Metin2 Private Server - 5 Replies
Hey,hab n´ Problem...
Betriebssystem
Hey wenn ich mir einen neuen Char machen will..
Kann ich Krieger und Sura nicht weiblich machen und
Schamie und Ninja werden nur dann angezeigt,wenn ich auf "Frau" klicke.
Und ungekehrt...
Was ist das Problem??
Ordner ist alles richtig Server hat 8 Fehlermeldungen o.O
Anstatt diese Kästchen/Vierecke sind die/der Server Name sowie z.B Mosha da auf Japanisch o.O
|
Metin35 character problem
10/31/2009 - Metin2 Private Server - 1 Replies
hi,
wollte grade mal metin35 spielen, aber als als ich einen charackter erstellt habe stand da ´´Der name ist schon vergeben.´´ und das macht er wirklich bei JEDEM namen.
was soll ich tun?
|
Sjsro character problem
05/16/2009 - SRO Private Server - 0 Replies
Why i can´t create a char?? when i klick on confirm i get this error.
http://img30.imageshack.us/img30/6536/sro20090516 21054634.jpg
|
Problem with character creation
02/01/2009 - Dekaron Private Server - 0 Replies
Hi me and my friend started a 2moons pserver and every thing went fine server ran fine too. But when we tried to launch client (sx client) using the pserver connector it didnt work(i changed ip with hex editor). So we used a different client( changed ip from share loginlist,channellist,servantlist) and we cud login fine. But the problem was creating character. You can create character then when u put location to loa or braiken it showed error. After that I created an account from sql...
|
All times are GMT +1. The time now is 18:20.
|
|