View Single Post
  #7  
Old 08-31-2001, 12:12 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by Stefan
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
Stefan what have you done.
Hes always asking for NPCs
If you give him one he'll think he can just keep comming back for more.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote