![]() |
Database npcs and objects
V------------------------------------------------------V
gang_Test.rank.leader.Boss.ChiefBoss= "Chief Underboss"; gang_Test.rank.leader.Boss.Underboss= "Underboss"; gang_Test.rank.leader.Boss= "Boss"; gang_Test.rank.leader.Boss.Tester= "Tester"; gang_Test.rank.leader.Boss.Player= "Player"; gang_Takzhe.rank.leader= "KuJi"; ^------------------------------------------------------^ The above is in a database npc called Gang Control. How would I be able to read that gang_Test.rank is an object and everything after it should be added to a object called gtest. I've tried several things: One of them would be: gtest = new TStaticVar(); gtest = this.gang_Test.rank; With still nothing working, and even after talking to a couple of friends that script I still can't solve it. If you know a way, please post it. Thanks |
Your variables seem a bit odd to me.
Quote:
Before you set these variables in the DB-NPC, did you do something like: PHP Code:
|
How about this?
PHP Code:
|
Quote:
If that 'getObjKeys' function is what I think it is, it's redundant. You can just use this.objectname.getvarnames() to return an array with the list of members in it. |
Quote:
|
| All times are GMT +2. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.