[5165] certain codes norm players can use

01/30/2010 09:15 ASSN9NE#1
ok i got into the whole wanting all accounts to have the /item ability 2 use the command but norm people then could get gears that r faulty, how could i make it so i can make a list of certain commands they can use like:

/item GreenEarring Super 15 7 255 13 13
/item LightNecklace Super 15 7 255 13 13
/item IronRing Super 15 7 255 13 13
/item SoftBoots Super 15 7 255 13 13
/item GoodLuck 200 0 7 0 13 13
/item GoldTrophy 15 0 7 0 13 13
/item HeavenFan Super 15 7 0 13 13
/item StarTower 12 15 7 0 13 13

and not the whole /item command
01/30/2010 15:59 Kiyono#2
Well it should work if you make it like this:

if(cmd[0]="/items")
{
switch(cmd[1])
{
case "troitems"
{
//code to add items here
break;
}
case "archeritems"
{
//code to add items here
break;
}
}
To use something like this, /items troitems
01/30/2010 16:31 Jedex#3
Thanks Kiyono! :D
01/30/2010 17:56 ASSN9NE#4
can u possibly write the script wit 1 line containing the item in it insted of add items here i dont know exactly howthe line supposed 2 go
isnt there supposed 2 be a Add.Item 2 accutally recive the item?

Code:
GC.MyChar.Add.Item
Code:
{
case "troitems"
{
//code to add items here
break;
}
please insert this line how it should b written in the code 2 add items cause i keep just getting errors

Code:
/item GreenEarring Super 15 7 255 13 13
/item LightNecklace Super 15 7 255 13 13
01/30/2010 18:19 hunterman01#5
Bah seriously look at the source you can figure it out ;)
01/30/2010 23:22 Kiyono#6
Quote:
Originally Posted by ASSN9NE View Post
can u possibly write the script wit 1 line containing the item in it insted of add items here i dont know exactly howthe line supposed 2 go
isnt there supposed 2 be a Add.Item 2 accutally recive the item?

Code:
GC.MyChar.Add.Item
Code:
{
case "troitems"
{
//code to add items here
break;
}
please insert this line how it should b written in the code 2 add items cause i keep just getting errors

Code:
/item GreenEarring Super 15 7 255 13 13
/item LightNecklace Super 15 7 255 13 13
Don't just copy&paste that >_<
It was supposed to be an example.
01/31/2010 00:15 ukumaran10#7
what p server is this for, im using LastCO