![]() |
Class question
Hey, I have one npc spread between alot of levels. I need to make a class that all the npcs can copy to so when I update the class it updates all. How would I do that? I constantly update the script too.
Thanks! EDIT: would this work? Btw this is going in an npc in the level so I used gs1. I want the npc to be the class npc basicly... Quote:
|
You make very little sense. Just make a class, add the script there, and use join scripts in the levels instead of the same script over and over again.
|
So this script would work?
PHP Code:
|
On another note, GS2 does not work offline, However once the level is online, a level based GS2 script, will work
|
I used to just clear out the entire script and do
NPC Code: |
Quote:
Whenever you update the class, it would update the script in that level. Though usually you have to also update the level to refresh the class, but not with everything. |
Example:
Local NPC: PHP Code:
PHP Code:
|
please, use
HTML Code:
this.join("className"); |
Quote:
join("class"); function onCreated() { join("class"); } etc |
Quote:
-- Andrew =(.. sorry. Only this. I use is in triggerserver("gui", this.name, "lolz"); |
| All times are GMT +2. The time now is 04:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.