Hero Items In CityHall Officer

All Helbreath Server Source Discussion here.
Post Reply
kamal
noob
Posts: 19
Joined: Sun Aug 21, 2005 1:42 am

Post by kamal »

Ok you know when u buy hero items with eks/cont in cityhall officer guy...I want to make more items appear there... i coded it already but how do i make it appear there in my server? did i miss something or do i even need to code this? im not sure...if anyone could help please do :D

im not sure if this is where i should post this but i dont know if i code this or something else...
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

what hero items u talkin about ????
Tafka12
<3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

go LAN_ENG.h and add msges there. like other items.
:)
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
kamal
noob
Posts: 19
Joined: Sun Aug 21, 2005 1:42 am

Post by kamal »

yay, it works, thank-you :D
Kanar
noob
Posts: 14
Joined: Thu Aug 03, 2006 7:39 pm

Post by Kanar »

could you post these codes here? i have a little problem to code it correctly.....

Code: Select all

	case 12:
  if ((msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
  {	bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_GETHEROITEM, NULL, m_stDialogBoxInfo[13].sV1, NULL, NULL, NULL);
  	m_stDialogBoxInfo[13].cMode = 0;
  	PlaySound('E', 14, 5);
  }
  if ((msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
  {	m_stDialogBoxInfo[13].cMode = 12;
  	PlaySound('E', 14, 5);
  }
  break;

Code: Select all

--------------------Configuration: Game - Win32 Release--------------------
Compiling...
Game.cpp
D:\Clients\Game.cpp(19886) : error C2059: syntax error : 'bad suffix on number'
D:\Clients\Game.cpp(19886) : error C2146: syntax error : missing ')' before identifier 'G'
D:\Clients\Game.cpp(19886) : error C2660: 'bSendCommand' : function does not take 2 parameters
D:\Clients\Game.cpp(19886) : error C2059: syntax error : ')'
Error executing cl.exe.

Client.exe - 4 error(s), 0 warning(s)
...
Kanar
noob
Posts: 14
Joined: Thu Aug 03, 2006 7:39 pm

Post by Kanar »

or just give me the link wheres that code (New Hero Items in CH) I was searching and couldnt find it :/
Slays
just visiting
Posts: 5
Joined: Thu Aug 11, 2005 2:47 am

Post by Slays »

You couldnt find it because no one ever relased it lol...
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

Just use merien hero items and modify it's location if you already have that code added.
Kanar
noob
Posts: 14
Joined: Thu Aug 03, 2006 7:39 pm

Post by Kanar »

So.. How to explain that?
--------------------Configuration: Game - Win32 Release--------------------
Compiling...
MapData.cpp
Game.cpp
<span style='color:red'>D:\Server\Game.cpp(19890) : error C2065: 'm_cTakeItemName' : undeclared identifier</span>
<span style='color:purple'>D:\Server\Game.cpp(19972) : error C2059: syntax error : 'bad suffix on number'
D:\Server\Game.cpp(19972) : error C2146: syntax error : missing ')' before identifier 'G'
D:\Server\Game.cpp(19972) : error C2660: 'bSendCommand' : function does not take 2 parameters
D:\Server\Game.cpp(19972) : error C2059: syntax error : ')'</span>
<span style='color:green'>D:\Server\Game.cpp(32842) : error C2065: 'DRAW_DIALOGBOX_CITYHALL_MENU46B' : undeclared </span>identifier
Wmain.cpp
Error executing cl.exe.

Client.exe - 6 error(s), 0 warning(s)
<span style='color:red'>19890 line's error:</span>
case 12: //MERIEN HERO TRADE POR Blizaga
 int iReqItemID;
  // MERIEN HERO CAPE
  if ((msX >= sX + 35) && (msX <= sX + 220) && (msY >= sY + 95) && (msY <= sY + 110))
  { if(m_bAresden == TRUE) iReqItemID = 955;
    else iReqItemID = 955;
  <span style='color:red'>ZeroMemory(m_cTakeItemName,sizeof(m_cTakeItemName));</span>
  memcpy(m_cTakeItemName,DRAW_DIALOGBOX_CITYHALL_MENU78,strlen(DRAW_DIALOGBOX_CITYHALL_MENU78));
    m_stDialogBoxInfo[13].cMode = 13;
    m_stDialogBoxInfo[13].sV1=iReqItemID;
    PlaySound('E', 14, 5);
 }
<span style='color:purple'>19972 line's errors (4x):</span>
 case 13: // MERIEN TRADE YES  BY BLIZ FIXED ORIGINAL BY DRAJWER
  if ((msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
 <span style='color:purple'>{ bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_GETMERIENHEROMANTLE, NULL, m_stDialogBoxInfo[13].sV1, NULL, NULL, NULL);</span>
    m_stDialogBoxInfo[13].cMode = 0;
    PlaySound('E', 14, 5);
 }
 if ((msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
 { m_stDialogBoxInfo[13].cMode = 12;
    PlaySound('E', 14, 5);
 }
  break;
<span style='color:green'>32842 line's error:</span>
 case 13: //dPREGUNTAR PAEA OBTENER MERIEN HERO
 PutAlignedString(sX,sX+szX-1,sY+125,m_cTakeItemName, 255,0,100);
 PutAlignedString(sX+1,sX+szX,sY+125,m_cTakeItemName, 255,0,100);
<span style='color:green'>  PutAlignedString(sX,sX+szX,sY+260,DRAW_DIALOGBOX_CITYHALL_MENU46B, 55,25,25); // would you like..</span>
 if (   (msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX)
  && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
    DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_LBTNPOSX, sY + DEF_BTNPOSY, 19);
 else DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_LBTNPOSX, sY + DEF_BTNPOSY, 18);
 if (   (msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX)
  && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
    DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_RBTNPOSX, sY + DEF_BTNPOSY, 3);
 else DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_RBTNPOSX, sY + DEF_BTNPOSY, 2);
 break;
Charles
Loyal fan
Posts: 418
Joined: Wed Nov 26, 2003 8:20 pm

Post by Charles »

if you don't know how to read your errors; just stop trying to code.
<i>"Always write good code. Feel bad to write bad code."</i>
Slays
just visiting
Posts: 5
Joined: Thu Aug 11, 2005 2:47 am

Post by Slays »

agree
Kanar
noob
Posts: 14
Joined: Thu Aug 03, 2006 7:39 pm

Post by Kanar »

arent u here to help noobs like me? and stop spamming Slays -.-
Post Reply