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
  #16  
Old 02-20-2004, 07:58 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
This is what I have found out about database npcs.

A DB NPC (Not Weapon)

//#SERVERSIDE

Showimg 200 + or 200 - / with .gif format - Doesnt show
Showimg 200+ / with .png - Doesnt show
Showimg 200- / with .png - Shows to everyone

//#CLIENTSIDE

Showimg 200+ : Shows to current player not others
Showimg 200- : Shows to current player not others

A GANI

//#SERVERSIDE

N/A Because in gani is a clientside operation

//#CLIENTSIDE

Showimg 200 + or 200 - : Shows to all players as clientside no info to server.


A WEAPON

//#SERVERSIDE
N/A

//#CLIENTSIDE
Showimg 200+ : Shows to all players
Showimg 200- : Shows to client only
These show even when vis is set to 4 lolz

Im guessing that showani's and showtexts both follow this trend too but im not verifying it this should help alot of people I hope.

It also seems that from a weapon you can only 1 showani will show to all players at a time can this be veryfied? Its whats proving correct for me I just want to make sure.

IT Also seems that you cant use a showimg in a showani through a weapon so that all players see it MY god thats alot of manipulation.

{MY PROBLEM PLZ HELP}
One thing bothers me, in a GANI SCRIPT if you use a client.string as one of the variables, such as the color of a showimg, I don't know how to read the client string from the PLAYER THAT IS DISPLAYING THE GANI and not the player SEEING the gani. Any help?
Scenario. I have 2 players one has a green apple and one a red
Player A has a red apple
Player B has a green apple
They are both using a gani attached to their current animation with a showimg for the apple . client.applecolor is set to red on player A and green on Player B. In the showimg it uses changeimgcolors to change the color of the apples to client.applecolor. The problem is Player A see's both apples as red and Player B sees both apples as green. HOW DO YOU STOP / Prevent this??
__________________

To the sun of your age, I arise

Last edited by TB3; 02-20-2004 at 08:13 AM..
Reply With Quote
  #17  
Old 02-20-2004, 02:57 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by TB3
A WEAPON
//#SERVERSIDE
N/A
... ?
Quote:
{MY PROBLEM PLZ HELP}
One thing bothers me, in a GANI SCRIPT if you use a client.string as one of the variables, such as the color of a showimg, I don't know how to read the client string from the PLAYER THAT IS DISPLAYING THE GANI and not the player SEEING the gani. Any help?

Obviously not - you cannot just read strings from another player, that has never been possible clientside.
You will need to put the things you are interested in into the #P(i) attributes.
Reply With Quote
  #18  
Old 02-20-2004, 06:59 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by Loriel
... ?
[/B]
I didn't test actionserver side with the weapons

Quote:
Originally posted by Loriel
Obviously not - you cannot just read strings from another player, that has never been possible clientside.
You will need to put the things you are interested in into the #P(i) attributes. [/B]
I figured I would have to, but can you explain how I would do that considering Im using a gani attached to the player inside of a gani? ( or is it supposed to read it the same? ) It might not be working the way im trying it ill go try again and post status
__________________

To the sun of your age, I arise

Last edited by TB3; 02-20-2004 at 07:10 PM..
Reply With Quote
  #19  
Old 02-20-2004, 07:21 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
I found a solution!! I must tokenize #P3 then set a this.c={#t(0),#t(1)};
in order to use it as a variable, I wish I could use #I() with it but thats not possible as it reads #P3 dynamicaly so if #P3 was 343 it would try and find the string named #P3 unless there is another way.
__________________

To the sun of your age, I arise

Last edited by TB3; 02-20-2004 at 07:44 PM..
Reply With Quote
  #20  
Old 02-20-2004, 07:26 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Sorry, I do not know.
Reply With Quote
  #21  
Old 02-20-2004, 07:45 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by Loriel
Sorry, I do not know.
I edited post above i had to regress my scripting a bit in order to do something more complicated... Thank god i figured it out i wouldnt sleep tonight lolz

thanks for the help
__________________

To the sun of your age, I arise
Reply With Quote
  #22  
Old 02-21-2004, 06:33 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
Cant show big pics.

I tried showing light2.png and it didnt work , is that the problem?

Just use showani and put the gif in the gani, its alittle bit more work but atleast it works ..
__________________
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:25 PM.


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