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-03-2007, 09:37 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
Question Trailing???

im just new to this scripting stuff
im trying to make a sick script (desease)
but i need to add a trail i seen it on a few servers eg: graal legacy, interitus and in a AEON event. i wondered how i create the trail
could anybody help me on this please? thank you
Reply With Quote
  #2  
Old 12-03-2007, 09:54 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
btw its also used for earthquakes and stuff
Reply With Quote
  #3  
Old 12-03-2007, 10:13 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I'm not sure what you mean by 'trail'... elaborate?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 12-03-2007, 11:24 PM
Pimmeh Pimmeh is offline
Rgesitreed Uesr
Pimmeh's Avatar
Join Date: May 2007
Location: Utrecht, the Netherlands
Posts: 1,586
Pimmeh has a spectacular aura about
Send a message via AIM to Pimmeh Send a message via MSN to Pimmeh
I think he means particles that slowly fade after the player leaves a spot, like the remnants of an aura.
__________________
Oh, Death,
No wealth, no ruin, no silver, no gold
Nothing satisfies me but your soul
Reply With Quote
  #5  
Old 12-03-2007, 11:29 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Maybe also something like the blood on Era?
Reply With Quote
  #6  
Old 12-04-2007, 03:29 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
none of those..
i meen like a special trail part of a person its like when u get hit on era with a bottle my a NPC in some quest thing then u go drunk or something like that,
then when u walk everything slowly fades like
instead of instant moving (---->) it goes trailed (----> ---> --> -> >)
do i need to create a video to show what i meen xD?
Reply With Quote
  #7  
Old 12-04-2007, 04:04 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I know what you mean. You call that motion blur. Its actually a bug with the tile layers alpha value. Well, Stefan once said its not a bug, I still think it is. Basically, what you do is change the alpha value of the default tile layer.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
tilelayers[0].alpha .5;
  
player.gmap.tilelayers[0].alpha .5;

It has to be set below 1 and above 0. How strong the motion blur is depends on the alpha value. Smaller = stronger.
Reply With Quote
  #8  
Old 12-04-2007, 04:09 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
alright thats exactly what i ment, thank you crow
but how do i reset it putting it back to 1?
Reply With Quote
  #9  
Old 12-04-2007, 04:09 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Actually, you have to do so in a timeout, I believe.
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
onTimeout();
}

function 
onTimeout() {
  
tilelayers[0].alpha .5;
  
player.gmap.tilelayers[0].alpha .5;
  
setTimer(0.05);

Reply With Quote
  #10  
Old 12-04-2007, 04:14 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
thx dusty but i already have iti n a timeout
good tip tough
Reply With Quote
  #11  
Old 12-04-2007, 04:17 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I just tried that right now, and the timeout isnt needed Thats what I like about this.
Reply With Quote
  #12  
Old 12-04-2007, 04:30 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
and i fixed the blur thank you all
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 03:39 PM.


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