Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-13-2006, 02:14 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Uh, you can't do catchEvent on events like that. It just doesn't work for some reason. You should use the standard onReceiveData() function, and pass that to onData().

PHP Code:
function onReceiveData(params...) {
  
onData(params...);

__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #2  
Old 07-14-2006, 04:04 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by ForgottenLegacy
Uh, you can't do catchEvent on events like that. It just doesn't work for some reason. You should use the standard onReceiveData() function, and pass that to onData().

PHP Code:
function onReceiveData(params...) {
  
onData(params...);

you can do catchEvent like that. I think you may have to do it like this, though: catchevent(this.req.name, ...)

Try that and see if it works.


Quote:
Originally Posted by Raeiphon
Hey um, that's nice, if you'd read the previous posts you'd know why it was like that.
Actually, you made no mention to why it is in a timeout, and not just in an onPlayerChats() handler. I can not think of any reason why you would need such a thing in a timeout.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.