Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4141,3 +4141,13 @@ When setting a property like MORE to the a spell or skill defname, trying to rea
19-05-2026, nightNR
- Fixed: pre-AOS armor rating (AR) calculation (#1550).
- Fixed NPCs can't cast spells from spellbook after respawn (#1551).

29-05-2026, canerksk
- Added: Maparea, one of the dialog features of TazUO added.
maparea x y w h mapIndex mapX mapY mapbitX mapbitY
eg;
[dialog d_mapareatest]
0,0
resizepic 0 0 3000 500 500
maparea 20 20 400 300 <src.p.m> <eval <src.p.x>-200> <eval <src.p.y>-150> <eval <src.p.x>+200> <eval <src.p.y>+150>

20 changes: 20 additions & 0 deletions src/common/resource/sections/CDialogDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ enum GUMPCTL_TYPE // controls we can put in a gump.

GUMPCTL_ITEMPROPERTY, // 1 = uid of the item in question.

GUMPCTL_MAPAREA, // NEW: x,y,w,h,mapIndex,areaX,areaY,areaEndX,areaEndY

// Not really controls but more attributes.
GUMPCTL_NOCLOSE, // 0 = The gump cannot be closed by right clicking.
GUMPCTL_NODISPOSE, // 0 = The gump cannot be closed by gump-closing macro.
Expand Down Expand Up @@ -83,6 +85,8 @@ lpctstr const CDialogDef::sm_szLoadKeys[GUMPCTL_QTY+1] =

"ITEMPROPERTY",

"MAPAREA",

"NOCLOSE",
"NODISPOSE",
"NOMOVE",
Expand Down Expand Up @@ -456,6 +460,22 @@ bool CDialogDef::r_Verb( CScript & s, CTextConsole * pSrc ) // some command on t
return true;
}

case GUMPCTL_MAPAREA:
{
GET_RELATIVE(x, m_iOriginX);
GET_RELATIVE(y, m_iOriginY);
GET_ABSOLUTE(width);
GET_ABSOLUTE(height);
GET_ABSOLUTE(mapIndex);
GET_ABSOLUTE(areaX);
GET_ABSOLUTE(areaY);
GET_ABSOLUTE(areaEndX);
GET_ABSOLUTE(areaEndY);

m_sControls.emplace_back(false).Format("maparea %d %d %d %d %d %d %d %d %d", x, y, width, height, mapIndex, areaX, areaY, areaEndX, areaEndY);
return true;
}

case GUMPCTL_NODISPOSE:
m_fNoDispose = true;
break;
Expand Down
Loading