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, 02:25 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
Lockable Door OMI!@

this has to work on p2p..
if i say close door it will say "door closed" and nobody can get in untill i say "open door"
and maybe i can set a time on it like
"open door" then say "time 3" and it will be open for 3 seconds
__________________
Aim: Mmm Kumada

Reply With Quote
  #2  
Old 12-06-2001, 06:51 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
i dont know the exact code for p2p but it will have something to do with playerchat&&strequals(#c,sadksald) and then also using something to break it up. I just went blank. On a free it would be a server flag but i dont know for p2p
Reply With Quote
  #3  
Old 12-06-2001, 08:24 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
do you want it to be based on guild names or account names or something else?
Reply With Quote
  #4  
Old 12-07-2001, 12:25 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
mkay because I have no time it's a definated owner and not changeable

P2P
//show stat if player enters
if(playerenters){
if(strequals(#s(this.open),close)){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(strequals(#s(this.open),open)){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
setstring this.open,open;
message Door open;
}
if(strequals(#c,close)){
setstring this.open,close;
message Door closed
}
}
__________________
No Webhost at the moment
Reply With Quote
  #5  
Old 12-07-2001, 03:57 AM
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 TDO2000
mkay because I have no time it's a definated owner and not changeable

P2P
//show stat if player enters
if(playerenters){
if(strequals(#s(this.open),close)){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(strequals(#s(this.open),open)){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
setstring this.open,open;
message Door open;
}
if(strequals(#c,close)){
setstring this.open,close;
message Door closed
}
}
Why on earth did you need to use a string?
__________________
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
  #6  
Old 12-07-2001, 04: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
Quote:
Originally posted by Xaviar


Why on earth did you need to use a string?
um I do not need to but I just wanted to show an easy example... but if u want it another way...

//show stat if player enters
if(playerenters){
if(save[0]==0){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(save[0]==1){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
save[0]=1;
message Door open;
}
if(strequals(#c,close)){
save[0]=0;
message Door closed
}
}

just an easy example too but should work
__________________
No Webhost at the moment
Reply With Quote
  #7  
Old 12-07-2001, 05:43 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 TDO2000

um I do not need to but I just wanted to show an easy example... but if u want it another way...

//show stat if player enters
if(playerenters){
if(save[0]==0){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(save[0]==1){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
save[0]=1;
message Door open;
}
if(strequals(#c,close)){
save[0]=0;
message Door closed
}
}

just an easy example too but should work
u keep forgeting the ;
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 03:41 AM.


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