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 12-26-2002, 07:08 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
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
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #2  
Old 12-26-2002, 07:43 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #3  
Old 12-26-2002, 08:50 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
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?
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #4  
Old 12-27-2002, 01:24 AM
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
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...
Reply With Quote
  #5  
Old 12-27-2002, 01:31 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
I don't really understand what he said x.x
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #6  
Old 12-27-2002, 03:09 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
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.
__________________

Reply With Quote
  #7  
Old 12-28-2002, 12:53 AM
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
Quote:
Originally posted by CheeToS2

if #F <1 (or <0, can't remember)...
(#F)>0
Reply With Quote
  #8  
Old 12-28-2002, 01:38 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #9  
Old 12-28-2002, 02:44 AM
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
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.
Reply With Quote
  #10  
Old 12-28-2002, 03:50 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 12-29-2002, 01:22 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
alrighty, thanks all
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

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 06:47 AM.


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