Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Working/Moveing NPC's (https://forums.graalonline.com/forums/showthread.php?t=10770)

wetferret1 08-30-2001 07:27 AM

Working/Moveing NPC's
 
OKay I want to know the script bird bird used at dustari castle! Like all those birds working! Dose anyone here know how to do that? Because I need some farmors cutting wheat and scooping water. And I also need a NPC Like "Manny (Police)" I need something like that to run around my town. (Not the part where he jails you ROFL)

wetferret1 08-30-2001 08:55 AM

anyone?

wetferret1 08-30-2001 12:44 PM

KJL?

oscarjf1 08-30-2001 10:34 PM

....
 
use the move command

Silver Knight 08-30-2001 10:55 PM

Re: Re: Working/Moveing NPC's
 
Quote:

Originally posted by Kaimetsu


1) Learn to script.
2) Script it yourself.

Yes, that would be the best course of action, since that is so simple.

Admins 08-30-2001 11:17 PM

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

AlexH 08-31-2001 12:12 AM

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. :mad:

CyanideSR71 08-31-2001 10:10 AM

Stefan's a good guy, shutup...
Besides... By learning from scripts and toying with them... He may become a better scripter! (Shadow Dragons theory... Does not work on Ice Pick)

wetferret1 08-31-2001 12:35 PM

Thanks Stefan,

I have asked for scripts twice.


All times are GMT +2. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.