![]() |
Can't join classes.
I've done this in the past. so perhaps I just forgot how to join the classes. But it's not working. Is this correct?:
NPC: PHP Code:
PHP Code:
|
Try joining it on the serverside.
|
Quote:
edit: no luck. |
onPlayerChats isn't an event of the player object.
|
Quote:
this.join instead of player.join. |
Quote:
Okay, would I be able to do this in an NPC? (I guess theyre called DBNPCs? The ones under the dragon icon.) If so, how would I communicate between a weapon and a dbnpc? edit: Quote:
|
When you join something you're basically copying and pasting the code into that weapon. If you join it to the player you can add extra functions to the player (like player.unstick()) but you can't use stuff like onKeyPressed and onPlayerChats which aren't events of the player.
Your code should look like this (and be in a weapon): PHP Code:
|
| All times are GMT +2. The time now is 03:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.