Command

08/26/2010 03:37 FadMucker#1
hey guys i wanna put this command from 5017 into 5165.

Quote:
if (Splitter[0] == "/gm")
{
if (Splitter[1] == "tro")
{
MyChar.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("480339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//blizzard
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//tornado
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//thunder
MyChar.AddItem("112389-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("135299-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
}
i change
Quote:
if (Splitter[0] == "/gm")
if (Splitter[1] == "tro")
to
Quote:
if (Cmd[0] == "/gm")
if (Cmd[1] == "tro")
is that correct? and im not sure about the rest, cud some1 please help?
08/26/2010 04:50 FadMucker#2
its prolly not the right way to do this or even try to do this but im still noob and learning, so far heres what ive managed to get working.

Quote:
if (Cmd[0] == "/gm")
{
if (Cmd[1] == "tro")
{
GC.MyChar.AddItem(130109);
GC.MyChar.AddItem(160249);
GC.MyChar.AddItem(150249);
GC.MyChar.AddItem(120249);
GC.MyChar.AddItem(118109);
GC.MyChar.AddItem(480339);
GC.MyChar.AddItem(410339);
GC.MyChar.AddItem(135299);

}
}
only problem is that i just get the item super with no stats or blessing etc.
what wud i need to add now to start to make stats on the items.
08/26/2010 08:43 dowhatuwant#3
why not do?
Code:
if (Cmd[0] == "/gm" && Cmd[1] == "tro")
{
GC.MyChar.AddItem(130109);
GC.MyChar.AddItem(160249);
GC.MyChar.AddItem(150249);
GC.MyChar.AddItem(120249);
GC.MyChar.AddItem(118109);
GC.MyChar.AddItem(480339);
GC.MyChar.AddItem(410339);
GC.MyChar.AddItem(135299);
}
&& = and
!= = not equal
== = equal
< = lower
> = higher
<= = lower or equal
>= = higher or equal
|| = or
08/26/2010 11:48 FadMucker#4
but what do i need to add to the code now to add the blessing hp and gems etc?
08/26/2010 12:06 dowhatuwant#5
search on grillmad, I made a release for that.
08/26/2010 12:26 FadMucker#6
Quote:
Originally Posted by ☆★Zuper★☆ View Post
search on grillmad, I made a release for that.
lol dude ive search over 50 threads of yours and still havent found it:/ paste the link bro :) thx
08/26/2010 12:33 dowhatuwant#7
[Only registered and activated users can see links. Click Here To Register...]

ex.
AddItem(ID, +, -, hp, gem1, gem2);
AddItem(ID, +, -, hp, gem1);
AddItem(ID, +, -, hp);
AddItem(ID, +, -);
AddItem(ID, +);
AddItem(ID);