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 12-06-2001, 06:04 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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.
Reply With Quote
  #2  
Old 12-06-2001, 06:09 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
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?
Reply With Quote
  #3  
Old 12-06-2001, 06:14 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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
Reply With Quote
  #4  
Old 12-06-2001, 08:23 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to 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....
Reply With Quote
  #5  
Old 12-06-2001, 08:30 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
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;}
Reply With Quote
  #6  
Old 12-06-2001, 10:16 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #7  
Old 12-06-2001, 12:06 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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?
Reply With Quote
  #8  
Old 12-06-2001, 12:39 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 12-06-2001, 11:43 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
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;
}
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a

Last edited by Xaviar; 12-06-2001 at 11:45 PM..
Reply With Quote
  #10  
Old 12-07-2001, 03:16 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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
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 12:01 PM.


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