View Single Post
  #15  
Old 10-02-2001, 04:51 PM
Bravo_Admin1 Bravo_Admin1 is offline
Banned
Join Date: Oct 2001
Location: USA
Posts: 21
Bravo_Admin1 is on a distinguished road
Re: Will this work online

Quote:
Originally posted by Metal-Slug
will this work on a pw with no npc server?
NPC Code:

// NPC made by unknown
// Hirathia Door Script
// Urond's Tavern
if (created) {
setimg newdoor.gif;
this.Door1 = 1;
}
if (playerchats && strequals(#a,Metal-Slug) && startswith(Door, #c)) {
setstring Doormessage1,#c;
message #s(Doormessage1);
}
if (playerchats && strequals(#a,Metal-Slug) && strequals(#c,Door Closed)) {
this.Door1 = 1;
}
if (this.Door1 = 1 && playertouchsme) {
say2 Sorry
#bThis door is locked;
}
if (playerchats && strequals(#a,Metal-Slug) && strequals(#c,Door Opened)) {
this.Door1 = 0;
}
if (this.Door1 = 0 && playertouchsme) {
setlevel2 metal-slugbar.nw,30.5,57;
}


i know it works off line, but im not sure if the this.Door1 stuff is online stuff
u could always use

if (playerenters) {hide;}

that usualy works 4 me
Reply With Quote