Quote:
Originally Posted by zokemon
Yeah, if you don't know what every line in a script is doing, you should be prepared for people making such states towards you if you try to explain what's wrong. Not trying to persuade you from giving advice but rather you should learn more about GS2 first  .
|
QUOTED FOR TRUTH
It was so extremely irritating to have the
GST tell me how my script was wrong when they didn't understand
jack-**** about what it was doing.
http://forums.graalonline.com/forums...t=73340&page=2
Anyhow...
PHP Code:
if (params[0] == "addquantity") {
for (temp.i = 0; i < clientr.items.size(); i ++) {
if (clientr.items[i][0] == params[1]) {
clientr.items[i][1] += params[2];
break;
}
}
}
You shouldn't be using client flags for long strings of data unless you plan to never use the /open command on RC.