ToolTips

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Lad
New User
Posts: 23
Joined: Sun Feb 05, 2006 3:48 am

ToolTips

Post by Lad »

I have Unreal script http://forums.polserver.com/viewtopic.php?t=432 . I added to this script an information about item's hp.
Three situations:
1)we go to vendor, say buy and when npc show us list of items we can see extra information
2)when we point on item that is equipped, we have some extra information
3)when we're walking by the town and see a guy, the dclick on his person opens his paperdoll and when we point the item on this paperdoll, we have an extra information.

The question is, how to block 3rd without blocking 1st and 2nd ?
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Check the item's .layer property. If it exists, check the .container.serial to see if matches who.serial (person who the packet is for in the hook).

Easy nuff.

An equipped item's container would be the serial of the person who has it equipped (if i remember correctly).
Post Reply