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 01-20-2007, 02:19 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Classes?

I got a simple NPC in some of my levels which is just joining a class, nothing else...but after restarting Graal, its not there, so I have to do update level to show it...So my question is -> is this problem Graal or script related? I was not sure, but its not happening with my other classes, so I thought it might be a scripting problem :/
Reply With Quote
  #2  
Old 01-20-2007, 03:02 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Would need to know the script or at least the server name/level name.
Reply With Quote
  #3  
Old 01-20-2007, 04:17 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
NPC Script

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
join("save");

Class script

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setimg("e_save.png");
  
showimg(200,"light2.png",x-2,y-2.5);
  
changeimgcolors(200,.6,1,0,.5);
  
changeimgzoom(200,.5);
  
setshape2 4,5,{
  
0,0,0,0,
  
0,0,0,0,
  
0,0,0,0,
  
0,22,22,0,
  
0,22,22,0};



I also noticed its not happening with this class only, and it happened in other levels too. Btw, its happening on Esteria (thats why I asked you to restart it, Stefan :P).
Reply With Quote
  #4  
Old 01-20-2007, 04:28 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I've always joined classes serverside. I guess it doesn't actually matter?
Reply With Quote
  #5  
Old 01-20-2007, 05:17 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Twinny View Post
I've always joined classes serverside. I guess it doesn't actually matter?
Mh, I will just try it out I guess.

Edit: Omfg, that fixed it, thanx alot xD
Reply With Quote
  #6  
Old 01-20-2007, 09:12 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Yeah it's needs to be serverside since it's reading a script from the server. :P
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 01-20-2007, 09:27 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Angel_Light View Post
Yeah it's needs to be serverside since it's reading a script from the server. :P
Seems logically...damn Im kinda dumb sometimes -_-
Reply With Quote
  #8  
Old 01-20-2007, 10:10 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Don't worry, I've done worse. :P
__________________
Deep into the Darkness peering...
Reply With Quote
  #9  
Old 01-20-2007, 10:22 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
If possible you should join on serverside yes. It is possible to use join on clientside, but if they class is not loaded yet then the onCreated function will never be called, and so the npc is not shown.
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 05:45 AM.


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