Where is the invulnerable script...

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Where is the invulnerable script...

Post 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..
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post 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");
.....
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post 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).
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Post 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.
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post by ncrsn »

The idea itself is good, but you just cannot do that without scripting your way around the core.
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

Re: Where is the invulnerable script...

Post by goqsane »

I know I'm posting in an outdated topic but you can just easily blindspace the [invulnerable] tag in your pol binary.
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: Where is the invulnerable script...

Post 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.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Where is the invulnerable script...

Post 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.
Post Reply