Page 1 of 1

Where is the invulnerable script...

Posted: Wed Jul 09, 2008 10:43 pm
by Poi
I want to know where the script is that puts [invulnerable] under all of the npc's and such, Ive looked and looked, and I don't think windows search works to well, I looked in docs too, but can't find it..

Posted: Thu Jul 10, 2008 3:55 am
by Pierce
If you talking about NPCs there is no need of a script.

It's part of the npcdesc.cfg:

Code: Select all

    Privs                  invul seehidden
    Settings               invul seehidden
"Privs" sets the wanted priv to the npc and "Settings" enables the named privs.

Surely you can write a textcmd using e.g. the following part of a code:

Code: Select all

use uo;
.....
      GrantPrivilege( target, "invul" );
      target.enable( "invul");
.....

Posted: Thu Jul 10, 2008 4:29 am
by ncrsn
And as an addition to that, [Invulnerable] is shown automatically by core when mobile is, well, invulnerable. In order to disable that you have to either use packet hooks or disable the invul privilege based system (and create your own).

Posted: Thu Jul 10, 2008 6:31 am
by Poi
well, what I want is to have another tag under staff names that says something like Administrator, Game Master, etc and I thought maybe that would be a good place to look.

Posted: Thu Jul 10, 2008 6:40 am
by ncrsn
The idea itself is good, but you just cannot do that without scripting your way around the core.

Re: Where is the invulnerable script...

Posted: Thu Oct 02, 2008 9:23 am
by goqsane
I know I'm posting in an outdated topic but you can just easily blindspace the [invulnerable] tag in your pol binary.

Re: Where is the invulnerable script...

Posted: Thu Oct 02, 2008 4:54 pm
by Nando
*An Corp*

You could place a packethook on the single click packet, 0x09 ( http://docs.polserver.com/packets/index.php?Packet=0x09 ).

Just do a SystemFindObjectBySerial() on the serial sent in the packet, check it's .isa(POLCLASS_MOBILE) and if there is a cmdlevel.
If it's staff, print the tag above his head. You could use a packet to emulate the "You see: ..." behavior, I think it's packet 0x1C
with type 0x06.

Have fun.

Re: Where is the invulnerable script...

Posted: Sun Oct 19, 2008 11:12 pm
by Yukiko
I was thinking of an easier way using the guild tag system too.

FYI goqsane I think it's taboo to discuss modifying the POL executable on the forums.