Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [share]void RequestEvaluate() (https://postpacific.mmorpg-game.online/showthread.php?t=4540)

torune 24.05.2006 02:55

[share]void RequestEvaluate()
 
since when lineage2 community becomes a cracking/hacking community instead of developing community.
shame on you all.

btw: i moved some codes, if you understand what's going on and know how code, you surely wont be stopped by these small /*TODO*/ bugs.

Code:

void __cdecl RequestEvaluate(BYTE *pBuffer, BYTE *pUser, BYTE *pSocket)
{
        BYTE * pTargetData;
        BYTE * pTargetSocket;

        wchar_t* szMyName;
        wchar_t* szTargetName;
        wchar_t* szBuffer;

        int nMyAppraise;
        int nTargetCommend;
        char * szSqlQuery;

        if (pUser!=NULL)
        {
               
                __asm
                {
                        mov esi, pUser;
                        mov eax, [esi+0f54h];
                        mov eax, [eax+378h];
                        cmp eax, 10;
                        jnb Jump_1;
                                push 898;                //system message id 898
                                push 7ah;
                                push sFormat_1;
                                push pSocket;
                                call fSendToSinglePlayer;
                                add esp, 16;
                                jmp Jump_0;
                Jump_1:
                        push esi;
                        call GetUserinfoEx;
                        mov esi, eax;
                        mov eax, [esi]USERINFOEX.RecomLeft
                        test eax, eax;
                        ja Jump_2;
                                push 833;                //system message id 833
                                push 7ah;
                                push sFormat_1;
                                push pSocket;
                                call fSendToSinglePlayer;
                                add esp, 16;
                                jmp Jump_0;
                Jump_2:
                        mov eax, pBuffer;
                        mov eax, dword ptr ds:[eax];
                        push eax;
                        call getCreature
                        mov ecx, eax;               
                        cmp ecx, pUser;
                        jne Jump_3;                               
                                push 829;                //system message id 829
                                push 7ah;
                                push sFormat_1;
                                push pSocket;
                                call fSendToSinglePlayer;
                                add esp, 16;
                                jmp Jump_0;
                Jump_3:
                        mov pTargetData, ecx;
                        mov eax, [ecx+19B8h];
                        mov pTargetSocket, eax;
                        push ecx;
                        call GetUserinfoEx;
                        mov ecx, eax;
                        cmp [ecx]USERINFOEX.RecomHave, 255;
                        jb Jump_4;
                                push 1188                                        //system message id 1188
                                push 07Ah
                                push sFormat_1;
                                push pSocket
                                call fSendToSinglePlayer;
                                add esp, 16
                                jmp Jump_0;
                Jump_4:
                        dec [esi]USERINFOEX.RecomLeft;
                        inc [ecx]USERINFOEX.RecomHave;
                        mov eax, [esi]USERINFOEX.RecomLeft;
                        mov nMyAppraise, eax;
                        mov eax, [ecx]USERINFOEX.RecomHave;
                        mov nTargetCommend, eax;
                       
                        mov eax, pUser;
                        mov eax, [eax+0f54h];
                        add eax, 0a0h;
                        mov szMyName, eax;
                       
                        mov eax, pTargetData;
                        mov eax, [eax+0f54h];
                        add eax, 0a0h;
                        mov szTargetName, eax;
                }
                szBuffer = (wchar_t *)GlobalAlloc(GMEM_ZEROINIT, 512);
                wsprintfW(szBuffer, sqlQuery_1, nMyAppraise, szMyName, nTargetCommend, szTargetName);
                szSqlQuery = UnicodeToGB2312(szBuffer);
                m_dbConn.ExecuteSQL(szSqlQuery);               
                delete(szSqlQuery);
                GlobalFree(szBuffer);
                __asm
                {                       
                        push nMyAppraise
                        push 1;
                        push szTargetName
                        push 0;
                        push 2;
                        push 830                                //system message id 830
                        push 7Ah
                        push sFormat_10;
                        push pSocket
                        call fSendToSinglePlayer;

                        push szMyName
                        push 0
                        push 1
                        push 831                                //system message id 831
                        push 7Ah
                        push sFormat_9
                        push pTargetSocket
                        call fSendToSinglePlayer;
                        add esp, 64;               
                }
        }
}


tpuNIsher 24.05.2006 03:48

Wow..
That is evaluate / recommend i believe?
and to answer your 1st question..
Since some developers decided to make money instead of being a developer and sharing the knowledge.

p.s. answer my pm plix :>

torune 24.05.2006 04:09

and since when l2x becomes non-profit organization.
and even if nobody shares, should we all stop developping and just stfu?

the problem is in our head, not on other people that knows what to do.

tpuNIsher 24.05.2006 04:54

Since BoTgod was removed.
Obviously not. But not everyone has the capability to do what one can do. humans are not equal.. were never equal.

Maybe you are right..but theres always specific people reaching the end. The question isn't whether they reached there though.. the question is whether they looked back to make it easier for the rest that tries to catch up to them. That is why books exist i believe?

Cardon 24.05.2006 05:39

Quote:

Originally Posted by tpuNIsher
Since some developers decided to make money instead of being a developer and sharing the knowledge.

I could not have said it better myself.

Knowledge is the key to everything. Sadly, in this case, people are witholding it.

And yes, that was a directed statement.

-Cardon.

top-gear 24.05.2006 07:11

Quote:

Originally Posted by torune
and since when l2x becomes non-profit organization.
and even if nobody shares, should we all stop developping and just stfu?

the problem is in our head, not on other people that knows what to do.

[spam]
they first have to learn the difference between dual boxing and lan with 1 ip ^^ btw I think donations are open again
[/spam]

elcapo 24.05.2006 08:43

/* TODO */
Check if there is any "objetive", otherwise: sysmessage = 242
Check if objetive is NOT a NPC, otherwhise: sysmessage = 109
Where is Jump_0 ?
Check about "objetive so far" or "objetive is offline" is necessary?

hamidouch 24.05.2006 09:21

Torune, swear you never leaked zzcat dll and worked on it to code your dll..... Don't blame other peeps when you do the same.
And we will all do what is necessary to unpack and rebuild dll, and discourage L2 files moneymakers.

theRAGE 24.05.2006 09:55

Quote:

Originally Posted by tpuNIsher
Since BoTgod was removed.

lol

Anyways... its human nature to not give but demand to recieve.
Developers want money for their efforts, "leechers" want c4 solutions for free.

:>

Thalone 24.05.2006 10:04

im a dev and i never asked for $$ when i worked on any of my servers

tpuNIsher 24.05.2006 10:07

testdude: Donations were close after 36 hours of opening them after 6 monthes of no donations.. our playerbase loves us..visit our site.. you will know why so ;]

