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 03-01-2005, 10:06 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Classes & Imgs

Err, why isn't this working? (Its a class)

if (created) setimg block.png;
//#CLIENTSIDE
//Everything else is down here etc..

It stay's the image that the npc get's from the level editor instead of going to block.png
Reply With Quote
  #2  
Old 03-01-2005, 10:14 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
because if (created) is a clientside only flag
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #3  
Old 03-01-2005, 10:16 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by falco10291029
because if (created) is a clientside only flag
falco please don't ever post again


Quote:
Originally Posted by KuJi
if (created) join block;
join is not meant to be used in any events

Quote:
Originally Posted by falco10291029
Quote:
Originally Posted by ProjectShifter
Because there is no actual creation of the NPC serverside, you can not do if (created) on the serverside,
that's ProjectShifter for you
__________________


Last edited by Evil_Trunks; 03-01-2005 at 10:29 PM..
Reply With Quote
  #4  
Old 03-02-2005, 05:28 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Quote:
Originally Posted by Evil_Trunks
falco please don't ever post again
<3
Reply With Quote
  #5  
Old 03-01-2005, 10:17 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
if (created) isn't a clientside only flag.

Because, if it was. It wouldn't even join the class, now would it?

if (created) join block;
Reply With Quote
  #6  
Old 03-01-2005, 10:17 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Um, no?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #7  
Old 03-01-2005, 10:18 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
? Alright I am going to do what you said, I will bet you 1000$ it won't work.
Reply With Quote
  #8  
Old 03-01-2005, 10:19 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Hey, what do you know? It didn't work, k bye.

Set img won't work at all in classes for me, unless clientside.
Reply With Quote
  #9  
Old 03-01-2005, 10:24 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
Originally Posted by Projectshifter
Because there is no actual creation of the NPC serverside, you can not do if (created) on the serverside,
That's where i learned that if crated wouldnt work serverside. Excuse me for being misinformed Evil_Trunks (and btw it never works for me serverside anyway except in putnpc2 npcs or a class npc).
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #10  
Old 03-01-2005, 10:28 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Alright then, how come it can't change the image at all then?
Reply With Quote
  #11  
Old 03-01-2005, 10:33 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Alright, I think I got it to work. When the npc has an image under the editor, it can't be switched through a script serverside on a class :o

If (created) works tho
Reply With Quote
  #12  
Old 03-02-2005, 11:04 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
How many times do I need to remind people to not post bad scripting advice?

One more, it seems. I remind you that consistently posting bad scripting advice results in the inability to view/post in the scripting forum.

Evil has the right idea about your problem, KuJi.
Reply With Quote
  #13  
Old 03-02-2005, 11:34 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Kuji, 'join' is not really a command per se. It is processed long before the script is executed and, at that point, it is simply replaced by the contents of the specified class. If your script does not work, think about what it would look like after that replacement.
__________________
Reply With Quote
  #14  
Old 03-04-2005, 04:23 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Did I not say I fixed the problem? Or maybe, I thought I said it and I thought I posted stating that but other's don't see it. Also, you can close the thread now.
Reply With Quote
  #15  
Old 03-04-2005, 07:22 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by KuJi
Also, you can close the thread now.
For what reason?
Reply With Quote
  #16  
Old 03-04-2005, 08:42 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by KuJi
Did I not say I fixed the problem?
I was not helping to fix the problem, I was helping to dispell your ignorance. You had not yet assured me that it had already been done.
__________________
Reply With Quote
  #17  
Old 03-04-2005, 04:23 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
I don't understand a lot here ... the only thing i could imagine is that block.png is not existing, so the server doesn't allow the npc to switch to that image.
Reply With Quote
  #18  
Old 03-04-2005, 10:06 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Well, I prolly spelled if (created) wrong or something. It works now lol.


And I was saying close it, cause the problem was solved.
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 06:58 AM.


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