2.24b source bug

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

Post by locobans »

crusade code plz :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>
tyteman
Spamtastic
Posts: 1149
Joined: Wed Nov 12, 2003 2:00 pm
Location: CA, USA

Post by tyteman »

post the 2.22 hgserver someone.. with the /makegm .. i am in need for it .. otherwise.. i'll be forced to pester klks for the code snippet =)
"<i>One night I was talking to God, but I realized I was talking to <u>myself</u></i>"<br><br><img src='http://img61.imageshack.us/img61/2678/untitled13bf.gif' border='0' alt='user posted image' /><br><br><b><u>Links</u></b><br>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

crusade code <_<
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>
cocho
Loyal fan
Posts: 363
Joined: Sat Jan 24, 2004 10:33 pm
Location: Caracas - Venezuela
Contact:

Post by cocho »

tyteman wrote: post the 2.22 hgserver someone.. with the /makegm .. i am in need for it .. otherwise.. i'll be forced to pester klks for the code snippet =)
i think i still have it, i will post it if i have it later cus now im leavin to the school
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

there is a slight hint that he got it already since its pretty much posted already :P
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

omg the crusade codeeeeeeeeeeeeeeeeeeeee :(
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>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Zabuza wrote: With this my middleland hgserver doesn't crash when entering crusade mode, but i can't enter the game to test it yet. Maybe you'd like to test it.

Code: Select all

void CGame::CreateCrusadeStructures()
{
 int i, z, tX, tY, iNamingValue;
 char cName[6], cNpcName[21], cNpcWayPoint[11];

	ZeroMemory(cName, sizeof(cName));
	ZeroMemory(cNpcName, sizeof(cNpcName));
	ZeroMemory(cNpcWayPoint, sizeof(cNpcWayPoint));

	for (i = 0; i < DEF_MAXCRUSADESTRUCTURES; i++) 
	if (m_stCrusadeStructures[i].cType != NULL) {
  for (z = 0; z < DEF_MAXMAPS; z++)
  if ((m_pMapList[z] != NULL) && (strcmp(m_pMapList[z]->m_cName, m_stCrusadeStructures[i].cMapName) == 0)) {
  	// À§Ä¡°¡ ÀÏÄ¡ÇÏ´Â ¸Ê¿¡ °ÇÃ๰À» À§Ä¡½ÃŲ´Ù.
  	iNamingValue = m_pMapList[z]->iGetEmptyNamingValue();
  	if (iNamingValue == -1) {
    // ´õÀÌ»ó ÀÌ ¸Ê¿¡ NPC¸¦ ¸¸µé¼ö ¾ø´Ù. À̸§À» ÇÒ´çÇÒ ¼ö ¾ø±â ¶§¹®.
    // ÀÌ·± ÀÏÀÌ?
  	}
  	else {
    // NPC¸¦ »ý¼ºÇÑ´Ù.
    wsprintf(cName, "XX%d", iNamingValue);
    cName[0] = '_';
    cName[1] = z+65;
    
    switch (m_stCrusadeStructures[i].cType) {
    case 36:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "AGT-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "AGT-Elvine");
    	break;

    case 37: 
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "CGT-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "CGT-Elvine");
    	break;

    case 40:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "ESG-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "ESG-Elvine");
    	break;

    case 41:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "GMG-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "GMG-Elvine");
    	break;

    default: 
    	for(int AuxCont=0;AuxCont<DEF_MAXNPCTYPES;AuxCont++)
    	{
      if((m_pNpcConfigList[AuxCont]!=NULL)&&(m_pNpcConfigList[AuxCont]->m_sType==m_stCrusadeStructures[i].cType))
      {
      	strcpy(cNpcName, m_pNpcConfigList[AuxCont]->m_cNpcName); 
      	break;
      }
    	}
    	break;
    }

    tX = (int)m_stCrusadeStructures[i].dX;
    tY = (int)m_stCrusadeStructures[i].dY;
    if (bCreateNewNpc(cNpcName, cName, m_pMapList[z]->m_cName, 0, 0, DEF_MOVETYPE_RANDOM, 
                   &tX, &tY, cNpcWayPoint, NULL, NULL, -1, FALSE) == FALSE) 
    {
    	// ½ÇÆÐÇßÀ¸¹Ç·Î ¿¹¾àµÈ NameValue¸¦ ÇØÁ¦½ÃŲ´Ù.
    	//m_pMapList[ m_pClientList[i]->m_cMapIndex ]->SetNamingValueEmpty(iNamingValue);
    	m_pMapList[z]->SetNamingValueEmpty(iNamingValue);
    } 
    else {
    	wsprintf(G_cTxt, "(!) Creating Crusade Structure(%s) at %s(%d, %d)", cNpcName, m_stCrusadeStructures[i].cMapName, tX, tY);
    	PutLogList(G_cTxt);
    }
  	}
  }
	}
}
Hey zabuza didint you missed the case of Mana Stone???
    case 42:
    strcpy(cNpcName, "ManaStone");
    break;
shouldnt it be right under case 41 :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>
Zabuza
Member
Posts: 160
Joined: Thu Jan 22, 2004 11:05 pm

Post by Zabuza »

Code: Select all

default: 
    for(int AuxCont=0;AuxCont<DEF_MAXNPCTYPES;AuxCont++)
    {
     if((m_pNpcConfigList[AuxCont]!=NULL)&&(m_pNpcConfigList[AuxCont]->m_sType==m_stCrusadeStructures[i].cType))
     {
      strcpy(cNpcName, m_pNpcConfigList[AuxCont]->m_cNpcName); 
      break;
     }
    }
    break;
   }
That includes manastone n00dle
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

lol i was trying to make my newbie updates and shit :P
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>
Cookies
Regular
Posts: 43
Joined: Tue Jan 04, 2005 1:39 pm

Post by Cookies »

does it work? :o
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

havent tested it
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>
Post Reply