Heldenian For Hbx

All Helbreath Server Source Discussion here.
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

snoopy81 wrote: A portion of code I forgot, but thats important...
(I guess some people already implemented this their way)
Function:
int CGame::bCreateNewNpc(..)
Add/correct the following code

Code: Select all

  switch (m_pNpcList[i]->m_cActionLimit) {
  case 2: // fixed mechants
  case 3: // dummy
  case 5: // struct sade, crops
  	m_pNpcList[i]->m_cBehavior = DEF_BEHAVIOR_STOP;  	
  	switch (m_pNpcList[i]->m_sType) {
  	case 15: // ShopKeeper-W
  	case 19: // Gandlf
  	case 20: // Howard
  	case 24: // Tom
  	case 25: // William
  	case 26: // Kennedy
    m_pNpcList[i]->m_cDir      = 3 + iDice(1,3);
    break;
  	default:
    m_pNpcList[i]->m_cDir      = iDice(1,8);
    break;
  	}
  	break;
  case 8: // Heldenian gate
  	m_pNpcList[i]->m_cDir      = 3;
  	m_pNpcList[i]->m_cBehavior = DEF_BEHAVIOR_STOP;	
  	if (m_pNpcList[i]->m_cArea > 0)
  	{	for(short sx1 = (sX - 1); sx1 <= sX + 1; sx1++)
    for(short sy1 = (sY - 1); sy1 <= sY + 1; sy1++)
    {	m_pMapList[iMapIndex]->SetTempMoveAllowedFlag(sx1, sy1, FALSE);  
  	}	}
  	break;

  default: 
  	m_pNpcList[i]->m_cBehavior = DEF_BEHAVIOR_MOVE;
  	m_pNpcList[i]->m_cDir      = 5;
  	break;
  }
Yeah that's what was crashing my client while summoning Gates...

Though I added something but just
case 8: //Gate-a and Gate-e
m_pNpcList->m_cBehavior = DEF_BEHAVIOR_STOP;
break;


Weird thing...why you have npcs become neutrals? shouldn't be better if they all die :unsure:

Anyways thanks for the cores B)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

Weird thing...why you have npcs become neutrals? shouldn't be better if they all die
This is easelly fixed if you want.

The reason is when coded all that I had no expérience of the Siementec's Heldenian, and used only the HBint & HBUSA descriptions. They don't tell if mobs stays for the battle or not.

Killing all mobs is a solution, but keeping some of them is really funny and brings more hazards to the event. More possible strategies too.
But, during the 1st period of the event, before the battle begins, you're powerless, so hostile mobs could proove real trouble.

That's the reason.
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

snoopy81 wrote:
Weird thing...why you have npcs become neutrals? shouldn't be better if they all die
This is easelly fixed if you want.

The reason is when coded all that I had no expérience of the Siementec's Heldenian, and used only the HBint & HBUSA descriptions. They don't tell if mobs stays for the battle or not.

Killing all mobs is a solution, but keeping some of them is really funny and brings more hazards to the event. More possible strategies too.
But, during the 1st period of the event, before the battle begins, you're powerless, so hostile mobs could proove real trouble.

That's the reason.
Thanks for the information... :)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

How the fuck this is possible?
Im repaired 30 of errors, but I dont know how fix these.
Can you help snoopy :)?
--------------------Configuration: HGserver - Win32 Release--------------------
Compiling...
Game.cpp
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(58847) : error C2511: 'LocalEndHeldenianMode' : overloaded member function 'void (unsigned long,int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59013) : error C2511: 'bCheckHeldenianMap' : overloaded member function 'int (int,char)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59298) : error C2065: '__bReadMapCrusadeInfo' : undeclared identifier
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59739) : error C2511: 'UpdateHeldenianStatus' : overloaded member function 'int (int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
Error executing cl.exe.

HGserver.exe - 4 error(s), 0 warning(s)
#define MSGID_RESPONSE_CHARGED_TELEPORT  0x0EA03205
#define DEF_NOTIFY_HELDENIANVICTORY  0x0BEB
#define MSGID_RESPONSE_HELDENIAN_TP_LIST 0x0AEB
#define DEF_CRUSADELOG_ENDHELDENIAN 0x0AEC
#define DEF_CRUSADELOG_HELDENIANVICTORY 0x0AED
#define DEF_CRUSADELOG_HELDENIANWARNOW 0x0AEE
#define DEF_CRUSADELOG_STARTHELDENIAN 0x0AEF
#define DEF_MAXHELDENIANSUMMONPOINT 0x0AEA
Its them okay?
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

