Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 01:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WarRock EU - Code Snippets

Discussion on WarRock EU - Code Snippets within the WarRock forum part of the Shooter category.

View Poll Results: Wie findet ihr diesen Thread
Klasse! 78 60.94%
Geht so 17 13.28%
Sinnlos, braucht keiner 33 25.78%
Voters: 128. You may not vote on this poll

Closed Thread
 
Old 10/29/2011, 19:34   #5656
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by .CyberRazzer™ View Post
Danke für den Tipp.
Das mit den unötigen EAX weiß ich selber, nur was ich nicht verstehe ist dein "add esp, 16" -> Warum "ESP" und warum ",16" ?
esp steht für extended stack pointer
16 = sizeof(dwType) + sizeof(dwTitle) + sizeof(dwText) + sizeof(dwWindows)
Raz9r is offline  
Old 10/29/2011, 20:11   #5657
 
.RedBull's Avatar
 
elite*gold: 0
The Black Market: 121/0/0
Join Date: Jul 2011
Posts: 2,133
Received Thanks: 1,424
#request

crazynade und fastnadeblast

und evt einen, der mir per tv und skype zeigt, wie man values sucht.

Mfg
.RedBull is offline  
Old 10/29/2011, 20:37   #5658
 
elite*gold: 0
Join Date: Oct 2011
Posts: 233
Received Thanks: 80
Quote:
Originally Posted by .RedBull View Post
#request

crazynade und fastnadeblast

und evt einen, der mir per tv und skype zeigt, wie man values sucht.

Mfg
On oder Off valuen?
da On Valuen manchmal viele sein können
SubZerom|_ is offline  
Old 10/29/2011, 20:57   #5659
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
hat jm. lust mit mir zu versuchen ein hack zu schreiben?
Dogukan47 is offline  
Old 10/29/2011, 22:25   #5660
 
.Chronos's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 31
Received Thanks: 23
Quote:
Originally Posted by Dogukan47 View Post
hat jm. lust mit mir zu versuchen ein hack zu schreiben?
Wie hast du dir das Vorgestellt !?
Zusammen ne Base machen oder einen einfachen D3D ?
.Chronos is offline  
Old 10/29/2011, 22:30   #5661
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
ne zsm. ne base machen
Dogukan47 is offline  
Old 10/30/2011, 02:41   #5662
 
Mircoyee111's Avatar
 
elite*gold: 198
Join Date: Feb 2011
Posts: 1,702
Received Thanks: 160
#request

Auto Ready (64 | 32 Bit)
Mircoyee111 is offline  
Old 10/30/2011, 08:50   #5663
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by .CyberRazzer™ View Post
Okay vielen dank, dank dir verstehe ich es jetzt.

Messagebox über "<windows.h>"
Code:
VOID WriteMessage(DWORD dwModule,CHAR* dwText,CHAR* dwTitle,CHAR* dwType)
{
    __asm
    {
        PUSH dwType
        PUSH dwTitle
        PUSH dwText
        PUSH dwModule
        CALL MessageBox
        ADD ESP,16
    }
}
du hast nicht gelesen, was ich geschrieben habe.
"add esp, 16" nur, wenn die calling convention cdecl ist.
sie ist aber stdcall.

und: das ist der sinnloseste scheiß, den es gibt.
einfach nur MessageBox zu callen geht genauso schnell, weil der compiler die gleiche abfolge von bytes daraus macht wie dieser asm-code.
Raz9r is offline  
Old 10/30/2011, 09:30   #5664
 
.RedBull's Avatar
 
elite*gold: 0
The Black Market: 121/0/0
Join Date: Jul 2011
Posts: 2,133
Received Thanks: 1,424
Quote:
Originally Posted by SubZerom|_ View Post
On oder Off valuen?
da On Valuen manchmal viele sein können
Suche off value von Crazynade und Fastnade Blast, wolltest ja aber in Skype nicht sagen

