Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changing RC heads (https://forums.graalonline.com/forums/showthread.php?t=41490)

HoudiniMan 12-26-2002 07:08 AM

Changing RC heads
 
Does anybody have the script/comand for changing RC heads?
I'm not asking for a script or anything lol, but if there is a specific command i need to know it.

If there isn't than a concept idea of how to make the npc myself will suffice :)

Python523 12-26-2002 07:43 AM

use with(allplayers[index]) to get RCs (use strlen for #F to check if the index is an RC account) and I think #3 is the head prop to set

HoudiniMan 12-26-2002 08:50 AM

I just need it for the account who triggered the weapon

How would i do it so you could just give a command, say... /setrc filename.png

I'm not asking about how to do the command part, but setting the char's prop #3 would just change your in-game characters head wouldn't it?

osrs 12-27-2002 01:24 AM

Quote:

Originally posted by HoudiniMan
Does anybody have the script/comand for changing RC heads?
I'm not asking for a script or anything lol, but if there is a specific command i need to know it.

If there isn't than a concept idea of how to make the npc myself will suffice :)

I think there is no one specific command to change rc heads.
Do what Jagen said...

HoudiniMan 12-27-2002 01:31 AM

I don't really understand what he said x.x

CheeToS2 12-27-2002 03:09 AM

Quote:

Originally posted by HoudiniMan
I don't really understand what he said x.x
k.. with(allplayers[index]) = access the player w/ that serverwide index. You can't getplayer an RC, because they aren't a player. You can allplayers them though, because they have an ID when they log on. Use a loop to access 1 player in order at a time, till you find the player with the account you want, if the account matches, check if they are in a level or not with #F (#F = level the player is currently in).. if #F <1 (or <0, can't remember), then they aren't in a level, meaning they're an rc.

osrs 12-28-2002 12:53 AM

Quote:

Originally posted by CheeToS2

if #F <1 (or <0, can't remember)...

(#F)>0

Python523 12-28-2002 01:38 AM

Quote:

Originally posted by osrs


(#F)>0

that would run? its kind of impossible to get a length less than 0, (#F) == 0 works for me

osrs 12-28-2002 02:44 AM

Quote:

Originally posted by Python523

that would run? its kind of impossible to get a length less than 0, (#F) == 0 works for me

(#F)>0 works fine for me.

Falcor 12-28-2002 03:50 AM

if #F == 0 then they are an RC, otherwise they are a player
I duno why you'd check for >0 when you'd be enevitbly doing
NPC Code:

if(strlen(#F)>0) {
//Totally useless
} else {
setplayerprop #3,head25.gif; //or whatever your code is.
}


that is horridly stupid and worthless
NPC Code:

if(strlen(#F)==0) {
setplayerprop #3,head25.gif; //or whatever your code is.
}


That one is better if only for the sheer fact that you dont wana type as much.

HoudiniMan 12-29-2002 01:22 PM

alrighty, thanks all


All times are GMT +2. The time now is 11:24 AM.

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