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
  #1  
Old 12-29-2012, 06:28 PM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
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!
Reply With Quote
  #2  
Old 12-29-2012, 06:36 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Trakan View Post
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.
Reply With Quote
  #3  
Old 12-29-2012, 06:46 PM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
Quote:
Originally Posted by scriptless View Post
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
Reply With Quote
  #4  
Old 12-29-2012, 06:56 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Trakan View Post
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
Reply With Quote
  #5  
Old 12-29-2012, 07:44 PM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
http://forums.graalonline.com/forums...hp?t=134258376

It's on the original script...
Reply With Quote
  #6  
Old 12-29-2012, 10:51 PM
scriptless2 scriptless2 is offline
Registered User
Join Date: Sep 2011
Posts: 3
scriptless2 will become famous soon enough
Quote:
Originally Posted by Trakan View Post
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,
Reply With Quote
  #7  
Old 12-29-2012, 11:57 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
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.
Reply With Quote
  #8  
Old 12-30-2012, 12:09 AM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
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
Reply With Quote
  #9  
Old 12-30-2012, 12:32 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Trakan View Post
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.
Reply With Quote
  #10  
Old 12-30-2012, 12:40 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by ffcmike View Post
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.
Reply With Quote
  #11  
Old 12-30-2012, 02:53 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Trakan View Post
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"); 
__________________
MEEP!
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 10:16 AM.


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