[Problem] Character.cs

05/04/2010 22:04 KinG^PlutO#1
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 ryuchetval#2
Quote:
Originally Posted by KinG^PlutO View Post
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 TheGuyWithTheCodes#3
Code:
AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
should be like that
05/05/2010 04:48 KinG^PlutO#4
I get error on general
05/05/2010 15:06 HardNotTo#5
GC.MyChar.AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);
05/05/2010 18:45 KinG^PlutO#6
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 HardNotTo#7
Quote:
Originally Posted by KinG^PlutO View Post
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 KinG^PlutO#8
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 HardNotTo#9
Quote:
Originally Posted by KinG^PlutO View Post
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 KinG^PlutO#10
Error when I use that:

Code:
[COLOR="Red"]AddItem(150249, 12, 255, 7, Item.Gem.SuperDragonGem, Item.Gem.SuperDragonGem);[/COLOR]
[Only registered and activated users can see links. Click Here To Register...]
05/05/2010 22:07 Arcо#11
Wait your using the code INSIDE of character.cs?
:facepalm:
Just AddItem, no Gc.MyChar.
05/05/2010 22:42 KinG^PlutO#12
[Only registered and activated users can see links. Click Here To Register...]
05/05/2010 22:43 Arcо#13
Look at the definition, you need commas in between EACH number.
05/05/2010 22:55 KinG^PlutO#14
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 Arcо#15
Quote:
Originally Posted by KinG^PlutO View Post
Now i'm using this code:


And I get this error:
The errors says it all, it takes 6 arguements.