Mfg
.RedBull is offline  
Old 10/30/2011, 10:11   #5665
 
elite*gold: 8
Join Date: Oct 2011
Posts: 656
Received Thanks: 1,895
Quote:
Originally Posted by .RedBull View Post
Suche off value von Crazynade und Fastnade Blast, wolltest ja aber in Skype nicht sagen

Mfg
Die haben keine Off Valuen
_TradEmArk_ ™ is offline  
Old 10/30/2011, 10:18   #5666
 
.RedBull's Avatar
 
elite*gold: 0
The Black Market: 121/0/0
Join Date: Jul 2011
Posts: 2,133
Received Thanks: 1,424
Quote:
Originally Posted by _TradEmArk_ ™ View Post
Die haben keine Off Valuen
Aber dann lässt es sich nicht abschalten ?
.RedBull is offline  
Old 10/30/2011, 10:21   #5667
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
Quote:
Originally Posted by _TradEmArk_ ™ View Post
Die haben keine Off Valuen
ich glaube er meint es so z.B.

crazynande = 1 // on <- die is public
crazynade = 0 //off <- die will er finden
so richtig verstanden RedBull?
Dogukan47 is offline  
Old 10/30/2011, 11:37   #5668
 
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 5
Hallihallo
marcel meinte hier dürfte ich das fragen kann mir einer helfen ? ich möchte jz da d3d mir doch noch zu kompliziert ist jemanden haben der mir hilft einen dinarbot zu erstellen ich habe keinerlei tut's verstanden weil die immer alles posten und irgendwas weg lassen such mal ja ähm ok aber WIE also hoffe ich das sich einer von euch bereit erklärt einem nooob wie mir das wirklich beizubringen also das ich das auch wirklich alles kapiere und nicht einfach alles geben was ich in autoit oder c++ kopieren muss und dann nur noch compilieren also wer sich bereit erklären möchte mir zu helfen hier meine icq nummer:638221752 ich bedanke mich jetzt schonmal dafür das sich jemand auch darum kümmert das solche vollidioten wie ich auch was lernen und nicht nur nerven

Mit freundlichen Grüßen muddaa

ps: alle rechtschreibfehler sind gratis und können gerne mitgenommen werden
muddaa is offline  
Old 10/30/2011, 15:41   #5669
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
jm. lust mit mir eine base zucoden?
Dogukan47 is offline  
Old 10/30/2011, 16:57   #5670
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 434
Received Thanks: 396
Ma wieder gelangweilt:
New ShowMenu function.

Code:
void D3DMenu::Show(CD3DFont *pFont,IDirect3DDevice9* pDevice)
 {
   int	i,val,cy;
   DWORD color;
   if (!visible) return;
 
   cy=y;
   if (title) {
	   pFont->DrawText((float)(x+totwidth/2), (float)cy+1,  col_title,title,D3DFONT_SHADOW|D3DFONT_CENTERED); //Drawing Title...You  can modify it too
	   cy+=titleheight;  }
   for (i=0; i<noitems; i++) {
	   if (MENU[i]->typ==MENUTEXT) {
		   pFont->DrawText((float)x, (float)cy, col_text,MENU[i]->txt,D3DFONT_SHADOW); //If Text draw without Box
		   if (MENU[i]->opt) {
			   pFont->DrawText((float)(x+ofs), (float)cy,  col_text,(char *)MENU[i]->opt, D3DFONT_RIGHT|D3DFONT_SHADOW);  //Drawing Text
		   }
	   } else  {//desc = MENU[cur]->description;
		   val=(MENU[i]->var)?(*MENU[i]->var):0;
		   // determine color
		   if (i==cur)
			  color=col_current; //Color = Current
		   else if (MENU[i]->typ==MENUGROUP)
			  color=col_group; //Color = Group Color
		   else if (MENU[i]->typ==MENUGROUP1)
			  color=(val)?col_on:col_off; //Color = col_on:col_off (Green:Red as Example)
		   else
			  color=(val)?col_on:col_off; //Color = col_on:col_off (Green:Red as Example)
		   
		   DrawBorderedBox(x,cy,10,10,D3DCOLOR_ARGB(255, 000, 000,  000),color,pDevice); //Drawing our Box before Menu Items (In Black and  in your choosen color)
		   pFont->DrawText((float)x+15, (float)cy,  col_item,MENU[i]->txt,D3DFONT_SHADOW); //New Calculation,Drawing Menu  Items
		   if (MENU[i]->opt) {
			   pFont->DrawText((float)(x+ofs), (float)cy, color,(char  *)MENU[i]->opt[val],D3DFONT_RIGHT|D3DFONT_SHADOW);  //Drawing on/off
		   }
	  }/*Original is made by Hans211,Modified by KingClem™*/
	  cy+=height;
   }
 }

