View Single Post
  #6  
Old 08-30-2001, 11:17 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
NPC Code:

// Graal NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #2,no-shield.gif;
setcharprop #3,head510.png;
setcharprop #C0,orange;
setcharprop #C1,black;
setcharprop #C2,black;
setcharprop #C3,black;
setcharprop #C4,yellow;
setcharprop #P1,hat49.png;
dir = 1;
setcharani carrystill,;
}
if (playertouchsme) {
say2
That was hard#b
but the new castle looks nice;
}
//#CLIENTSIDE
if (playerenters) {
x = 21;
while (true) {
dir = 3;
carryobject blackstone;
setcharani lift,;
sleep 0.5;
setcharani carry,;
move -11,0,3,16;
sleep 3;
setcharani push,;
sleep 1;
setcharani walk,;
move 11,0,3,16;
sleep 3;
}
}



It's doing the thing client-side because
then it looks less laggy and carryobject is
a client-side command
Reply With Quote