Kolro
2012-02-23 10:00:15
How Long have You Played Runescape?
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
I know basics of Pascal C++ and java.Can write simple scripts using resoures.
Are you a member of any other communities?
no
Tell us about yourself…
Please show us one (or multiple) of your scripts.
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
I know basics of Pascal C++ and java.Can write simple scripts using resoures.
Are you a member of any other communities?
no
Tell us about yourself…
From: Kolro
hmm
Hey.My name is Kacper and i'm from Poland.
Im 15 years old.Im very intrested in graphic.
I'm making 3d models in programs such as Maya or 3Dmax.I also know basic of programming in Pascal C++ and java.I play on electric guitar.IMO I can use english very well (as a guy from europe)
Please show us one (or multiple) of your scripts.
hmm...i haven't done any RS - simba scripts but here are some of my scripts for school
some includes here :P
int main(void) {
char zapytanie[100];
srand(time(NULL));
puts("Program infobot");
while (1) {
//puts("Podaj wartosc:");
if (fgets(zapytanie, 100, stdin) == zapytanie) {
if (strcmp(zapytanie, "ping\n") == 0) {
if (rand()/(double)RAND_MAX < 0.8) {
printf("pong\n");
} else {
printf("forver alone?\n");
}
}
if (strcmp(zapytanie, "exit\n") == 0) {
break;
}
} else {
}
}
return 0;
}
some Svg script piece
void choinka(char nazwa[], int w, int h, int p) {
int i, ht;
FILE *plik_svg;
plik_svg = fopen(nazwa, "w");
if (plik_svg != NULL){
puts("ok");
fprintf(plik_svg, "<svg width=\"%d\" height=\"%d\" xmlns=\"http://www.w3.org/2000/svg\">\n", w, h);
//fputs("<circle cx=\"250\" cy=\"250\" r=\"50\" fill=\"red\"/>", plik_svg);
ht = (3*(h-20))/(2*p+1);
for (i = 0; i < p; i++) {
fputs("<polygon points=\"", plik_svg);
if (i > 0) {
//fprintf(plik_svg, "%d,%d ", w/2, ((h-20)/p)*i - i*((h-20)/(3*p)));
//fprintf(plik_svg, "%d,%d ", w/2 + (h-20)/(p*2), ((h-20)/p)*(i+1) - i*((h-20)/(3*p)));
//fprintf(plik_svg, "%d,%d ", w/2 - (h-20)/(p*2), ((h-20)/p)*(i+1) - i*((h-20)/(3*p)));
fprintf(plik_svg, "%d,%d ", w/2, ht*i - i*(ht/3));
fprintf(plik_svg, "%d,%d ", w/2 + (i+1)*ht/2, ht*(i+1) - i*(ht/3));
fprintf(plik_svg, "%d,%d ", w/2 - (i+1)*ht/2, ht*(i+1) - i*(ht/3));
} else {
fprintf(plik_svg, "%d,%d ", w/2, ht*i);
fprintf(plik_svg, "%d,%d ", w/2 + ht/2, ht*(i+1));
fprintf(plik_svg, "%d,%d ", w/2 - ht/2, ht*(i+1));
}
fputs("\" fill=\"green\"/>\n", plik_svg);
}
fprintf(plik_svg, "<rect x=\"%d\" y=\"%d\" width=\"%d\" height=\"%d\" fill=\"brown\"/>\n", w/2-15, h-20, 30, 20);
fputs("</svg>", plik_svg);
fclose(plik_svg);
} else {
puts("nie ok");
}
}
(some things are written in polish but ill do scripts in english for simba)
(scripts from C++)