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 10-22-2003, 12:55 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Class help?

Is there a script or technique to see what levels join what classes? Babylon has some unused classes that I'd like to remove, but I have no idea which levels contain those classes. I'd appreciate any help I could get.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #2  
Old 10-22-2003, 01:14 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
My friend. I share your pain.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #3  
Old 10-22-2003, 01:55 AM
xPuppetMasterx xPuppetMasterx is offline
reef
xPuppetMasterx's Avatar
Join Date: Jun 2003
Location: Back in the USA
Posts: 274
xPuppetMasterx is on a distinguished road
Send a message via AIM to xPuppetMasterx
I myself have been wondering that question for a while. I just assumed that there was no way to check though, so I went manually looking for them.
__________________
So free
Reply With Quote
  #4  
Old 10-22-2003, 02:03 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Perhaps adding a sendtorc (or sendpm) to the class, with the level, x and y, then reloading the npc level list? No idea
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #5  
Old 10-22-2003, 08:10 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
NPC Code:

if(playerenters){
say2 I'm here!;
}



Now check all overworld. ;D
__________________
"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
  #6  
Old 10-22-2003, 08:52 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Probably the best way would be to download the levels, and do a text search of their contents for "join classname".
Reply With Quote
  #7  
Old 10-23-2003, 03:02 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
I was thinking about create a DBNPC, and send information from Class to DBNPC telling the level...not sure if would work though, i will test it later.
Reply With Quote
  #8  
Old 10-23-2003, 03:09 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by osrs
I was thinking about create a DBNPC, and send information from Class to DBNPC telling the level...not sure if would work though, i will test it later.
Only'd work when the NPCs in the level were being loaded - i.e. if the npcserver was just starting, if a player enters it, or if the update level command was used remotely.
Reply With Quote
  #9  
Old 10-23-2003, 04:03 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
You guys need to note that Babylon has 1852 (Last time I checked) levels uploaded. It would take me days to do a /clearnpcs on every level, or do a text search on each individual .NW file. (Unless someone could code a little proggie for me that does a textsearch on mass documents )
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #10  
Old 10-23-2003, 04:34 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
You guys need to note that Babylon has 1852 (Last time I checked) levels uploaded. It would take me days to do a /clearnpcs on every level, or do a text search on each individual .NW file. (Unless someone could code a little proggie for me that does a textsearch on mass documents )
/clearnpcs doesn't affect NPCs which are defined in the level, only putnpc2-ed NPCs.
Reply With Quote
  #11  
Old 10-23-2003, 04:45 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
Quote:
Originally posted by ForgottenLegacy
You guys need to note that Babylon has 1852 (Last time I checked) levels uploaded. It would take me days to do a /clearnpcs on every level, or do a text search on each individual .NW file. (Unless someone could code a little proggie for me that does a textsearch on mass documents )
Download them to a folder and use windows search to do it. Use the "contains text" box instead of filename

If you're using XP it's "A word or phrase in the file: "
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #12  
Old 10-23-2003, 05:14 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Houdini, I hearby worship you. Thank you, Lord.

<3!
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #13  
Old 10-23-2003, 09:25 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
Houdini, I hearby worship you. Thank you, Lord.

<3!
Yaknow, I said that 3 posts up. Text search through the levels. I hope you didn't think I meant each one, as we were obviously talking large-scope o.O
Reply With Quote
  #14  
Old 10-25-2003, 10:07 PM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Quote:
Probably the best way would be to download the levels, and do a text search of their contents for "join classname".

I did that and I wasn't able to find anything with join in it. I was using XP also and nothing turned up, but I do know that there are some levels that have it inside of them.
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #15  
Old 10-25-2003, 10:28 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Can someone please make it so /clearnpcs #L works with the sendtorc command?
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #16  
Old 10-26-2003, 06:52 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
I'm just guessing here but I think /clearnpcs has to be sendtonc instead of sendtorc. Because if you type in /help in the RC, it states /clearnpcs under "Available commands for the NPC-Server".
__________________
Reply With Quote
  #17  
