Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2007, 03:44 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
Well, a couple things wrong with what I posted earlier. I assumed this was for online... Either way, there are going to be some complications... You can either go ahead with this and do it for GS1 so you can see it offline in the editor... or do it in GS2 and not see the immediate effects offline... but make things way easier for you later. If you do it for the editor you're going to have a HELL of a lot of editing to do if you need to change even the slightest thing in the NPCs.
I suggest just going and putting this in the qstone.txt:
PHP Code:
//#CLIENTSIDE 
// (not sure if this script needs to be clientside or not)
function onCreated() {
  
this.join("qstone");

And have the script inside the 'qstone' class on the server. This way if you need to change anything, you simply change the class script and tada, all the trees are changed. You won't be able to see the effects offline, but I think the pros outweigh the cons. You'll still be able to see where the NPCs are placed in the editor, though.

EDIT: oh ya, and it's setshape(1,32,32); not 0, sorry about that.
First, the class should be joined serverside, not clientside.
but yah, I agree with you.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.