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 08-14-2002, 10:55 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Disableweapons and playersays

Disableweapons:

Is there anyway for disableweapons for only the player? like

if (playersays(dis)) {disableweapon only for the player that say this)


Playersays:

I have heard that playersays is not accepted anymore...is this true?
__________________
-Kjetil Valen
Reply With Quote
  #2  
Old 08-14-2002, 11:38 PM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
Quote:
Originally posted by Kaimetsu
Playersays is deprecated. You are advised to use playerchats and then analyse the chat string (stored in #c).
if you dont know what he means
NPC Code:

if (playerchats&&strequals(#c,dis)) {
do this and that;
}

__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #3  
Old 08-14-2002, 11:52 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Kai, I know where you are coming from, but you also have to remember that most of the people on these boards are of 16 years of age or less. They don't understand some of the words you use, which slow them down trying to decypher your posts.

....
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 08-14-2002, 11:56 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
i knew that, but i just wanna ask, cuz i have many places on my PW if (playersays)

but now i need to know:


Is there anyway for disableweapons for only the player? like

if (playerchats&&streqals(#c,dis)) {disableweapon only for the player that say this)
__________________
-Kjetil Valen
Reply With Quote
  #5  
Old 08-15-2002, 12:03 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
You need to know something, if a script is called on clientside, it is executed for that client.

so if the script would only affect the player that says it anyways




i feel a little stupidier for reading this Xx
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 08-15-2002, 12:05 AM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
you mean haveing

//#clientside

now the script?
__________________
-Kjetil Valen
Reply With Quote
  #7  
Old 08-15-2002, 12:07 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
yes, yes
__________________
[signature]insert here[/signature]
Reply With Quote
  #8  
Old 08-15-2002, 01:50 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: Here

Quote:
Originally posted by SingleChance
// NPC made by Stormz
//#CLIENTSIDE
if (playerchats && strequals(#c,Dissable Weapons)){disableselectedweapons;
noplayerkilling;
}
Dont use this 1... lol jk its just toran and that wont let u post scripts>3
thats a uber l33t script, i must steal for my playerworld and say i made it

*Evil laugh inserted here*
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 08-15-2002, 07:23 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Talking LOL

If you do that you'll have to test it online with your friend or someone.
Reply With Quote
  #10  
Old 08-15-2002, 08:42 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Re: Here

Quote:
Originally posted by SingleChance
// NPC made by Stormz
//#CLIENTSIDE
if (playerchats && strequals(#c,Dissable Weapons)){disableselectedweapons;
noplayerkilling;
}
Dont use this 1... lol jk its just toran and that wont let u post scripts>3
What?
Reply With Quote
  #11  
Old 08-15-2002, 03:17 PM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
Talking

Lol dont its to good !.
And toran u close down a post when u see a script in the forum postage if you see
noplayerkilling;
or somet u close the thread
Reply With Quote
  #12  
Old 08-15-2002, 07:21 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally posted by screen_name
Kai, I know where you are coming from, but you also have to remember that most of the people on these boards are of 16 years of age or less. They don't understand some of the words you use, which slow them down trying to decypher your posts.

....
Yes, why dont we "help" him script what he wants to aswell? He'll just come back and ask for more help, now that he knows you'll give him acuall code lines. Maybe he can be crafty and get it one line at a time? Not saying he'd do that, but many others would.
__________________

subliminal message: 1+1=3

Last edited by Falcor; 08-15-2002 at 07:41 PM..
Reply With Quote
  #13  
Old 08-15-2002, 10:32 PM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
Exclamation

lol sorry=/
Reply With Quote
  #14  
Old 08-18-2002, 01:37 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by SingleChance
// NPC made by Stormz
//#CLIENTSIDE
if (playerchats && strequals(#c,Dissable Weapons)){disableselectedweapons;
noplayerkilling;
}
Dont use this 1... lol jk its just toran and that wont let u post scripts>3
(???)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
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 11:34 PM.


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