Hello guys. Thanks for all the help. I really didn't expect to get so much help on this. Anyway, how do I talk to the client? I could add something in -System such as
PHP Code:
function onCreated() {
setTimer(0.05);
}
function onTimeOut() {
if (client.stocksys != NULL) {
//blah blah blah, showing GUI ...
client.stocksys = NULL;
}
//Other -System junk here
setTimer(0.05);
}
function button.onAction() {
//triggers here
}
and then from my NPC
PHP Code:
function onActionClick(account) {
with(account) {
client.stocksys = {itemname, price, stock, weaponname};
}
}
and have it set it so it is NOT null so it knows to display the GUI from System, but is there a better way?
Thanks,
Chris