Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Disableweapons and playersays (https://forums.graalonline.com/forums/showthread.php?t=35913)

VeX_RaT_Boy 08-14-2002 10:55 PM

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?

RavenTelvecho 08-14-2002 11:38 PM

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;
}


screen_name 08-14-2002 11:52 PM

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.

....

VeX_RaT_Boy 08-14-2002 11:56 PM

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)

screen_name 08-15-2002 12:03 AM

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

VeX_RaT_Boy 08-15-2002 12:05 AM

you mean haveing

//#clientside

now the script?

screen_name 08-15-2002 12:07 AM

yes, yes

screen_name 08-15-2002 01:50 AM

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*

KuJi2002 08-15-2002 07:23 AM

LOL
 
If you do that you'll have to test it online with your friend or someone.

Torankusu 08-15-2002 08:42 AM

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?

SingleChance 08-15-2002 03:17 PM

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:(

Falcor 08-15-2002 07:21 PM

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.

SingleChance 08-15-2002 10:32 PM

lol sorry=/

osrs 08-18-2002 01:37 PM

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
(???)


All times are GMT +2. The time now is 09:04 PM.

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