Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   playertouchsme on serverside (https://forums.graalonline.com/forums/showthread.php?t=63093)

SmallLars 12-30-2005 09:40 PM

playertouchsme on serverside
 
when i use playertouchme on serverside
(yes, i use setshape in the npc)
the event every time getting called 2 times when i touch the npc.
first time when i have a distanz with my player to the npc of ~1.
and the second time when i really touch the npc.
clientside all works fine, with all versions of graal.
i think the event should only be called one time ?

VulcanP2P 12-31-2005 06:00 AM

Quote:

Originally Posted by SmallLars
when i use playertouchme on serverside
(yes, i use setshape in the npc)
the event every time getting called 2 times when i touch the npc.
first time when i have a distanz with my player to the npc of ~1.
and the second time when i really touch the npc.
clientside all works fine, with all versions of graal.
i think the event should only be called one time ?

You're doing a setshape on clientside and serverside?

ApothiX 12-31-2005 10:10 AM

Are you sure you have no stray calls to that function, or any random pixels lingering about that you could have bumped into?

SmallLars 12-31-2005 01:27 PM

i used a 32*32 pixel grafik that i created.
there are no random pixel.
and i tested it with a serverside charakter npc/shape to.
at first i only used setshape on serverside.
but i tryd to use it on both sites - same effect.
i am sure that there are no other calls to this event/function.
i tested it on 2 servers - same effect, every time when i touch the npc, playertouchsme getting called 2 or 3 times ......

Admins 01-02-2006 04:16 PM

It's called each time the player makes a step I guess.
On clientside it's remembering the last npc you have touched to not repeat the playertouchsme event too often, could add that on serverside too if its a problem.

ZeLpH_MyStiK 01-02-2006 07:34 PM

Speaking of playertouchsme...i think it's about time it's changed to playertouchesme.

SmallLars 01-03-2006 05:22 PM

yes, its a problem, please add it stefan <3

napo_p2p 01-03-2006 08:41 PM

Quote:

Originally Posted by ZeLpH_MyStiK
Speaking of playertouchsme...i think it's about time it's changed to playertouchesme.

Leave it :p.

Breaking the habit of typing 'touchs' instead of 'touches' will be too much for me to handle. :cool:

Angel_Light 01-03-2006 09:13 PM

Preach it napo ^^ and is it that the script is timeout or something of the sort???

xAndrewx 01-03-2006 09:31 PM

Quote:

Originally Posted by Angel_Light
Preach it napo ^^ and is it that the script is timeout or something of the sort???

huh?

talkingnoodle 01-03-2006 11:05 PM

wat?

Angel_Light 01-04-2006 01:08 AM

is there a timeout(); or something of the sort in it, it would do that is there is

ZeLpH_MyStiK 01-04-2006 01:18 AM

Quote:

Originally Posted by Angel_Light
is there a timeout(); or something of the sort in it, it would do that is there is

If you're using GS2:
it's
setTimer(float);
not timeout();
it is called by using
function onTimeOut() {}

Angel_Light 01-04-2006 01:43 AM

timeout() works for me.... lol XP


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

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