![]() |
Joining and leaving classes
is there an event called when joining and/or leaving classes? Something along the lines of onJoinedClass(); and onLeaveClass();.
I'm at work right now so I cannot provide an exact example of what I'm currently doing but it's something along the lines of the following. PHP Code:
|
Yes, there does happen to be an event that happens when you join a class. I'm certain about onClassJoined() but not too certain about onClassLeaves (or something similar).
|
Quote:
|
PHP Code:
|
Quote:
|
Double post since you wanted to know what i was trying to achieve.
For certain classes such as skills I want to load all the data such as names, icons and descriptions when it's initially loaded. It's more for the benefit of tool tips than anything else. I don't feel the need to make a database with descriptions and such of each. I only have 4 skills per class that i can load in a single array for each of them so it's not like i'm setting 50 flags with a huge amount of data in them. I didn't feel like it requires an SQLite table. I'll see if this resolves my issue when i get off work. |
I have a similar approach on Maloria, although instead I make sure to load all the important classes upon login before proceeding with adding any weapons.
PHP Code:
|
I'm actually doing something more similar to your post than my original but sometimes joining clientside classes is touchy and unreliable as they don't load right away. I might need to add a sleep such as you have and that would probably resolve those issues.
|
onClassLoaded doesn't do anything it appears.
|
Are you giving your skills their own weapon script?
If so just store a 'this.description' flag for your other scripts to read from. |
Quote:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 06:28 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.