Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Class help? (https://forums.graalonline.com/forums/showthread.php?t=48751)

ForgottenLegacy 10-22-2003 12:55 AM

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.

Neoreno 10-22-2003 01:14 AM

My friend. I share your pain.

xPuppetMasterx 10-22-2003 01:55 AM

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. :(

Thought 10-22-2003 02:03 AM

Perhaps adding a sendtorc (or sendpm) to the class, with the level, x and y, then reloading the npc level list? No idea :(

osrs 10-22-2003 08:10 PM

NPC Code:

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



Now check all overworld. ;D

Lance 10-22-2003 08:52 PM

Probably the best way would be to download the levels, and do a text search of their contents for "join classname".

osrs 10-23-2003 03:02 AM

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.

Lance 10-23-2003 03:09 AM

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.

ForgottenLegacy 10-23-2003 04:03 AM

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

Lance 10-23-2003 04:34 AM

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.

HoudiniMan 10-23-2003 04:45 AM

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

ForgottenLegacy 10-23-2003 05:14 AM

Houdini, I hearby worship you. Thank you, Lord.

<3!

Lance 10-23-2003 09:25 AM

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

DarkShadows_Legend 10-25-2003 10:07 PM

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.

ForgottenLegacy 10-25-2003 10:28 PM

Can someone please make it so /clearnpcs #L works with the sendtorc command?

ZeLpH_MyStiK 10-26-2003 06:52 PM

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".

ForgottenLegacy 10-27-2003 02:09 AM

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.

Lance 10-27-2003 02:14 AM

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.

ForgottenLegacy 10-27-2003 03:33 AM

Give the NPC Server the 'reset accounts' right, and have it do this:

sendtorc /reset #a;

It will work, it worked for me

ZeLpH_MyStiK 10-27-2003 04:36 AM

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?

Lance 10-27-2003 09:45 AM

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.

osrs 10-27-2003 03:48 PM

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

ForgottenLegacy 10-28-2003 06:10 PM

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.

osrs 10-28-2003 10:29 PM

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'

Lance 10-28-2003 10:51 PM

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.

ForgottenLegacy 10-29-2003 04:06 AM

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.

Lance 10-29-2003 04:14 AM

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

Python523 10-29-2003 04:26 AM

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


All times are GMT +2. The time now is 09:59 PM.

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