Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   shields (https://forums.graalonline.com/forums/showthread.php?t=18383)

royce 12-06-2001 06:04 AM

shields
 
on providence and places i noticed you cant set ur shields in the overworld. I was wondering how would you do this? Wouldnt the server detect what the player said and load that shield even if you made the player say message I dont like shields. ? Also with flags, if you make a door with like if (playertouchsme) {BLAH;} and if (playertouchsme && flagname ) {BLAH;} wouldnt that do the first command with just playertouchsme? or do i p0ut in the script with the flag in it first so it goes through that ? These are simple questions but I just havent payed attention too before.

Poogle 12-06-2001 06:09 AM

Re: shields
 
Quote:

Originally posted by royce
on providence and places i noticed you cant set ur shields in the overworld. I was wondering how would you do this? Wouldnt the server detect what the player said and load that shield even if you made the player say message I dont like shields. ? Also with flags, if you make a door with like if (playertouchsme) {BLAH;} and if (playertouchsme && flagname ) {BLAH;} wouldnt that do the first command with just playertouchsme? or do i p0ut in the script with the flag in it first so it goes through that ? These are simple questions but I just havent payed attention too before.
Why copy?

Faheria_GP2 12-06-2001 06:14 AM

servers where you can't set shields or heads correctly: client.race is incorrectly set (should be "human")

I couldn't understand the rest, please speak english next time ;)

royce 12-06-2001 08:23 AM

I am using htis for different places so the player cannot use their shield/sword.....also i might have shields that ppl can buy and such so this is why i want to do that....

Poogle 12-06-2001 08:30 AM

Quote:

Originally posted by royce
I am using htis for different places so the player cannot use their shield/sword.....also i might have shields that ppl can buy and such so this is why i want to do that....
heres one way if (strcontians(#c, setsheild)) {setplayerprop #SHEILD THING HERE,shield1.gif; setplayerprop #c,setshield disabled go away;}

Python523 12-06-2001 10:16 AM

Re: shields
 
Quote:

Originally posted by royce
on providence and places i noticed you cant set ur shields in the overworld. I was wondering how would you do this? Wouldnt the server detect what the player said and load that shield even if you made the player say message I dont like shields. ? Also with flags, if you make a door with like if (playertouchsme) {BLAH;} and if (playertouchsme && flagname ) {BLAH;} wouldnt that do the first command with just playertouchsme? or do i p0ut in the script with the flag in it first so it goes through that ? These are simple questions but I just havent payed attention too before.
shield setting - I believe it's in a text file for the server that you can edit was FTP
err, um, the door thing I'll try to translate
if (playertouchsme) {hide;}
would hide the door with or without flags, strings, vars, ext
if (playertouchsme&&flaghere) {hide;}
would only hide the door IF you have that flag set

royce 12-06-2001 12:06 PM

Re: Re: shields
 
Quote:

Originally posted by Python523

shield setting - I believe it's in a text file for the server that you can edit was FTP
err, um, the door thing I'll try to translate
if (playertouchsme) {hide;}
would hide the door with or without flags, strings, vars, ext
if (playertouchsme&&flaghere) {hide;}
would only hide the door IF you have that flag set

yah but for example

if (playertouchsme) {
setlevel2 onlinestartlocal.nw,x,y;
}

if (playertouchsme && exbeatboss) {
setlevel2 beathim.nw,x,y;
}


if you still had the flag would it warp you to onlinestartlocal? also should i put the flag part in the begining of the script or it doesnt matter?

Saga2001 12-06-2001 12:39 PM

ok.
 
NPC Code:

if (playerchats) {
setstring client.shield,#2;
if (!strequals(thelevelwhereyoucansetshield,#L)&&star tswith(setshield,#c)) {
setplayerprop #c,Shield setting is disabled in overworld;
setplayerprop #2,#s(client.shield);
}
}



one way to do it.

Xaviar 12-06-2001 11:43 PM

Re: Re: Re: shields
 
Quote:

Originally posted by royce


yah but for example

if (playertouchsme) {
setlevel2 onlinestartlocal.nw,x,y;
}

if (playertouchsme && exbeatboss) {
setlevel2 beathim.nw,x,y;
}


if you still had the flag would it warp you to onlinestartlocal? also should i put the flag part in the begining of the script or it doesnt matter?

if (playertouchsme) {
if (exbeatboss)
setlevel2 beathim.nw,x,y;
else
setlevel2 onlinestartlocal.nw,x,y;
}

royce 12-07-2001 03:16 AM

Re: Re: Re: Re: shields
 
Quote:

Originally posted by Xaviar

if (playertouchsme) {
if (exbeatboss)
setlevel2 beathim.nw,x,y;
else
setlevel2 onlinestartlocal.nw,x,y;
}

thanx now i know..."else" helps alot. ;) and also thanx to saga, now i understand the operation :p


All times are GMT +2. The time now is 03:37 AM.

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