Old 10-27-2003, 02:09 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
I've already checked, and the NPC Server even has the NPC-Control right, but /clearnpcs inside of a torc or a tonc does not work.

Babylon-NPC (Server): /clearnpcs #F

That's what it says, same thing with tonc:
/clearnpcs #F

That's exactly what it says.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #18  
Old 10-27-2003, 02:14 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
I've already checked, and the NPC Server even has the NPC-Control right,
You can't give the NPCServer usable rights -_-.

Quote:
but /clearnpcs inside of a torc or a tonc does not work.
Correct. Such functionality would have to be added, presumably as a scripting command. I am against this, as it'd be a risky command to add.
Reply With Quote
  #19  
Old 10-27-2003, 03:33 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Give the NPC Server the 'reset accounts' right, and have it do this:

sendtorc /reset #a;

It will work, it worked for me
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #20  
Old 10-27-2003, 04:36 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Interesting...
/clearnpcs clears local db npcs off of a level. It doesnt take away remove weapons from a player. You might wanna try opening the server options and adding in npcrights=true, that might work.
Speaking of reset rights, i've noticed that a lot of servers added in a /reset commands to reset player attributes. I've also tried this by doing /sendtorc acct;, but for some reason, only the first time after updating the npc works and the rest just does nothing. Can someone help?
__________________
Reply With Quote
  #21  
Old 10-27-2003, 09:45 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
Give the NPC Server the 'reset accounts' right, and have it do this:

sendtorc /reset #a;

It will work, it worked for me
You're not listening. It doesn't matter if you give it that right or not - it can still do that.
Reply With Quote
  #22  
Old 10-27-2003, 03:48 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
Quote:
Originally posted by ZeLpH_MyStiK
Interesting...
/clearnpcs clears local db npcs off of a level. It doesnt take away remove weapons from a player. You might wanna try opening the server options and adding in npcrights=true, that might work.
what's the relation of npcrights=true to /clearnpcs? x.x
Reply With Quote
  #23  
Old 10-28-2003, 06:10 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
I gice the NPC Server the 'updatelevels' right before I do an /updatelvel on a sendtorc, because without that right, nothing happens. Babylon's NPC Server is screwed, so it needs a right in order to do somthing. That's why it has level4 rights.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #24  
Old 10-28-2003, 10:29 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
Quote:
Originally posted by ForgottenLegacy
I gice the NPC Server the 'updatelevels' right before I do an /updatelvel on a sendtorc, because without that right, nothing happens. Babylon's NPC Server is screwed, so it needs a right in order to do somthing. That's why it has level4 rights.
Thats strange... x.x'
__________________
"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
  #25  
Old 10-28-2003, 10:51 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
I gice the NPC Server the 'updatelevels' right before I do an /updatelvel on a sendtorc, because without that right, nothing happens. Babylon's NPC Server is screwed, so it needs a right in order to do somthing. That's why it has level4 rights.
I came on Babylon to check that out for myself, but my rights there have disappeared again.

It gets annoying logging on there and finding either no rights or level 4 RC; nothing is constant, and nothing is in between these. You guys need to decide what rights you'll let me have, and stick with it. Of course, having ~9 people with level 4 RC there would tend to account for the see-saw that is my local rights.
Reply With Quote
  #26  
Old 10-29-2003, 04:06 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Lance, your rights were removed because DL hates giving globals rights they do not have. Since DL is no longer staff, tell me the acct you want rights on and I'll add them, my aim is TheOneGC.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #27  
Old 10-29-2003, 04:14 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
Lance, your rights were removed because DL hates giving globals rights they do not have. Since DL is no longer staff, tell me the acct you want rights on and I'll add them, my aim is TheOneGC.
The funny thing was that Alexander talked to DL about that once before already. -_-

Anyway, Stefan has yet to move my global IP range over from Tseng to Lance, so I guess my rights there should be on *Tseng. *sigh-ness* I'll be PMing Stefan again. >:O
Reply With Quote
  #28  
Old 10-29-2003, 04:26 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


what's the relation of npcrights=true to /clearnpcs? x.x
you can't clear levels you don't have folder rights to
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 10:41 PM.


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