Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2001, 07:27 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
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)
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #2  
Old 08-30-2001, 08:55 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
anyone?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #3  
Old 08-30-2001, 12:44 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
KJL?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #4  
Old 08-30-2001, 10:34 PM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
....

use the move command
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
Reply With Quote
  #5  
Old 08-30-2001, 10:55 PM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
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.
__________________
Reply With Quote
  #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
  #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
  #8  
Old 08-31-2001, 10:10 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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)
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #9  
Old 08-31-2001, 12:35 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Thanks Stefan,

I have asked for scripts twice.
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:24 PM.


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