Code: Select all

C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(58847) : error C2511: 'LocalEndHeldenianMode' : overloaded member function 'void (unsigned long,int)' not found in 'CGame'
.....
Very strange error... Never met that. Did youcheck your declarations?
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Whats you mean about declearations?
But can you help me first fix another errors, and then this one?
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59298) : error C2065: '__bReadMapCrusadeInfo' : undeclared identifier
Declare it before asking for help ...

NB: If (I can't imagine that), you don't know how to declare it, I'll suggest you to learn C++ first...
As I said above those sources are not a sniplet you can put to the right place and it works. It's a full implémentation of acomplicated thing, main functions are given, but therre is still many things you must code yourself specifically for your current sources...
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Aah Im did somefthing for it now errors looks like this:
--------------------Configuration: HGserver - Win32 Release--------------------
Compiling...
Game.cpp
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(58848) : error C2511: 'LocalEndHeldenianMode' : overloaded member function 'void (unsigned long,int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59014) : error C2511: 'bCheckHeldenianMap' : overloaded member function 'int (int,char)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59299) : error C2660: '__bReadMapCrusadeInfo' : function does not take 2 parameters
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59740) : error C2511: 'UpdateHeldenianStatus' : overloaded member function 'int (int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
Map.cpp
Error executing cl.exe.

HGserver.exe - 4 error(s), 0 warning(s)
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Dshaked wrote: Aah Im did somefthing for it now errors looks like this:
--------------------Configuration: HGserver - Win32 Release--------------------
Compiling...
Game.cpp
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(58848) : error C2511: 'LocalEndHeldenianMode' : overloaded member function 'void (unsigned long,int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59014) : error C2511: 'bCheckHeldenianMap' : overloaded member function 'int (int,char)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59299) : error C2660: '__bReadMapCrusadeInfo' : function does not take 2 parameters
C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.cpp(59740) : error C2511: 'UpdateHeldenianStatus' : overloaded member function 'int (int)' not found in 'CGame'
        C:\Documents and Settings\Omistaja\Työpöytä\TEST\Game.h(230) : see declaration of 'CGame'
Map.cpp
Error executing cl.exe.

HGserver.exe - 4 error(s), 0 warning(s)
change them from void to BOOL
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

All fixed, I fixed these on my way.
Need I add some commands, cause people cant teleport to BtField?
Why cant change weapon in BtField?
Why some big monsrers like ettins, are neutrals? Not all of these are neutrals.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Dshaked wrote: All fixed, I fixed these on my way.
Need I add some commands, cause people cant teleport to BtField?
Why cant change weapon in BtField?
Why some big monsrers like ettins, are neutrals? Not all of these are neutrals.
You coded your own client? :unsure:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Nop.(Gredits are in f12 menu).
Erm wtf halp!
And I can teleport to BtField from Gail whats wrong?
Or attack in BtField.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

Why cant change weapon in BtField?
This bug was in earlly client release, Fixed in later ones if I remember ok.
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Fixed.
Another problem is, people cant tp to BtField from Gail.
It searching area.
Whats I need to do?
I dont see heldenian towers in BtField, wtf ;D?
When I try hire a soldier, I click some of these things, I get dc.
And how we can see the text like elvine death toll etc?
Image
Image
+ Cant use the scrolls.

Snoopy are them things right?
#define MSGID_RESPONSE_CHARGED_TELEPORT 0x0EA03205
#define DEF_NOTIFY_HELDENIANVICTORY 0x0BEB
#define MSGID_RESPONSE_HELDENIAN_TP_LIST 0x0AEB
#define DEF_CRUSADELOG_ENDHELDENIAN 0x0AEC
#define DEF_CRUSADELOG_HELDENIANVICTORY 0x0AED
#define DEF_CRUSADELOG_HELDENIANWARNOW 0x0AEE
#define DEF_CRUSADELOG_STARTHELDENIAN 0x0AEF
#define DEF_MAXHELDENIANSUMMONPOINT 0x0AEA
I maked the end things myself, cause I dont know what to put for it.
Can you tell yours them?
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

Another problem is, people cant tp to BtField from Gail.
No condition prevents it?
(I experimented that with a summoned Gail)
When I try hire a soldier, I click some of these things, I get dc.
DC, should mean a wrond item name ?
And how we can see the text like elvine death toll etc?
It shows at battle time....
MSG_IDs...
They're included in my release. they match the siementec 351 client.

and what about your 1st screen? tit shows Efffect arround ElfMasters that I don't know...
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Post Reply