A few name questions...

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

A few name questions...

Post by Poi »

1. I want to be able to have multiple lined names, mainly for staff so it would be something like:
Seer
Johnny
On separate lines

2. I want to, somehow, make it so the staff member's name is changed automatically to something like
Seer
Johnny(See #1)

So it says Seer automatically, or gm, etc.


Oh, and
3. I want to be able to color part of names

I don't want this script made for me, I just need some directions as to how to start =/
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

What you would have to do is do a packethook for the SendAscii packet (0x1C). You can intercept the packet and compare to see if it is the person's name. After confirming it is, just grab their cmdlevel, create another SendAscii packet, send the cmdlevel name, and then have POL send the original packet after that.

SendAscii also sends what font and color to use.
Last edited by CWO on Sat Jul 12, 2008 7:02 am, edited 1 time in total.
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Post by Poi »

Nvm
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

Fixed the first sentence of my post anyway in case you or anyone needs it. I tried to link to the SendAscii packet on the POL packets documentation but it seems it didn't work.
Post Reply