![]() |
|
Heal MP & SP TILES(TESTED & WORKING) - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Heal MP & SP TILES(TESTED & WORKING) (/showthread.php?tid=2228) |
Heal MP & SP TILES(TESTED & WORKING) - DarkX - 08-10-2008 Tested and working Mp Attribute Tile :: SERVER SIDE :: In modTypes, add: Code: Public Const TILE_TYPE_MP = 11Code: If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_MP Then:: CLIENT SIDE :: In modTypes, add: Code: Public const TILE_TYPE_MP = 11Code: If .Type = TILE_TYPE_BLOCKED Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "B", QBColor(BrightRed))Code: If .Type = TILE_TYPE_MP Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "MP", QBColor(BrightGreen))Code: If frmMirage.optWarp.Value = True ThenCode: If frmMirage.optMP.Value = True ThenAlso side note, if you have converted to having frmMapEditor change the above code to: Code: If frmMapeditor.optMP.Value = True ThenSP Attribute Tile :: SERVER SIDE :: In modTypes, add: Code: Public Const TILE_TYPE_SP = 12Code: If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_SP Then:: CLIENT SIDE :: In modTypes, add: Code: Public const TILE_TYPE_SP = 12Code: If .Type = TILE_TYPE_BLOCKED Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "B", QBColor(BrightRed))Code: If .Type = TILE_TYPE_SP Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "SP", QBColor(BrightYellow))Code: If frmMirage.optWarp.Value = True ThenCode: If frmMirage.optMP.Value = True ThenAlso side note, if you have converted to having frmMapEditor change the above code to: Code: If frmMapeditor.optMP.Value = True Then |