![]() |
join problems
I have some serverside local NPCs using a class on the server for house furniture where you can drag it with your mouse to move it. The dragging part is done, but I'm having a problem with 1 little thing...The join part. As of now, the local npcs set the string thiso.obj_archetype (also tried this.) to the type of furniture it is (bed, chair, etc...).
I don't think its possible to do join #s(string); But here's what I have now: PHP Code:
PHP Code:
Can anyone help? |
First of all, as you should know, thiso.string is only used when using the "with" command. Also, make suyre the script is serversided, you cant use this.string clentsided. I would use the bottom script, and just change the string names to this.whatever.
|
Try diong a sendtorc or such to verify that it's actually going into that bracket and verifying it, if not, it's not joining simply because your code is faulty. Make sure it works and let me know, I would be willing to bet that is your problem.
|
Quote:
Quote:
|
it probably is joining them both when the NPC is created
i dont think join acts like a normal command |
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
NPC Code: This should join before you say anything. |
Is this a class joining classes?
When i was experimenting i found the class itself becomes part of the class it joins, rather than the individual instance of the class. |
Its a class joining a class. Anyways. The ph_ scripts are basically some image stuff and setshape stuff (maybe other functions later). Right now I made the stuff clientsided...I don't have a problem with the NPC anymore, but I think this should be fixed.
Make the join command work correctly so it obeys iff (conditions) it is placed under. |
Join is a static directive, dawg. It's not a command per se.
Also, read KSI-GS. |
as kaimetsu said its a static directive it doesnt matter where you put it if its there it will join that class IE the script of the class will be added to the npc it cannot fall into if statements so you will need to do something different.
An example being use putnpc2 inside the if statements and inside of the putnpc 2 script have it join the appropriate class eh? |
| All times are GMT +2. The time now is 06:20 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.