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