Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showing flags (https://forums.graalonline.com/forums/showthread.php?t=134267683)

Trakan 12-29-2012 06:28 PM

Showing flags
 
Hey all!
I'm in little troubles.. i use the DustyPorViva's custom movement system and i want to set my own ganis (i.e clientr.idle),

i have this
PHP Code:

player.ganis = {"#s(clientr.gani)","walk","grab","pull","push","sit","swim"}; 

"#s(clientr.idle)", i want to set the flag, but it's doesn't work :(..
Thanks for answering!

scriptless 12-29-2012 06:36 PM

Quote:

Originally Posted by Trakan (Post 1711099)
Hey all!
I'm in little troubles.. i use the DustyPorViva's custom movement system and i want to set my own ganis (i.e clientr.idle),

i have this
PHP Code:

player.ganis = {"#s(clientr.gani)","walk","grab","pull","push","sit","swim"}; 

"#s(clientr.idle)", i want to set the flag, but it's doesn't work :(..
Thanks for answering!

PHP Code:

temp.ganis = {clientr.gani,"walk","grab","pull","push","sit","swim"}; 

#s is GS1 not GS2... also dont use "" for when using variables.. "" is for strings.

Trakan 12-29-2012 06:46 PM

Quote:

Originally Posted by scriptless (Post 1711102)
PHP Code:

temp.ganis = {clientr.gani,"walk","grab","pull","push","sit","swim"}; 

#s is GS1 not GS2... also dont use "" for when using variables.. "" is for strings.

Not working... But i don't know why, i have clientr.gani=idle in my flags

scriptless 12-29-2012 06:56 PM

Quote:

Originally Posted by Trakan (Post 1711104)
Not working... But i don't know why, i have clientr.gani=idle in my flags

Yes it does work... you can even test it..

PHP Code:

player.chat temp.ganis[0]; 

You were trying to set the gani to an array of ganis.. 2 things wrong with that.. V5 doesnt support player.ani = ;// to set gani (i think may be wrong).. and 2.. you have to set it to a single gani.. not like 10 at once

Trakan 12-29-2012 07:44 PM

http://forums.graalonline.com/forums...hp?t=134258376

It's on the original script...

scriptless2 12-29-2012 10:51 PM

Quote:

Originally Posted by Trakan (Post 1711113)

Weird then maybe you can set player.ani to an array. But copy + paste my example to blank weapon.. it works.. if it doesnt work when you put it in dusties your doing something wrong.. or it doesnt work like that,

ffcmike 12-29-2012 11:57 PM

What isn't working exactly?

If you're setting player.ganis onCreated(), then updating clientr.gani later, the player.ganis array will still contain the original clientr.gani value.

Trakan 12-30-2012 12:09 AM

The thing i want to do is:

-Setting clientr.idle/walk/ect... with the weapon (i.e. dagger)
-With a custom movement system, player speed

I founded this one, because i can't scripting for now.
After that it have "player.gani ....", and i want to replace player.gani = "idle" .... with the flag clientr.idle

ffcmike 12-30-2012 12:32 AM

Quote:

Originally Posted by Trakan (Post 1711148)
The thing i want to do is:

-Setting clientr.idle/walk/ect... with the weapon (i.e. dagger)
-With a custom movement system, player speed

I founded this one, because i can't scripting for now.
After that it have "player.gani ....", and i want to replace player.gani = "idle" .... with the flag clientr.idle

It's difficult to understand what you're trying to do, it would be best to post the entire code.

scriptless 12-30-2012 12:40 AM

Quote:

Originally Posted by ffcmike (Post 1711151)
It's difficult to understand what you're trying to do, it would be best to post the entire code.

He's using Dusties code.. Copy + Paste it plus what he posted and you "should" have the same problem as him.

callimuc 12-30-2012 02:53 AM

Quote:

Originally Posted by Trakan (Post 1711148)
The thing i want to do is:

-Setting clientr.idle/walk/ect... with the weapon (i.e. dagger)
-With a custom movement system, player speed

I founded this one, because i can't scripting for now.
After that it have "player.gani ....", and i want to replace player.gani = "idle" .... with the flag clientr.idle

if you are just out for changing the movement speed, than you should probably stick with the default movement as you can change the speed there aswell

PHP Code:

player.defaultwalkspeed 0.5//default speed, same for player.diagonalwalkspeed
player.diagonalwalkspeed 0.5

both work clientside. for the gani changing you can always use

PHP Code:

replaceAni("oldgani""newgani"); //works clientside 

and to fix the gani again to the default one

PHP Code:

replaceani("oldgani""oldgani"); 



All times are GMT +2. The time now is 05:27 AM.

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