Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

brodygs9630

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

brodygs9630's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. @xxXReichoXxx: > for those ones who are wondering u do same thing for npc …. > ``` > ' calc pos > > TextA = ConvertMapX(MapNpc(Index).x * PIC_X) + MapNpc(Index).XOffset + (PIC_X \ 2) - getWidth(TexthDC, (Trim$("" & Npc(npcNum).Level))) > If Npc(npcNum).Sprite < 1 Or Npc(npcNum).Sprite > NumCharacters Then > Textb = ConvertMapY(MapNpc(Index).y * PIC_Y) + MapNpc(Index).YOffset - 5 > Else > ' Determine location for text > Textb = ConvertMapY(MapNpc(Index).y * PIC_Y) + MapNpc(Index).YOffset - (DDSD_Character(Npc(npcNum).Sprite).lHeight / 4) + 5 > End If > > ' Draw name > ``` > like tut says add > Dim TextA As Long > Dim Textb As Long > in > DrawNpcName > and paste that code above btw thanks alot it works for me its niice :) Found a few problems, although it almost works. Just had to change ``` ("" & Npc(npcNum).Level) ``` to: ``` ("Level" & Npc(npcNum).Level) ``` And ``` 'Draw name ``` to: ``` 'Draw level Call DrawText(TexthDC, TextA, TextB, "Level" & Npc(npcNum).Level, color) ``` This should display NPC levels properly. Add the above variables like Reicho said. Sorry if this is a necropost, not sure as to what the EO considers necro or not, I'm guessing that because I don't receive that red warning I'm fine. Just wanted to point this out.
×
×
  • Create New...