New Drawbordered Function modified by KingClem™,Original from idk...


Code:
 HRESULT D3DMenu::DrawBorderedBox(int x, int y, int h, int w,DWORD color1, DWORD color2, LPDIRECT3DDEVICE9 pDevice)
 {
	 struct croner { D3DXVECTOR4 p; DWORD c; } cr[5];
 
	 // coord -0.5f prevents point filtering distorsions at the edges (smudging)
	 cr[0].p = D3DXVECTOR4(x+0-0.5f,y+h-0.5f,0.0f,1.0f); cr[0].c = color1;
	 cr[1].p = D3DXVECTOR4(x+0-0.5f,y+0-0.5f,0.0f,1.0f); cr[1].c = color1;
	 cr[2].p = D3DXVECTOR4(x+w-0.5f,y+h-0.5f,0.0f,1.0f); cr[2].c = color1;
	 cr[3].p = D3DXVECTOR4(x+w-0.5f,y+0-0.5f,0.0f,1.0f); cr[3].c = color1;
 
	 pDevice->SetTexture(0, NULL);
	 pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE);
	 pDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE);
	 pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, cr, sizeof(croner));
	 
	 // coord -0.5f prevents point filtering distorsions at the edges (smudging)
	 cr[0].p = D3DXVECTOR4(x+0-0.5f,y+h-0.5f,0.0f,3.0f); cr[0].c = color2;
 
	 cr[1].p = D3DXVECTOR4(x+0-0.5f,y+0-0.5f,0.0f,3.0f); cr[1].c = color2;
	 cr[2].p = D3DXVECTOR4(x+w-0.5f,y+0-0.5f,0.0f,3.0f); cr[2].c = color2;
	 cr[3].p = D3DXVECTOR4(x+w-0.5f,y+h-0.5f,0.0f,3.0f); cr[3].c = color2;
	 cr[4].p = D3DXVECTOR4(x+0-0.5f,y+h-0.5f,0.0f,3.0f); cr[4].c = color2;
 
	 pDevice->SetTexture(0, NULL);
	 pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE);
	 pDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE);
	 pDevice->DrawPrimitiveUP(D3DPT_TRIANGLELIST, 3, cr, sizeof(croner));
 
	 return S_OK;
 }
It can look like this:


KingClem™ is offline  
Thanks
3 Users
Closed Thread


Similar Threads Similar Threads
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code Payment:via Paypal
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen. Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann. Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde. Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft. Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released.. I got new methods so I dont need this anymore & maybe it'll help some people... G31 Adult Skill if(comboBox4->Text=="Panther'crit'") { KC->Chat(255," Panther Skill ON"); KC->Threads=1; KC->lasttime = timeGetTime()-15000; } else if(comboBox4->Text=="Tiger'otp'")
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager http://upit.cc/images/1d47d78e.jpg Hab mich heute mal rangesetzt, und einen kleinen Manager für Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert in einer Anwendung wollte. Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.



All times are GMT +1. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.