Where is the invulnerable script...
Moderator: POL Developer
Where is the invulnerable script...
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..
If you talking about NPCs there is no need of a script.
It's part of the npcdesc.cfg:
"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:
It's part of the npcdesc.cfg:
Code: Select all
Privs invul seehidden
Settings invul seehidden
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");
.....
Re: Where is the invulnerable script...
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...
*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.
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.
-
- Distro Developer
- Posts: 2824
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
Re: Where is the invulnerable script...
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.
FYI goqsane I think it's taboo to discuss modifying the POL executable on the forums.