![]() |
Heal and Kill Attributes - Printable Version +- Mirage Engine (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 and Kill Attributes (/showthread.php?tid=74) |
Heal and Kill Attributes - Tutorial Bot - 02-06-2006 Author: Mr.Saturn Difficulty: 2/5 Healing Attribute Tile :: SERVER SIDE :: In modTypes, add: Code: Public Const TILE_TYPE_HEAL = 7 Code: If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_HEAL Then :: CLIENT SIDE :: In modTypes, add: Code: Public const TILE_TYPE_HEAL = 7 Code: 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_HEAL Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "H", QBColor(BrightGreen)) Code: If frmMirage.optWarp.Value = True Then Code: If frmMirage.optHeal.Value = True Then Killing Attribute Tile :: SERVER SIDE :: In modTypes, add: Code: Public Const TILE_TYPE_KILL = 8 Code: 'Check for kill tile, and if so kill them :: CLIENT SIDE :: In modTypes, add: Code: Public const TILE_TYPE_KILL = 8 Code: 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_KILL Then Call DrawText(TexthDC, x * PIC_X + 8, y * PIC_Y + 8, "K", QBColor(BrightRed)) Code: If frmMirage.optWarp.Value = True Then Code: If frmMirage.optKill.Value = True Then |