Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-19-2002, 04:51 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Showimg?

Ok, heres the deal.
I have a thing that has to list some strings in images, now I used in the serverside with(getplayer(#a)) functionname(); and in functionname() i had showimgs which was after clientside. What am I doing wrong (I am not a bog p2p guy...)
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #2  
Old 03-19-2002, 07:04 PM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
Post your script, it would be much easier for me to fix.
__________________
Trunks
  #3  
Old 03-19-2002, 09:32 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
isnt with getplayer kinda like clientside, i mean it only works for that player, so dont worry about the //#CLIENTSIDE thing

am i right kai??
__________________
[signature]insert here[/signature]
  #4  
Old 03-19-2002, 11:07 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Kaimetsu


Hmm. Not really. It's still serverside, all the same commands are impossible. The only change is that when the with statement has been used, the NPC has something to talk about if it says "playerx=5;".
okay, gotcha
__________________
[signature]insert here[/signature]
  #5  
Old 03-20-2002, 09:41 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Well no, its like this:
its a database npc calling class blah...
NPC Code:

// Database npc:
if (created||initialized) {
showcharacter
join blah;
}
// class blah:
if (playerchats) {
tokenize #c;
if (strequals(#c,do #t(1) #t(2)))
with(getplayer(#a)) function();
}
//#CLIENTSIDE
function function() {
showimg blah;
}

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #6  
Old 03-20-2002, 10:08 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I might be wrong but you might not be able to use with(getplayer(#a))
I think I heard that somewhere, it's probably wrong
  #7  
Old 03-20-2002, 10:13 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Python523
I might be wrong but you might not be able to use with(getplayer(#a))
I think I heard that somewhere, it's probably wrong
it has worked fine on other scripts...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #8  
Old 03-20-2002, 11:25 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


The code from the class gets inserted in exactly where the join statement is, so you'd actually want to put it outside of the created||initialized flag. Also, the serverside section is calling a function from the clientside section. This cannot be done, even if you do use getplayer(#a) (which, I might add, is perfectly valid if a little strange. If you have access to #a already then you don't need getplayer to get access to the player's other properties).
yes, i didn't think of that, that was after a while of despratly trying to get it to work that i added the with...how could i do this than?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #9  
Old 03-20-2002, 08:42 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
=/. Now were getting into complicated matters.. x.x
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 07:33 PM.


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