Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   function onWash1t() (https://forums.graalonline.com/forums/showthread.php?t=63365)

Prozac 01-11-2006 07:53 PM

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?

Ajira 01-11-2006 09:01 PM

I think wash1t only works for showcharacter npcs but I'm not home to test.

ApothiX 01-11-2006 09:20 PM

I've always thought putleaps was clientside only?

Yen 01-11-2006 10:16 PM

If I remember correctly, the function isn't named 'onWash1t'
Unfortunately, I don't remember what it was changed to, if it was changed.

Skyld 01-11-2006 10:20 PM

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.

Prozac 01-12-2006 05:40 AM

*lights up the Graal signal in the sky so Stefan can zoom out of his Graal cave like Batman and present the solution*

Ajira 01-12-2006 09:58 PM

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...

Silent 01-12-2006 10:23 PM

Quote:

Originally Posted by Ajira
He named it wash1t to avoid the swear filter...

I don't think that's what he meant.

Yen 01-13-2006 12:34 AM

Silly Ajira, I named it that to avoid the swear filter as well. :)

...
-Touches Ajira and runs away.-

Fox1545 01-13-2006 12:37 AM

onWasHit.

It is not that difficult.

Ajira 01-13-2006 09:10 AM

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.

napo_p2p 01-13-2006 09:33 AM

Quote:

Originally Posted by ApothiX
I've always thought putleaps was clientside only?

It is.

Admins 01-14-2006 06:44 PM

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.


All times are GMT +2. The time now is 06:18 PM.

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