View Single Post
  #6  
Old 07-17-2006, 02:48 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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 = {itemnamepricestockweaponname};
}

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
Reply With Quote