rage: look at hami. Don't think everyone is as greedy as most. Yes that was a directed statement.

make money off L2? ITS A FREAKING GAME we got into FOR THE LOVE OF IT.

Thank you hami once again. And thank you torune for this share.

demon 24.05.2006 10:10

cmon guys
all of you (you = high rate programers) work for money


1) torune
2) livid
3) zzcat
4) ezme
5) ET

can u stop blame each other? its getting annoying

You all use other programers work so you can complete yours

i dont blame you for asking money because PP forum isnt a dev forum anymore is a LEECH forum.

All kids around global come here to take stupid scripts which have nothing to do with official lineage

the biggest problem is now leechers ask for money inorder to share files

isnt that something ?

Thalone 24.05.2006 10:37

everytime i finish a piece of code im gonna start sharing to put all these ppl who ask for money out of business... tpnunisher, want to start learning asm? im currently writing a tutorial from this awesome piece of code from torune

Eanae 24.05.2006 11:01

Now this is the old Torune. Thanks. :D

tpuNIsher 24.05.2006 11:07

Yah sure Thalone. I am learning some some x86 asm :> Help appreciated.

Digital 24.05.2006 13:18

this really sound gratisfying <- (wonder if i spelled it correctly.. hmmm oh who bothers either way :P)
either way... this is a good start ;)

actually things would go further if we make a public dll or sorts
that way.. ppl could learn and share their new codes into the dll (e.g l2j sorts)

but there's drawbacks of cause, asm isnt easy to learn..
but given enough dedication.. i'm sure nothing would stop us all. :)

demon 24.05.2006 15:03

digital you are right but
in l2j 100 ppl work 1.xx.xx0.00 leech

Duna 24.05.2006 15:41

People who talk about leech are funny as hell. People why u use internet ?. Internet was made for ppl who wanna learn others people. If u hate leech go jump form window damnit and stop talk shit about this.

In l2j 100 ppl work only ?!... 1kk leech all the time testing core and checking bug. This is comunity man. Some ppl cant write something coz they learn. Anyway sends bugs and test is work too.

DarkGoat 24.05.2006 15:49

leechers are not those who want to learn, leechers are those who dont care to learn...just want something for nothing and dont care how it works

tpuNIsher 24.05.2006 15:49

demon: read what i said to torune. Not everyone can do what one person can. They are the testers. Do you clean your country roads every morning? Will you? no i think. It's not your work. It's someone else's job. Your work is to make it better for the others.

So, that is what we should do :p*

TheOrder 24.05.2006 16:03

Duna don't talk like that to Demon , yes but you forgot like on Ragezone . Greenhope or Violator packs ??? People only leeched em and they only used em , they didn't know crap about Java and never do now . Only problem is people don't want to learn that's all !!!

Truffe 24.05.2006 16:39

Get back on topic please. =/

torune 24.05.2006 18:54

Quote:

Originally Posted by hamidouch
Torune, swear you never leaked zzcat dll and worked on it to code your dll..... Don't blame other peeps when you do the same.
And we will all do what is necessary to unpack and rebuild dll, and discourage L2 files moneymakers.

i swear to mother of natural/god/budda/whatever god that is out there
i never used leaked zzcat/ezme dll
i never unpacked leacked zzcat/ezme dll.

my own RequestEvaluate() is only 60+ lines of code, and its pure in c++

kgptzac 24.05.2006 22:56

Quote:

since when lineage2 community becomes a cracking/hacking community instead of developing community.
shame on you all.
imo the community was always been cracking/hacking (NCSoft's code), it's just that we've been doing to other ppl's code too :P

hel 25.05.2006 05:22

torune:
How you get a function names? Or it functions only used by dll? Hm. Asm is really hard to understand programming language. :(
Or you use a source from c1 server?


All times are GMT. The time now is 21:47.