| Mirage Source http://web.miragesource.net/forums/ |
|
| Blt Item Name http://web.miragesource.net/forums/viewtopic.php?f=210&t=1728 |
Page 1 of 1 |
| Author: | Jibbster [ Tue Apr 24, 2007 5:42 pm ] |
| Post subject: | Blt Item Name |
I've tried adding the blt Player Names and it works and then I try to modify it a little and make it work for the items that are on maps but I don't really understand it. I'll post the code I have later, but I've got to go. Thanks |
|
| Author: | Rezeyu [ Tue Apr 24, 2007 11:22 pm ] |
| Post subject: | |
Take a look at the BlyNPC name codes, since they're simpler than the bltPlayerName stuff (Just because it lacks the QBcolor crap I guess..) Look at it checking for MapNPC, and work on shifting it all to checking for / Blitting the MapItem instead. |
|
| Author: | Jibbster [ Thu Apr 26, 2007 2:39 am ] |
| Post subject: | |
what about the offsets for the items because I think I got an error for those |
|
| Author: | Rezeyu [ Thu Apr 26, 2007 3:27 am ] |
| Post subject: | |
Remove them. Item's don't move, they don't have an offset. |
|
| Author: | Obsidian [ Thu Apr 26, 2007 5:31 am ] |
| Post subject: | |
should be a really easy code... in gameloop... something like... Code: for i = 1 to max_map_items if map.item(i).spawned = true then Call BltItemName(i) end if next i Code: Sub BltItemName(ByVal ItemNum as Byte)
' THen in here, just do a Blt like you would with the NPCNames or whatever, but just do it for Map.Item(ItemNum).X/Y End Sub Yeah and that wasn't anywhere near correct code. I haven't touched VB in 3 or 4 months... and i don't even really remember how the client handles map items (if they're a part of the Map UDT or not)... just look at that and a few of the global constants and figure it out. It should be really easy to do. |
|
| Author: | Joost [ Thu Apr 26, 2007 7:25 am ] |
| Post subject: | |
Obsidian, you seem to forget you can drop items as well. |
|
| Author: | Obsidian [ Thu Apr 26, 2007 7:32 pm ] |
| Post subject: | |
Oh yeah.... whoops Anyways, my point is... just loop through a check for all the items on a map, and then just blt their names. It's really simple to do. |
|
| Author: | Ramsey [ Thu Apr 26, 2007 8:19 pm ] |
| Post subject: | |
I think all the item names would crowd up the screen. |
|
| Author: | Rezeyu [ Thu Apr 26, 2007 10:21 pm ] |
| Post subject: | |
I set mine to Blit on hover. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|