Siccnezz
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Siccnezz

Owned By Mr & Mrs Sicc
 
HomePortalLatest imagesRegisterDonateLog in

 

 A brief description on how to code

Go down 
3 posters
AuthorMessage
Guthan08
Head mod
Head mod
Guthan08


Number of posts : 53
Age : 28
Location : manchester
Registration date : 2008-11-02

A brief description on how to code Empty
PostSubject: A brief description on how to code   A brief description on how to code Icon_minitimeFri Nov 07, 2008 11:20 am

Ok some of you may think coding is very hard. It is o.o no no calm down its not that bad... kinda :s


Ok well first you mgiht wanna see a layout of a code. i will explain the different points of it.

Code:

if(command.equalsIgnoreCase("item")&& playerRights >= 1){ the 1 equals player rights(command.equalsIgnoreCase("item")){ <--- the command ::item
disconnected = true;
addItem(0995,1); [color=red]<---the item you recieve and amount[/color]
sendMessage("send message 1"); <--a message that appears on the chat box
sendMessage("send message 2"); <-- second message you recieve on the chatbox
} <-- very important. it meens the code has ended. and you dont get it mixed up with other codes.



heres an example you might propoly understand:

Code:
if(command.equalsIgnoreCase("starter")&& playerRights >= 1){ (command.equalsIgnoreCase("starter")){
disconnected = true;
addItem(0995,1);
sendMessage("You have used your starter package");
sendMessage("You have ran out of uses! ");
}
thats a starter command with only one item you recieve. Here is another starter package where you recieve many items:

Code:
if(command.equalsIgnoreCase("starter")&& playerRights >= 0){ (command.equalsIgnoreCase("starter")){
disconnected = true;
addItem(0995,1);
addItem(0995,1); ]<---i added loads of items
addItem(0995,1);
addItem(0995,1);
sendMessage("you recieve your starter package"); <-- you can also change the text you recieve
sendMessage("wewt!");
}


at the end of a command you always need } to end your command.


here are player rights you add to a command so only owner, admin and or mod can use it

3 <-- thats owner player rights. only owners can use the command.

2<-- thats administrator player rights. Only admins can use that command

1<-- thats moderator player rights. Only mods can use that commands

0<-- that's normal player rights. Everyone can use that command

Theirs also hidden admin. 4 <-- those player rights make only admins and owners use the command.


the player rights go here:
Code:

if(command.equalsIgnoreCase("item")&& playerRights >= 1){ <-- the number

if you want a command generator go to silabsoft and type in search: Command generator
I cant give u download link because i don't have virus scan :S



Got any questions?? pm me or reply to this topic. Wanna have a conversation about it???

add the_a_dude@hotmail.com i wont discuss stuff on the game. i will be on msn

want me to make different guides for coding? suggest them in a pm or a reply post


Last edited by Guthan08 on Sun Dec 14, 2008 2:56 am; edited 4 times in total
Back to top Go down
http://www.demongaming.co.nr
Strandedplayas
Junior Member
Junior Member



Number of posts : 27
Registration date : 2008-12-13

A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitimeSat Dec 13, 2008 5:21 am

what!!!!!!you call that easy its too hard for smartys lol u guys pwn.If i even knew how to code id be super happy XD
Back to top Go down
Mrs Sicc
FearScape Owner <3
FearScape Owner



Number of posts : 61
Age : 31
Location : England
Registration date : 2008-11-02

A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitimeSat Dec 13, 2008 10:30 am

this is basic coding... this is just command codings, ill post a more complex for people who enjoy a little bit of fun later, also guthan please post a virus scan with all downloads of this will be locked and deleted
Back to top Go down
Guthan08
Head mod
Head mod
Guthan08


Number of posts : 53
Age : 28
Location : manchester
Registration date : 2008-11-02

A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitimeSun Dec 14, 2008 2:48 am

oh dang.. i dont even hav a virus scanner. i will remove the download then. And thanks stranded this took me half an hour to type up Razz im just taking ur comment as a compliment.
Back to top Go down
http://www.demongaming.co.nr
Mrs Sicc
FearScape Owner <3
FearScape Owner



Number of posts : 61
Age : 31
Location : England
Registration date : 2008-11-02

A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitimeTue Dec 16, 2008 12:01 pm

thanks guthan for removing the link, this topic will stay open now, btw good job Wink
Back to top Go down
Guthan08
Head mod
Head mod
Guthan08


Number of posts : 53
Age : 28
Location : manchester
Registration date : 2008-11-02

A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitimeTue Dec 16, 2008 12:02 pm

thanks its no problem at all mate. I always try my best to do a good job
Back to top Go down
http://www.demongaming.co.nr
Sponsored content





A brief description on how to code Empty
PostSubject: Re: A brief description on how to code   A brief description on how to code Icon_minitime

Back to top Go down
 
A brief description on how to code
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Siccnezz :: General :: Tutorials-
Jump to: