Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2008, 02:20 AM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Scripting ,speed changes, color changes and sword level changes

Can someone help me learn how to change the color of the player through a script that everyone sees or a gani ,and how to set the players speed higher, and last but not least how to change the sword level and how to make the npc to unequip after 30 second and then not to be able to use after 1 minute again.
-Thanks,
Toxen!
Reply With Quote
  #2  
Old 01-21-2008, 03:14 AM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
1) what do you mean?
2) to make the players speed higher, you would need to create a movement system.
3) i dont know how to change the sword level.
4) try this:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
}
function 
onWeaponFired()
{
 
setTimer);
 
this.active = !this.active
}
function 
onTimeOut()
{
  
//do functions that you do
  
sleep30 );
  
this.active = !this.active
  sleep
60 );
  
setTimer);

__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #3  
Old 01-21-2008, 04:25 AM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
For the color thing, I mean setting the whole players tailor all black, I was told their is a way to script it using player.alpha but supposdly that only shows to the player with the npc, I need it to show to everyone like then someone said you can do it using a gani, Im asking about that, and then the speed thing, Im not sure how to do it but I need the npc to also make them .5 faster then the current movement system :O!
Reply With Quote
  #4  
Old 01-21-2008, 05:05 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
I'm not following 100 percent what you're getting at, but I think I know what you mean about the colours thing. Coat, Skin, Sleeves, Shoes and Belt? You wouldn't need a gani for that, just use player.colors[]

eg:
PHP Code:
function onPlayerTouchsMe() {
//Skin
  
player.colors[0] = "black";
//Shoes
  
player.colors[1] = "black";
//Sleeves
  
player.colors[2] = "black";
//Coat
  
player.colors[3] = "black";
//Belt
  
player.colors[4] = "black";

As for player.alpha, that's visibility, to put it simply. If it's set to 1, you're solidly visible, but as you get lower and closer to 0, you visibly fade. It has to be used clientside, which is where a gani comes up. Everyone downloads ganis, so if someone had their current animation set to the gani using an alpha script, everyone will see the alpha set on the person using it. That'd come under Gani Scripting.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #5  
Old 01-21-2008, 05:17 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PHP Code:
player.swordpower++; 
that's how you raise the sword level I believe.
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 01-21-2008, 06:53 AM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Uhm, For the color thing, their is away to make any graphic that you have on u at the time a certain tint or color, like even ur hat all black...
And thanks Angel_light
Reply With Quote
  #7  
Old 01-21-2008, 03:41 PM
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
Quote:
Originally Posted by Toxen View Post
Uhm, For the color thing, their is away to make any graphic that you have on u at the time a certain tint or color, like even ur hat all black...
And thanks Angel_light
Use a gani to set player.red, player.blue, and player.green.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:34 PM.


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