Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position npc castle #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
77 changes: 45 additions & 32 deletions Source Main 5.2/source/GMBattleCastle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,33 +341,46 @@ namespace battleCastle
if (gMapManager.InBattleCastle() == false) return;

g_byGuardAI = 0;
g_iMp3PlayTime = 0;
// SetBattleCastleStart ( false );
g_iMp3PlayTime = 0;
//SetBattleCastleStart ( false );

vec3_t Angle, Position;
Vector(0.f, 0.f, 0.f, Angle);
Vector(0.f, 0.f, 270.f, Position);

SocketClient->ToGameServer()->SendGuildLogoOfCastleOwnerRequest();

OpenMonsterModel(77);

Position[0] = 65 * TERRAIN_SCALE; Position[1] = 113 * TERRAIN_SCALE;
CreateObject(MODEL_MONSTER01 + 77, Position, Angle);

Position[0] = 71 * TERRAIN_SCALE; Position[1] = 113 * TERRAIN_SCALE;
CreateObject(MODEL_MONSTER01 + 77, Position, Angle);

Position[0] = 91 * TERRAIN_SCALE; Position[1] = 113 * TERRAIN_SCALE;
CreateObject(MODEL_MONSTER01 + 77, Position, Angle);

Position[0] = 118 * TERRAIN_SCALE; Position[1] = 113 * TERRAIN_SCALE;
CreateObject(MODEL_MONSTER01 + 77, Position, Angle);

Position[0] = 123 * TERRAIN_SCALE; Position[1] = 113 * TERRAIN_SCALE;
Vector ( 0.f, 0.f, 0.f, Angle );

SendGetCastleGuildMark ();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method was replaced by SocketClient->ToGameServer()->SendGuildLogoOfCastleOwnerRequest(); in my source


OpenMonsterModel ( 77 );

Vector(0.f, 0.f, 230.f, Position);
Position[0] = 65*TERRAIN_SCALE;
Position[1] = 113*TERRAIN_SCALE;
CreateObject ( MODEL_MONSTER01+77, Position, Angle );

Vector(0.f, 0.f, 230.f, Position);
Position[0] = 71*TERRAIN_SCALE;
Position[1] = 113*TERRAIN_SCALE;
CreateObject ( MODEL_MONSTER01+77, Position, Angle );

Vector(0.f, 0.f, 230.f, Position);
Position[0] = 91*TERRAIN_SCALE;
Position[1] = 113*TERRAIN_SCALE;
CreateObject ( MODEL_MONSTER01+77, Position, Angle );

Vector(0.f, 0.f, 230.f, Position);
Position[0] = 97 * TERRAIN_SCALE;
Position[1] = 113 * TERRAIN_SCALE;
CreateObject(MODEL_MONSTER01 + 77, Position, Angle);

Vector(0.f, 0.f, 240.f, Position);
Position[0] = 117*TERRAIN_SCALE;
Position[1] = 113*TERRAIN_SCALE;
CreateObject ( MODEL_MONSTER01+77, Position, Angle );

Vector(0.f, 0.f, 233.f, Position);
Position[0] = 123*TERRAIN_SCALE;
Position[1] = 113*TERRAIN_SCALE;
CreateObject ( MODEL_MONSTER01+77, Position, Angle );
}

bool SettingBattleFormation(CHARACTER* c, eBuffState state)
{
if (gMapManager.InBattleCastle() == false) return false;
Expand Down Expand Up @@ -1283,7 +1296,7 @@ namespace battleCastle
c->Object.LifeTime = 0;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"�հ�");
wcscpy(c->ID, L"왕관");
break;

case 216:
Expand All @@ -1293,7 +1306,7 @@ namespace battleCastle
c->Object.m_bRenderShadow = false;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"�հ�");
wcscpy(c->ID, L"왕관");
break;

case 217:
Expand All @@ -1302,7 +1315,7 @@ namespace battleCastle
c->m_bFixForm = true;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"�հ� ����2");
wcscpy(c->ID, L"왕관 발판2");
c->Object.Velocity = c->Object.Position[2];
if (IsBattleCastleStart() == false)
c->Object.Position[2] -= 100.f;
Expand All @@ -1314,7 +1327,7 @@ namespace battleCastle
c->m_bFixForm = true;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"�հ� ����1");
wcscpy(c->ID, L"왕관 발판1");
c->Object.Velocity = c->Object.Position[2];
if (IsBattleCastleStart() == false)
c->Object.Position[2] -= 100.f;
Expand All @@ -1327,7 +1340,7 @@ namespace battleCastle
c->Object.Scale = 1.1f;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"���� ����ġ");
wcscpy(c->ID, L"성문 스위치");
break;

case 220:
Expand All @@ -1337,7 +1350,7 @@ namespace battleCastle
c->Object.Scale = 1.1f;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"����� ������");
wcscpy(c->ID, L"사냥터 문지기");
break;

case 221:
Expand Down Expand Up @@ -1369,7 +1382,7 @@ namespace battleCastle
c->Object.Scale = 1.1f;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"���ο�");
wcscpy(c->ID, L"원로원");
break;

case 224:
Expand All @@ -1380,7 +1393,7 @@ namespace battleCastle
c->Object.SubType = rand() % 2 + 10;
c->Weapon[0].Type = -1;
c->Weapon[1].Type = -1;
wcscpy(c->ID, L"�����");
wcscpy(c->ID, L"굼㎈");
break;

case 277:
Expand Down Expand Up @@ -2089,4 +2102,4 @@ namespace battleCastle
break;
}
}
}
}