Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-18-2011, 05:34 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Weapons joined to a class do not stay joined after reconnecting.

Just as the topic title says. I've been using classes joined to weapons to handle buff processing as well as stat processing.

However each time I disconnect, upon connecting to the server again, the classes will be no longer joined to my weapon. They will remain unjoined until I open the weapon script and click "Apply". I end up having to do this every time I connect to the server.

I figured that joining them with

PHP Code:
function onTimeout(){
  
join("classname");
setTimer(0.05);} 
instead of the method I've been using which is
PHP Code:
function onCreated(){
  
join("classname");

would remedy the problem, but it doesn't make any difference. Using an onPlayerenters() event instead does not fix the issue either. Nor does calling onCreated(); inside of an onTimeout().

Is there something I'm missing? Is this a bug? What's going on?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:44 PM.


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