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 04-25-2002, 11:14 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Choose Head for NPC-Server

I would Know if this Script is correct..

"Choosing RC Head"

Note: This script dont is made by me.

if (created){
timeout=.1;
}
if (timeout){
for(i=0;i<allplayerscount;i++){
with (allplayers[i]){
if (strlen(#F)<=0){
if (strequals(#a,"RC account")&&!strequals(#3,head3.png)){
setplayerprop #3,head3.png;
}
}
}
}
timeout=.1;


-osrs-
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #2  
Old 04-25-2002, 11:52 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Re: Choose Head for NPC-Server

Quote:
Originally posted by osrs
I would Know if this Script is correct..

"Choosing RC Head"

Note: This script dont is made by me.

if (created){
timeout=.1;
}
if (timeout){
for(i=0;i<allplayerscount;i++){
with (allplayers[i]){
if (strlen(#F)<=0){
if (strequals(#a,"RC account")&&!strequals(#3,head3.png)){
setplayerprop #3,head3.png;
}
}
}
}
timeout=.1;


-osrs-

I think it would be better said

NPC Code:

if (created || timeout) {
for(i=0;i<allplayerscount;i++){
with (allplayers[i]){
if (strequals(#a,npcserver)) {
setcharprop #3,headgoeshere;
}
}
}
}
timeout = .1;
}

__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #3  
Old 04-26-2002, 02:59 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
If it's that big of a problem an RC could just change the head of the NPCServer.
__________________
Reply With Quote
  #4  
Old 04-26-2002, 04:09 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight

Jagen:
I heard Stefan is going to work on removing RCs from the allplayerscount so you wont be able to edit the heads and attributes
Reply With Quote
  #5  
Old 04-26-2002, 06:25 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Quote:
Originally posted by Kaimetsu
Do not iterate through everybody on the server every 0.1 seconds you inefficient NPC-Server-forum-misusing scallywag!
*cries* I just want to be of some help to someone *cries* *crawls in a corner*
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #6  
Old 04-26-2002, 09:58 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight
Re: Re: Choose Head for NPC-Server

Quote:
Originally posted by SaijinGohan



I think it would be better said

NPC Code:

if (created || timeout) {
for(i=0;i<allplayerscount;i++){
with (allplayers[i]){
if (strequals(#a,npcserver)) {
setcharprop #3,headgoeshere;
}
}
}
}
timeout = .1;
}


Jagen:
I don't think the npc server is included with the allplayerscount so you can't edit it with an allplayers npc and also the account is (npcserver)
Reply With Quote
  #7  
Old 04-26-2002, 08:26 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
All the script basically does is set the npc servers head I don't see how that is a big deal really, just change it and it should work. I don't deal w/ NPC servers b/c i work on a playerworld(s)
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #8  
Old 04-26-2002, 08:40 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Seriously? Ah, well none of the ones i've been on have used it that i know of. Heh, unless they're hiding something from me! I know that Sans doesn't use one, and that is where i'm a NAT at ATM
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
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 09:36 AM.


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