Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Choose Head for NPC-Server (https://forums.graalonline.com/forums/showthread.php?t=28020)

osrs 04-25-2002 11:14 PM

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-
:confused:

SaijinGohan 04-25-2002 11:52 PM

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-
:confused:


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;
}


Googi 04-26-2002 02:59 AM

If it's that big of a problem an RC could just change the head of the NPCServer.

Neonight 04-26-2002 04:09 AM


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

SaijinGohan 04-26-2002 06:25 AM

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*

Neonight 04-26-2002 09:58 AM

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)

emortylone 04-26-2002 08:26 PM

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

emortylone 04-26-2002 08:40 PM

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


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

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