Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-07-2001, 10:22 PM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
Only on Player Screen

How would I make an image appear over a player, but only that certain player can see it? So when they fire a weapon, an image appears over them with a picture of something.
__________________
Reply With Quote
  #2  
Old 11-07-2001, 10:26 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
NPC Code:

//#CLIENTSIDE
if (playertouchsme) {
showimg 201,door.gif,playerx+1.5,playery-2;
freezeplayer 5;
timeout = 5;
}
if (timeout)
hideimg 201;

__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #3  
Old 11-08-2001, 01:17 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
because Fry didn't really explain, why it's only for the player who used the weapon I'll do this:

the Index of the image only has to be higher then 200 then it will be local...
__________________
No Webhost at the moment
Reply With Quote
  #4  
Old 11-08-2001, 01:50 AM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
too lazy brr
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #5  
Old 11-08-2001, 02:02 AM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
Weapons can't have //#CLIENTSIDE btw..
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #6  
Old 11-08-2001, 02:07 AM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
I know, but my script wasn't a weapon, only a little npc =)
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #7  
Old 11-08-2001, 02:13 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Uh all wrong.
200 is only shown locally only.
//#CLIENTSIDE *is* needed for weapons on NPC Server. Although that's not NPC weapon what Fry made.
NPC Code:
//#CLIENTSIDE
if (weaponfired) {
setimg #c;
showimg 200,#f,playerx+1.5-width/2,playery-1-height/2;
setimg fkwarper.mng;
freezeplayer 5;
timeout = 5;
}
if (timeout)
hideimg 200;


I guess that would show whatever the chat text of the player is, and is automatically displayed centered or so...
Reply With Quote
  #8  
Old 11-08-2001, 04:20 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
no over 199 is local
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #9  
Old 11-08-2001, 01:41 PM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
Thanks, guys. So //#CLIENTSIDE will work online? Or do I need an NPC Server?
__________________
Reply With Quote
  #10  
Old 11-08-2001, 04:02 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
//#CLIENTSIDE won't do anything on non-p2p servers but will make the script run on the client on p2p servers.

CATPIAN OVBIOS TO TEH RESCOUE
Reply With Quote
  #11  
Old 11-08-2001, 10:11 PM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
Do I need it in the script? Or does the showimg script over 200 work for only local?
__________________
Reply With Quote
  #12  
Old 11-08-2001, 10:38 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Loriel
Uh all wrong.
200 is only shown locally only.
//#CLIENTSIDE *is* needed for weapons on NPC Server. Although that's not NPC weapon what Fry made.
NPC Code:
//#CLIENTSIDE
if (weaponfired) {
setimg #c;
showimg 200,#f,playerx+1.5-width/2,playery-1-height/2;
setimg fkwarper.mng;
freezeplayer 5;
timeout = 5;
}
if (timeout)
hideimg 200;


I guess that would show whatever the chat text of the player is, and is automatically displayed centered or so...
WRONG! Over 199 and under 201 is locla, the rest is "unlocal"
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #13  
Old 11-08-2001, 11:13 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
So 201 is not local? Uh.
Reply With Quote
  #14  
Old 11-08-2001, 11:50 PM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
what are the #s? 0-199 is shown to everyone, 200 and up is shown locally?
Reply With Quote
  #15  
Old 11-08-2001, 11:51 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by newfeatures2001.txt
- When doing showimg with an image index not in 0..199 then
it will only be shown local
Hmm..For all you people that apparently don't have a copy...Here..I suggest you read it
Attached Files
File Type: txt newfeatures2001.txt (65.9 KB, 148 views)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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:29 PM.


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