
10-02-2001, 08:38 AM
|
|
Registered User
|
 |
Join Date: Jun 2001
Posts: 2,471
|
|
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
|
Wont work offline too! (Door, #c)) is the error it backwards! |
|
|
|