PDA

View Full Version : Can someone tell me what is wrong?(script)


Namelez
1st July 2007, 09:00
I used this block of code

[Enable]
Alloc(SkID,126)
Alloc(Sklvl,126)
Label(IfID)
Label(Iflvl)
Label(SkBack)
Label(SklvlBack)
006250BA:
jmp SkID
SkBack:
0045367B:
jmp Sklvl
SklvlBack:

SkID:
push [ebp+08]
//mov [eax],00111AE9
cmp [eax],3E9
je IfID
mov edi,[eax]
jmp SkBack
IfID:
mov [eax],00111AE9 // 004E9C3C
mov edi,[eax]
jmp SkBack

Sklvl:
cmp [edi],
je Iflvl
mov eax,[edi]
push 05
push eax
jmp SklvlBack
Iflvl:
mov [edi],3E9
mov eax,[edi]
push 05
push eax
jmp SklvlBack

[Disable]
006250BA:
push [ebp+08]
mov edi,[eax]
004536FE:
mov eax,[edi]
push 05
push eax
Dealloc(SkID)
Dealloc(Sklvl)

Then I changed it to


[Enable]
Alloc(SkID,126)
Alloc(Sklvl,126)
Label(IfID)
Label(Iflvl)
Label(SkBack)
Label(SklvlBack)
006250BA:
jmp SkID
SkBack:
0045367B:
jmp Sklvl
SklvlBack:

SkID:
push [ebp+08]
//mov [eax],003EBA99
cmp [eax],3E9
je IfID
mov edi,[eax]
jmp SkBack
IfID:
mov [eax],003EBA99
mov edi,[eax]
jmp SkBack

Sklvl:
cmp [edi],
je Iflvl
mov eax,[edi]
push 05
push eax
jmp SklvlBack
Iflvl:
mov [edi],3E9
mov eax,[edi]
push 05
push eax
jmp SklvlBack

[Disable]
006250BA:
push [ebp+08]
mov edi,[eax]
004536FE:
mov eax,[edi]
push 05
push eax
Dealloc(SkID)
Dealloc(Sklvl)

Magenta blocks are the changed parts.
Which is basically changing the 4th job value for monster magnet to Meso up.
Is this block of code wrong because there is some part of this I should or should not have changed?Thanks to whoever can help, if you could explain why the block of code was wrong .

CallProcedure
1st July 2007, 09:28
Change 003EBA99 to hex yet?

Namelez
1st July 2007, 09:44
Actually 3EBA99 is hex, the 00 I added because in the earlier one it had 2 zero's before it(00111AE9).
I don't really understand ASM so I tried this through observation.
EDIT : With or without the 2 zeros it changes my skill points to 0, 0. Which means I cannot use them.

Original
1st July 2007, 10:05
So u mean no effect?Some skills doesn't have an effect...Even if u do it right...

cuteharez
1st July 2007, 10:08
Skill enchanment has no effects actually.

CallProcedure
1st July 2007, 10:14
Oh right, it's already in hex. sry didnt noticed.

u forgot to put it here:

Sklvl:
cmp [edi], xxxxxx

Namelez
1st July 2007, 10:27
I mean...um..how do I explain this...
Like, for example, the skill distribution is 1 stat point, 2 stat point and then 3 stats it becomes 1 stat then 0, 0.
CAll procedure I'm trying it now thanks

Thanks Call, it works hehe

Original
2nd July 2007, 04:53
Wow...When did xlcs stop flaming lol..

cuteharez
2nd July 2007, 13:30
Closed

The Mesos up is server sided?