Quote:
Originally posted by Birdbird_0
I will be on graal for the next 3 or 9 hours but I made this player house playerhouse10.nw so here is a screenshot here, the npcs that I need are the housecrystal, the npc that alows only 1 player to enter their room, and the npc door to the house next door. the lights are scripted for the server so it be all spiff, loriel be sleeping so....
http://birdbird_0.tripod.com/lookatdapwetycolors.htm
|
No idea how this would be integrated to the server, but here are the scripts you want!
NPC that only allows one player:
NPC Code:
if (playerenters && playerscount>1) {
this.Fx2ndPlayerI = playerscount - 1;
this.Fx2ndPlayerID = players[this.Fx2ndPlayerI].id;
if (playerid == this.Fx2ndPlayerID) {
setlevel2 outsidelevel.nw,playerx,playery;
}
}
Had to make sure it didn't warp
both players out.. anyway
Door to other house:
NPC Code:
this.CheckOpen = strtofloat #s(server.WhateverHouseOD);
if (strcontains(#s(server.WhateverHouse),#a) || this.CheckOpen == 1) {
setlevel2 housenextdoor.nw,0,playery;
}
else { message You must have a key to enter!; sleep 3; message;}
Housecrystal... I can't exactly figure out how to get a script to go through the server.var and reconstruct it without the account name. That's Stefan's part.