Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 04-09-2011, 09:03 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by skillmaster19 View Post
This script wont work.
PHP Code:
function onCreated(){
showcharacter();
}

function 
onWa****(){
this.chat "test";

that works perfectly for me; on a singel level. may be that it doesn't work on a gmap.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #17  
Old 04-09-2011, 04:37 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by DustyPorViva View Post
Did you happen to change the players default sword ani with replaceani/custom system?
Maybe someone did before me, I'm not sure; however, before I received the server all of the classes and weapons were removed, and I reset my character and the onWas.hit still doesn't work.
Reply With Quote
  #18  
Old 04-09-2011, 05:54 PM
Fogell Fogell is offline
Ez
Fogell's Avatar
Join Date: Aug 2010
Location: United States, Georgia
Posts: 72
Fogell is on a distinguished road
Did you make sure to clean your client with a squeegee before testing anything?
__________________
Reply With Quote
  #19  
Old 04-09-2011, 06:15 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
Quote:
Originally Posted by Crow View Post
Does that break it?
Yes, all default hit detection relies on reading sword.gani.
Reply With Quote
  #20  
Old 04-09-2011, 06:18 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by DustyPorViva View Post
Yes, all default hit detection relies on reading sword.gani.
How would I fix it?
Reply With Quote
  #21  
Old 04-09-2011, 06:26 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
Quote:
Originally Posted by skillmaster19 View Post
How would I fix it?
Put player.chat = player.ani in a loop to double check and make sure if it's sword.gani or not.
Reply With Quote
  #22  
Old 04-09-2011, 06:28 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
Quote:
Originally Posted by DustyPorViva View Post
Yes, all default hit detection relies on reading sword.gani.
This particular event, maybe. But everything else seems to be unaffected. Still using the default stuff on Atlantis with at_sword.gani


Quote:
Originally Posted by skillmaster19 View Post
How would I fix it?
Doesn't sound like the gani is your problem. Are you trying this in a single level or on a gmap? Because I know for sure it doesn't work correctly on gmaps.



Edit:
Quote:
Originally Posted by DustyPorViva View Post
Put player.chat = player.ani in a loop to double check and make sure if it's sword.gani or not.
Pwetty pwease, make that player.ani.name. Thanks!
__________________
Reply With Quote
  #23  
Old 04-09-2011, 06:31 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by Crow View Post
This particular event, maybe. But everything else seems to be unaffected. Still using the default stuff on Atlantis with at_sword.gani




Doesn't sound like the gani is your problem. Are you trying this in a single level or on a gmap? Because I know for sure it doesn't work correctly on gmaps.



Edit:


Pwetty pwease, make that player.ani.name. Thanks!
Well its on a gmap
Reply With Quote
  #24  
Old 04-09-2011, 06:59 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
Quote:
Originally Posted by Crow View Post
This particular event, maybe. But everything else seems to be unaffected. Still using the default stuff on Atlantis with at_sword.gani
Hmm... I actually thought about that since you're the one who brought it up. Graal code might be very primitive and still using player.sprite for hit detection. Dunno *shrug*

Quote:
Originally Posted by Crow View Post
Pwetty pwease, make that player.ani.name. Thanks!
I actually had that at first but couldn't remember if it was the right way, heh. Been a while since I've scripted.
Reply With Quote
  #25  
Old 04-09-2011, 07:30 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
it says sword, so it seems like the gani is right :/
Reply With Quote
  #26  
Old 04-09-2011, 07:33 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
Quote:
Originally Posted by skillmaster19 View Post
it says sword, so it seems like the gani is right :/
Ya, it might be the gmap thing.
Reply With Quote
  #27  
Old 04-09-2011, 07:33 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
Quote:
Originally Posted by Deas_Voice View Post
afaik, it's clientsided... check that'
I think this issue here is that this has to be done Clientside if on a GMAP.
Reply With Quote
  #28  
Old 04-09-2011, 07:59 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by ffcmike View Post
I think this issue here is that this has to be done Clientside if on a GMAP.
yup thats it! thanks! too bad I have to rescript the whole thing now...
Reply With Quote
  #29  
Old 04-09-2011, 08:02 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
Quote:
Originally Posted by skillmaster19 View Post
yup thats it! thanks! too bad I have to rescript the whole thing now...
You could try using triggeraction to simply communicate hits from Clientside to Serverside.

Such as like:

PHP Code:
function onCreated(){
  
this.setshape(13232);
}

function 
onActionHit(){
  
//stuff
}

//#CLIENTSIDE

function onWasH1t(){
  
triggeraction(this.1this.1"Hit"params);

Reply With Quote
  #30  
Old 04-09-2011, 08:22 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by ffcmike View Post
You could try using triggeraction to simply communicate hits from Clientside to Serverside.

Such as like:

PHP Code:
function onCreated(){
  
this.setshape(13232);
}

function 
onActionHit(){
  
//stuff
}

//#CLIENTSIDE

function onWasH1t(){
  
triggeraction(this.1this.1"Hit"params);

Doesn't seem to work, I also tried triggering the server to do the stuff needed when hit.
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:49 AM.


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