Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showimg serverside (https://forums.graalonline.com/forums/showthread.php?t=51164)

TB3 02-20-2004 07:58 AM

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??

Loriel 02-20-2004 02:57 PM

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.

TB3 02-20-2004 06:59 PM

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

TB3 02-20-2004 07:21 PM

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.

Loriel 02-20-2004 07:26 PM

Sorry, I do not know.

TB3 02-20-2004 07:45 PM

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 ;)

Kadar 02-21-2004 06:33 PM

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 ..


All times are GMT +2. The time now is 12:52 PM.

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