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 01-17-2009, 08:19 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Speed script help! This time I have the script =]

Ok, so I have this problem with my script. It makes the player default speed faster, or slower if you choose. This is the problem though, whenever I use it, it makes me faster, but it disables my weapons. This is a big problem because my server is going to be a gun server and I need my weapons to be enabled. So to be clear, the problem is that I cannot equipt weapons with this script.

Someone please help me



Thanks

-Jamerson
Attached Files
File Type: txt Player Speed Script Help!.txt (4.4 KB, 199 views)
Reply With Quote
  #2  
Old 01-17-2009, 08:28 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
PHP Code:
disabledefmovement(); 
That one disables default movement and systems, Inventory included.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 01-17-2009, 08:31 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
I deleted that, and it just like made me invisible. How can I fix this?
Reply With Quote
  #4  
Old 01-17-2009, 08:32 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Do I do this?

enabledefmovement();
Reply With Quote
  #5  
Old 01-17-2009, 08:36 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Uh, no. Use your previous script, and when the player presses D (that's the button to use weapons, right?) trigger onWeaponFired() on the selected weapon.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 01-17-2009, 08:43 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Is there like an easier way to just set the default speed of the player without the feature of my script?

Just like a

this.speed = 0.6;

Just a simple script that makes the player faster.
Reply With Quote
  #7  
Old 01-17-2009, 08:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Not yet, no.

Quote:
Originally Posted by Stefan View Post
There is a player.defaultwalkspeed in the next Graal version although like some people said before you can't make the player faster than "1" (default is 0.5), for that you would need a custom walk system like on Era or Zone.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 01-17-2009, 08:54 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
I dont mind making it 1. Like Stefan said "There is a player.defaultwalkspeed in the next Graal version although like some people said before you can't make the player faster than "1" (default is 0.5), for that you would need a custom walk system like on Era or Zone."

What is the player.defaultwalkspeed script?

I dont care setting it to 1.
Reply With Quote
  #9  
Old 01-17-2009, 09:20 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by [email protected] View Post
Ok, so I have this problem with my script.
Your script? You should use your words more wisely next time. That script was made by Dusty.

Anyways, I'd suggest you make a custom weapon system, that would do something like..

PHP Code:
player.weapons[selectedweapon].trigger("WeaponFired"0); 
Then make an inventory who alters the selectedweapon variable..

Quote:
Originally Posted by [email protected] View Post
I dont mind making it 1. Like Stefan said "There is a player.defaultwalkspeed in the next Graal version although like some people said before you can't make the player faster than "1" (default is 0.5), for that you would need a custom walk system like on Era or Zone."

What is the player.defaultwalkspeed script?

I dont care setting it to 1.
player.defaultwalkspeed is a variable that you can edit with a script.
__________________
Reply With Quote
  #10  
Old 01-17-2009, 10:27 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by [email protected] View Post
Ok, so I have this problem with my script.
This isn't your script. You don't even know what variables are.

Quote:
Originally Posted by [email protected] View Post
this.speed = 0.6;
this.something is only read by a script, not the whole client.

Quote:
Originally Posted by [email protected] View Post
What is the player.defaultwalkspeed script?
It's a variable, not a script.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #11  
Old 01-18-2009, 01:07 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Use the onKeyPressed() function to tell when the "D" key is pressed, then you need to trigger the weapon, as Chompy posted.
__________________
Reply With Quote
  #12  
Old 01-18-2009, 12:00 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Someone close this.
Reply With Quote
  #13  
Old 01-18-2009, 04:03 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Quote:
Originally Posted by [email protected] View Post
...
That looks a lot like the bomy island movement system, some parts are similar done.
__________________
Reply With Quote
  #14  
Old 01-18-2009, 04:20 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Dan View Post
That looks a lot like the bomy island movement system, some parts are similar done.
Well, he didn't make it :o That's for sure.
__________________
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 09:45 AM.


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