Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Slight problem with hideplayer (https://forums.graalonline.com/forums/showthread.php?t=26594)

Gohan43331 03-30-2002 04:37 AM

Slight problem with hideplayer
 
I have a script that hides the player for .05 and then moves the player to 1,1 while keeping the focus on the old playerx,playery...

I then have a timeout loop (.05) that hides the player for .05...

When i go to remove these effects, everything is good, but the player never unhides....

I've tried hideplayer 0, hideplayer .05, but he never comes back (he went off into the void...)

Bleh....is there a command to show the player after hideplayer(2);?

Gohan

joseyisleet 03-30-2002 06:32 AM

-=Josey=-
I do belive, on a pay-to-play server, that you can use hideplayer2; and showplayer;. I'm not exactly sure. Someone correct me if I'm wrong.

Admins 03-30-2002 07:08 AM

I have not used hideplayer since months / years,
normally it should not work anymore in online mode.
You can use showstats to hide the player/s

Gohan43331 03-30-2002 11:07 AM

Quote:

Originally posted by Stefan
You can use showstats to hide the player/s
Doh...after looking through my code, guess who i find:

NPC Code:

showstats 0;


Feels quite stupid :)

Gohan

Admins 03-31-2002 06:24 AM

hehe

Saga2001 03-31-2002 09:06 AM

i did that a few times...:-/ i am sooo retarded...

screen_name 04-01-2002 08:55 PM

if you hide the player with showstats, that hides it for everyone if its online??

i didnt know that :D

Saga2001 04-02-2002 12:29 AM

Quote:

Originally posted by Stefan
I have not used hideplayer since months / years,
normally it should not work anymore in online mode.
You can use showstats to hide the player/s
Years?!?! *goes crazy*
Its probably benn months for me.

Saga2001 04-02-2002 07:12 AM

showstats 512; should hide online. because its hiding the player and making inviso...

screen_name 04-02-2002 09:30 AM

Quote:

Originally posted by Kaimetsu


Yes, but I was always under the impression that showstats' purpose was only to change what was shown on the user's screen. Why else would the player himself be grouped with things like the hud components?

i was also under the same impression, we may be wrong though

Stefan, what is right?

royce 04-02-2002 10:32 AM

Test it online people -_-.

nyghtGT 04-02-2002 11:54 AM

Quote:

Originally posted by screen_name
if you hide the player with showstats, that hides it for everyone if its online??


I dont think so since you can hide the status bars and stuff and those only show locally for you...

Bomy2Dope 04-03-2002 06:10 AM

Quote:

Originally posted by Stefan
hehe
spammer :megaeek: :D

Saga2001 04-03-2002 08:06 AM

I'll go and test it online, i'll edit this post with my results.

Results:
NPC Code:

showstats 0;
Hides all players for the current player, has no effects on others.
showstats 512;
It didn't appear to do anything...:-/
showstats 1024;
Shows only the player...



showstats - FAIL!!!

Saga2001 04-03-2002 10:07 AM

-FooL-

Well if you wanna be complex, you could always put the player off-screen and use setfocus... basically the same as hideplayer, albiet with limited controls...

Warcaptain 04-11-2002 11:25 AM

Quote:

Originally posted by Bomy2Dope

spammer :megaeek: :D

hehehhe that sig mad eme laugh as soon as i saw it lol


funny picture :-P

Deadly_Killer 04-19-2002 06:12 AM

Hide Player
 
So wait. We can't make it hide player anymore.
NPC Code:

// NPC made by Zell
if (playertouchsme) {toweapons Hide;
}
if (weaponfired) {
if (!hideon) {
set hideon;
}else unset hideon;
}
if (hideon) {
timeout = .05;
}
if (hideon&&timeout) {
hideplayer .05;
}



Saga2001 04-19-2002 06:54 AM

Re: Hide Player
 
Quote:

Originally posted by Deadly_Killer
So wait. We can't make it hide player anymore.
NPC Code:

// NPC made by Zell
if (playertouchsme) {toweapons Hide;
}
if (weaponfired) {
if (!hideon) {
set hideon;
}else unset hideon;
}
if (hideon) {
timeout = .05;
}
if (hideon&&timeout) {
hideplayer .05;
}



yeah we can, but I think there was some kinda problem with this guy's script.


All times are GMT +2. The time now is 12:31 PM.

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