Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2006, 07:53 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
function onWash1t()

In trying to script an npc it seems that the wash1t (cant spell it with an i becasue it gets censored) does not work on a serverside detection.

This is a class with a 32x32 size image that is on the server and shows up.
PHP Code:
function onCreated()
{
setshape 1,32,32;
}

function 
onWash1t() //change 1 to i if you test this
{
putleaps 0,x+.5,y+.5;
hide;
sleep 5;
show;

why is the onWash1t not detected?
Reply With Quote
  #2  
Old 01-11-2006, 09:01 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
I think wash1t only works for showcharacter npcs but I'm not home to test.
__________________
Liek omigosh.

Reply With Quote
  #3  
Old 01-11-2006, 09:20 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
I've always thought putleaps was clientside only?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #4  
Old 01-11-2006, 10:16 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
If I remember correctly, the function isn't named 'onWash1t'
Unfortunately, I don't remember what it was changed to, if it was changed.
Reply With Quote
  #5  
Old 01-11-2006, 10:20 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
If I remember correctly, the function isn't named 'onWash1t'
Unfortunately, I don't remember what it was changed to, if it was changed.
Hm, I thought it was the same.
__________________
Skyld
Reply With Quote
  #6  
Old 01-12-2006, 05:40 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
*lights up the Graal signal in the sky so Stefan can zoom out of his Graal cave like Batman and present the solution*
Reply With Quote
  #7  
Old 01-12-2006, 09:58 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Yen
If I remember correctly, the function isn't named 'onWash1t'
Unfortunately, I don't remember what it was changed to, if it was changed.
He named it wash1t to avoid the swear filter...
__________________
Liek omigosh.

Reply With Quote
  #8  
Old 01-12-2006, 10:23 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Quote:
Originally Posted by Ajira
He named it wash1t to avoid the swear filter...
I don't think that's what he meant.
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.
Reply With Quote
  #9  
Old 01-13-2006, 12:34 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Silly Ajira, I named it that to avoid the swear filter as well.

...
-Touches Ajira and runs away.-
Reply With Quote
  #10  
Old 01-13-2006, 12:37 AM
Fox1545 Fox1545 is offline
Registered User
Join Date: Jul 2004
Posts: 78
Fox1545 is on a distinguished road
onWasHit.

It is not that difficult.
Reply With Quote
  #11  
Old 01-13-2006, 09:10 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Yen
Silly Ajira, I named it that to avoid the swear filter as well.

...
-Touches Ajira and runs away.-
Oh I see what you meant. x.x
But I think that is the correct function.
__________________
Liek omigosh.

Reply With Quote
  #12  
Old 01-13-2006, 09:33 AM
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
Quote:
Originally Posted by ApothiX
I've always thought putleaps was clientside only?
It is.
__________________
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
  #13  
Old 01-14-2006, 06:44 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
onWasHit is correct, but putleaps doesn't work on serverside. Have you tried to output some debug info like echo("I was hit!") ?
Hmmm activating it by sword should work. You can also call the command "hitobjects" on serverside or clientside, which doesn't seem to work fine on gmaps though. If some server needs "hitobjects" to work on gmap then we can probably add support for it.
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 04:39 PM.


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