Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   player.zoom (https://forums.graalonline.com/forums/showthread.php?t=86801)

GULTHEX 07-09-2009 11:54 PM

player.zoom
 
okay i tried player.zoom but people dont see me zoomed

im thinking on maby putting it in a gani

but im not exactly sure what to type in the gani to zoom

DustyPorViva 07-10-2009 12:11 AM

Ya, you have to put it in the gani.

cbk1994 07-10-2009 12:23 AM

Use gani scripts or loop through players and store the values in a player.attr flag.

GULTHEX 07-10-2009 02:29 AM

im not sure how to do that

is it possible to use it as inexample

and dusty read the hole thread

it says im not sure how to put it in a gani tho

im not asking if i can put it in 1

DustyPorViva 07-10-2009 02:33 AM

Quote:

Originally Posted by GULTHEX (Post 1505731)
and dusty read the hole thread

I read the 'hole' thread. You said, and I quote! "im thinking on maby putting it in a gani" and I confirmed that.

Unkownsoldier 07-10-2009 02:35 AM

Quote:

Originally Posted by GULTHEX (Post 1505678)
okay i tried player.zoom but people dont see me zoomed

im thinking on maby putting it in a gani

but im not exactly sure what to type in the gani to zoom

Gulthex, don't snap at Dusty, and you should type with proper grammar, not spacing your lines like that, using capitols and periods. Also, you don't type in a gani, you first create a gani, then implement that into a script. I suggest you read some of the other threads in here, they can explain how scripts work, and if you need help with ganis I suggest you go to that sub forum and ask.

GULTHEX 07-10-2009 02:43 AM

im only 12 im not usto using caps XD

cbk1994 07-10-2009 02:58 AM

Quote:

Originally Posted by GULTHEX (Post 1505735)
im only 12 im not usto using caps XD

You're only twelve? I was typing proper sentences when I was 12. Don't make excuses, make changes.

You need to have a GANI script, and in that GANI script, change player.zoom. You then put "ganiname.gani" into one of the player's player.attr[]'s, and then everyone will see it.

GULTHEX 07-10-2009 03:01 AM

So you mean do this

PHP Code:

SCRIPT
//#CLIENTSIDE
if (created) {
  
player.zoom=2;
}
SCRIPTEND 

inside the gani in notepad..

Then put the gani in a players attr's


And i just put caps :)

fowlplay4 07-10-2009 03:56 AM

Quote:

Originally Posted by GULTHEX (Post 1505739)
So you mean do this

SCRIPT
//#CLIENTSIDE
if (created) {
player.zoom=2;
}
SCRIPTEND

inside the gani in notepad..

Then put the gani in a players attr's


And i just put caps :)

That's the idea but some people use parameters to control the zoom instead a solid number.

Angel_Light 07-10-2009 09:22 AM

PHP Code:

SCRIPT
function onPlayerEnters()
{

  
player.zoom 2;

}
SCRIPTEND 

No need for //#CLIENTSIDE in a gani since it is clientside by default and try not to use GS1. =]
add that to the bottom of a gani. (if you're using idle or other default ganis, please name it different and use replaceani() so you dont overwrite peoples default ganis)

DustyPorViva 07-10-2009 09:28 AM

Also, onCreated() is not reliable in gani scripts, as with Angel's script shows you should be using onPlayerEnters() instead.

Gambet 07-10-2009 03:59 PM

Quote:

Originally Posted by DustyPorViva (Post 1505856)
Also, onCreated() is not reliable in gani scripts, as with Angel's script shows you should be using onPlayerEnters() instead.


Well, you can still use onCreated() but you'll just need a blank onPlayerEnters() in the script to make sure the script is always executed since the onPlayerEnters() works like a "wake-up call." I suppose it would make more sense to just use onPlayerEnters() instead to save the hassle but the onCreated() can still be reliable as long as you have an onPlayerEnters() as well.


All times are GMT +2. The time now is 04:54 PM.

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